I need help to configure ping probe and beep notification.
I am monitoring some computers from one main pc (dude server) with ping probe and I want that if one pc goes down the server beeps until this pc is up.
I can configure it to beep but only for certain interval and then it stops even if the pc is still down.
Solution 1 - not what your asked for…
Create 10 minute sound file that has a short beep every few seconds, add it to the dude, create a new notification of type sound, set the repeat interval to 10 minutes and repeat count to 100 times… It should beep for what about 16 hours?
Solution 2 - might not work…
This is totally off the cuff so you will need to find parts and develop the solution, this is just to get you moving. You can call an external program when a ping fails with a “notification” that will run another program “execute on server”. The program that is ran as an external is an executable or a batch job (totally up to you and you will have to come up with which program/batch job your self).
If all the computers go down you will have x number of copies of your external sound loop. You will need a command line program that can play a sound and loop it.
As each computer comes back up you will want the 2nd notification to stop one of the copies of the sound loop. So you will need another program or batch job that stops one copy of the sound loop.
In the Dude, add a two new notifications:
Name: Dude Alarm
Type: execute on server
Command: soundloop.exe alarm.mp3
On the ‘Advanced’ Tab, check
up->down
The 2nd notification
Name: Dude stop Alarm
Type: execute on server
Command: batch file that stops soundloop.exe
On the ‘Advanced’ Tab, check
down->up
unstable->up
For each device double click on the ping service, on the Notifications tab, put a tick against Dude Alarm and Dude stop alarm.
I wonder what it would sound like if you have 100 copies of the sound loop playing
GL
Lebowski
Solution 1 - not what your asked for…
Create 10 minute sound file that has a short beep every few seconds, add it to the dude, create a new notification of type sound, set the repeat interval to 10 minutes and repeat count to 100 times… It should beep for what about 16 hours?
Solution 2 - might not work…
This is totally off the cuff so you will need to find parts and develop the solution, this is just to get you moving. You can call an external program when a ping fails with a “notification” that will run another program “execute on server”. The program that is ran as an external is an executable or a batch job (totally up to you and you will have to come up with which program/batch job your self).
If all the computers go down you will have x number of copies of your external sound loop. You will need a command line program that can play a sound and loop it.
As each computer comes back up you will want the 2nd notification to stop one of the copies of the sound loop. So you will need another program or batch job that stops one copy of the sound loop.
In the Dude, add a two new notifications:
Name: Dude Alarm
Type: execute on server
Command: soundloop.exe alarm.mp3
On the ‘Advanced’ Tab, check
up->down
unstable->
The 2nd notification
Name: Dude stop Alarm
Type: execute on server
Command: batch file that stops soundloop.exe
On the ‘Advanced’ Tab, check
down->up
unstable->up
For each device double click on the ping service, on the Notifications tab, put a tick against Dude Alarm and Dude stop alarm.
I wonder what it would sound like if you have 100 copies of the sound loop playing
GL
Lebowski
EDIT added unstable->down Devices do not go from up to down, they go from unstable to down.
I just tried it but shouldn’t the repeat count be reset to 0 if the device comes back up? I tested it and yep even after the device is up the Notification of the outage is repeated until it is done. That should not be too hard to fix but getting them to fix it…
Well solution 2 then… but modified to make it even better. By the way, how many computers are you tracking?
Make different named copies of mplayer.exe, one for each computer you want to monitor.
You could also make a sound file for each computer, It could say computer x is down every 10 seconds.
cpu1snd.exe beep1.wav -loop 0
cpu2snd.exe beep2.wav -loop 0
cpu3snd.exe beep3.wav -loop 0
cpu4snd.exe beep4.wav -loop 0
…
By the way, how many computers are you tracking?
The program nircmd can kill processes by name from the command line. http://www.nirsoft.net/utils/nircmd.html
nircmd killprocess cpu1snd.exe
nircmd killprocess cpu2snd.exe
nircmd killprocess cpu3snd.exe
Here is the first pair of probes.
Name: Dude Alarm1
Type: execute on server
Command: c:\alert\cpu1snd.exe beep1.wav -loop 0
On the ‘Advanced’ Tab, check
unstable->down
Name: Dude stop Alarm1
Type: execute on server
Command: c:\alert\nircmd killprocess cpu1snd.exe
On the ‘Advanced’ Tab, check
down->up
unstable->up
I would just toss all the files into a folder off the root of drive i.e. C:\alert as I show in the “Command:”
One pair of probes to start and stop the sound per computer, yuk but it will work.
Yes I have made batch files for each pc but sometimes it beeps and sometimes not.
I am waiting improvements from mikrotik dude staff. I dont know what to do.
I have installed dude server on windows 7 and sometimes it craches sometimes show a connection error. (“Connenction error because the target machine actively refused it”) I have permitted dude to pass throught the firewall.
I hope that mikrotik will fix bugs and improve beep notifications.