Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
recovered_service_handler
1.0
2012-01-19
- Nagios 1.x
- Nagios 2.x
- Nagios 3.x
GPL
79963
File | Description |
---|---|
recovered_service_handler.sh | recovered_service_handler.sh |
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.
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.
Reviews (0)
Be the first to review this listing!