Sound Alerts and Nagios2.0b2

Chris Stankaitis chris.stankaitis at datawire.net
Tue Apr 5 21:06:43 CEST 2005


SSH company policy issues, complicate things with both my idea of the 
event handler and the other idea of embedding ssh command to a local box.

but I do have a solution even if it's a kludge of one.. I am going to 
create a new e-mail user and add it as a contact, setup an e-mail 
program on one of our NOC boxes to pop that email each minute and play a 
different sound alert based on subject filters for the various Nagios 
alert subjects.

that way all notification logic is respected, an alert will only be 
played if an e-mail is sent, as that e-mail is what triggers the alerts.

--Chris

Sean Dilda wrote:
> Chris Stankaitis wrote:
> 
>>
>>>
>>>
>>> No, I wouldn't do it as an event handler.  I'd do it as a contact.  
>>> I'd go into misccommands.cfg, create a command called 
>>> notify-by-email-and-sound, then I'd create a shell script on the 
>>> system that did the normal email notification and also played the 
>>> sound.  Then I'd change my contact entry to use that as the 
>>> notification_command.
>>>
>>> In other words, I would use the existing notification setup in nagios 
>>> to play the sound.  Then it can have different sounds for 
>>> acknowledgments, etc.
>>>
>>>
>>
>> That won't work, the nagios server that generates the e-mail and 
>> serves the web pages is located in a colo about 20 minutes away from 
>> the office, that will not help the NOC guys here in the office.
> 
> 
> I fail to see how configuring an event handler to ssh to a local box and 
> play a sound will work, but writing a notification script to ssh to a 
> local box and play a sound will not work.  You're writing essentially 
> the same script in both cases.  Its just a question of how you're 
> hooking it into nagios.
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when 
> reporting any issue. ::: Messages without supporting info will risk 
> being sent to /dev/null



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list