- # add to nagios.cfg
- global_service_event_handler=test_event_handler
- define command {
- command_name test_event_handler
- command_line /usr/local/lib/nagios/eventhandlers/test $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$ $HOSTADDRESS$ $_SERVICESERVICE$
- }
- define service {
- use service
- host_name localhost
- service_description test service
- check_command command_name
- max_check_attempts 2
- check_interval 10
- retry_interval 1
- _service test
- }
- # /usr/local/lib/nagios/eventhandlers/test
- #!/bin/sh
- echo "$@" > $(mktemp)
Untitled
Posted by Anonymous on Mon 4th Feb 2019 03:07
raw | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.
kpaste.net RSS