Sound Alerts and Nagios2.0b2

Sean Dilda agrajag at dragaera.net
Mon Apr 4 17:35:26 CEST 2005


Chris Stankaitis wrote:
> Sean Dilda wrote:
> 
>>
>> I'm not sure doing sound alerts from the web interface makes any sense 
>> to begin with.  If you want audible alerts, setup some ssh keys so 
>> nagios can ssh into a box in your office, then setup an alert script 
>> to ssh to your box and play the specified sound when an alert is issued.
> 
> 
> So you would set it up almost like an event handler... and upon a Hard 
> state it would execute this SSH which would pay wav-file-X on a computer 
> in our noc.
> 
> Next question then do event handlers respect acknowledgment of problems 
> and/or maintenance I.E. once acknowledged or if in Maintenance will the 
> event handler know not to keep executing? so that we don't get into a 
> situation where something is acknowledge but the "Siren" keeps going off.

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.


-------------------------------------------------------
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