Page 1 of 1

SOund ALert

Posted: Thu May 29, 2014 10:55 pm
by rajasegar
Nagios XI 2012R2.9
RHEL 6.5 x64
Manual Install

Please advice how to configure sound alerts for Host & service alerts.

Thanks

Re: SOund ALert

Posted: Fri May 30, 2014 9:41 am
by slansing
Currently, the only solid way to do this is through a firefox addon found here:

https://addons.mozilla.org/en-US/firefo ... s-checker/

Re: SOund ALert

Posted: Fri May 30, 2014 6:37 pm
by Box293
I've played with this in the past and by using event handlers you can trigger a computer to play a sound.

For example, you might have a PC that is your monitoring wall computer.
You could configure Nagios to trigger an event handler for specific checks.
The event handler will basically execute a script on the monitoring wall computer that plays a sound file.

Re: Sound ALert

Posted: Sat May 31, 2014 7:12 am
by rajasegar
slansing wrote:Currently, the only solid way to do this is through a firefox addon found here:

https://addons.mozilla.org/en-US/firefo ... s-checker/
This is a problem as our company standard browser is IE only.
Any other options?

Re: SOund ALert

Posted: Sat May 31, 2014 7:15 am
by rajasegar
Box293 wrote:I've played with this in the past and by using event handlers you can trigger a computer to play a sound.

For example, you might have a PC that is your monitoring wall computer.
You could configure Nagios to trigger an event handler for specific checks.
The event handler will basically execute a script on the monitoring wall computer that plays a sound file.
Did I understand you correctly?
Nagios server triggers a script on the client?

Re: SOund ALert

Posted: Sat May 31, 2014 7:50 pm
by Box293
Yes thats right.

For exmaple:
  • The PC you want to have the sound played on is a Windows PC and has NSClient++ installed
    You create a scipt that plays the sound file on the computer
    You edit the NSClient++ config file to include the script that plays the sound file
    On the Nagios XI host you create a command that executes the script on the PC via NSClient++
    You then edit the service, on the check settings tab there is a drop down list called Event handler -> select the command you just created
    Make sure you also select event handler enabled to on
    Save and apply config
Now whenever that service changes state, it will play the sound file.

You can create a service template that has the event handler defined and then assign the template to different services. This way if you need to change the event handler all you need to do is update the template.

Nagios can do whatever you want! :ugeek:

*edit note* I had a brain fade the other day and realised I explained this wrong, I updated it.