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
80055
Files:
FileDescription
recovered_service_handler.shrecovered_service_handler.sh
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
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.