Is it possible to pass a notification message from nagios to a python script that will dispatch a custom notification, instead of nagios sending email or an sms?

link|improve this question

50% accept rate
feedback

2 Answers

up vote 3 down vote accepted

Sure. Here's an example using Skype for notification.

Generally, you define a command that will execute the python script, then use that command for the host_notification_commands or service_notification_commands options in the contact definition.

link|improve this answer
feedback

Sure. You simply set up a command to run for the notification and associate it with a contact (see http://nagios.sourceforge.net/docs/3_0/notifications.html, http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#contact and http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#command for details)

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.