SOund ALert

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

SOund ALert

Post by rajasegar »

Nagios XI 2012R2.9
RHEL 6.5 x64
Manual Install

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

Thanks
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: SOund ALert

Post 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/
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: SOund ALert

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Sound ALert

Post 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?
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: SOund ALert

Post 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?
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: SOund ALert

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked