Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

2 Answers 2

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.

share|improve this answer
    
The link now redirects to the main Nagios Wiki page. Could you please include the essential parts of the original page to this answer? –  gertvdijk Sep 23 '13 at 12:18

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)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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