NAGIOS CORE EVENT HANDLER
Posted: Tue Dec 13, 2016 6:56 am
I have one question regarding EVENT HANDLER
I have already configured event handler with HTTP and its is working fine ... i.e. restarting http remote service by nagios server .
Now i want to restart the remote nrpe service via nagios server , as i have made a scripts as well , which is working fine manually . but not working with nagios .
I want to confirm the command_line variables would be used in it .
Confuesed about the variable i have to used in it
Can any one confirm me ?
Regards,
Ishtiaq Ahmed
I have already configured event handler with HTTP and its is working fine ... i.e. restarting http remote service by nagios server .
Now i want to restart the remote nrpe service via nagios server , as i have made a scripts as well , which is working fine manually . but not working with nagios .
I want to confirm the command_line variables would be used in it .
Code: Select all
define command {
command_name restart-service
command_line /usr/local/nagios/libexec/event_handler/event_handler_script.sh [b]$SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$ $HOSTADDRESS$ $ARG1$ $SERVICEDESC$ $MAXSERVICEATTEMPTS
}
Can any one confirm me ?
Regards,
Ishtiaq Ahmed