Home Directory Addons Event Handlers recovered_service_handler

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

recovered_service_handler

Rating
0 votes
Favoured:
0
Current Version
1.0
Last Release Date
2012-01-19
Compatible With
  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
License
GPL
Hits
79963
Files:
FileDescription
recovered_service_handler.shrecovered_service_handler.sh
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
This event Handler updates the Ticket in the OTRS help desk, which is raised on NON-OK state of a service via email alert,when the service comes back(OK-State).
Suppose a Ticket is created in the OTRS help desk by sending an email alert to the OTRS email address when a service is in a hard NON-OK state.
when this service comes back in a OK state,this event handler should be fired to update the same ticket.
It takes the name of the service and Host as argument,fetches the latest ticket's number from the OTRS database and send a mail to the OTRS email address with the ticket's number as the subject of the email to update the ticket.

Email alert to the OTRS email address on recovery of the service should be suppressed in order to avoid raising a new ticket.
A sample service definition should look like the following :

define service{
use local-service ; Name of service template to use
host_name localhost
service_description SSH
check_command check_ssh
notifications_enabled 0
event_handler recovered_service_handler
}
An entry for the event handler command should be made in the command.cfg file.