Code: Select all
Checking objects...
Error: Event handler command 'restart-videoservice' specified in service 'Swap Usage' for host 'localhost' not defined anywhere
Checked 268 services.
Checked 47 hosts.
Checked 6 host groups.
Checked 3 service groups.
Checked 2 contacts.
Checked 1 contact groups.
Checked 25 commands.
Checked 5 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 47 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 5 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 0
Total Errors: 1
Code: Select all
define service{
use local-service
host_name localhost
service_description Swap Usage
max_check_attempts 4
check_command check_local_swap!20!10
event_handler restart-videoservice
}
Code: Select all
# 'restart-videoservice' command definition
define command{
command_name restart_videoservice
command_line /usr/local/nagios/libexec/eventhandlers/restart-videoservice $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$
}