Nagios Event Handler- Custom Variable
Posted: Mon Oct 15, 2018 8:12 am
Hi Team,
I m trying to implement event handler for a process.
Previously, i have implemented the same for a service,for which the command is as follows,
/usr/local/nagios/libexec/check_nrpe -H 10.25.13.34 -p 5666 -c service_restart -a crond,
for which i have declared the Free variable in the Misc settings as _SERVICE = crond
and in the command of the event handler (say Service_Restart) i have declared the Command line as
"$USER1$/service_start.sh $SERVICESTATE$ $HOSTADDRESS$ $_SERVICESERVICE$"
in which $_SERVICESERVICE$ is the value _SERVICE declared in the Misc Settings.
Now, i am implementing the same for a Process,
/usr/local/nagios/libexec/check_nrpe -H 10.25.13.34 -p 5666 -c process_start -a /software/process.sh(Path varies for different process)
for this what is the free variable i should declare and also instead of $_SERVICESERVICE$ what should be declared in the command line.
Please help in resolving this issue...
Thanks in advance...
I m trying to implement event handler for a process.
Previously, i have implemented the same for a service,for which the command is as follows,
/usr/local/nagios/libexec/check_nrpe -H 10.25.13.34 -p 5666 -c service_restart -a crond,
for which i have declared the Free variable in the Misc settings as _SERVICE = crond
and in the command of the event handler (say Service_Restart) i have declared the Command line as
"$USER1$/service_start.sh $SERVICESTATE$ $HOSTADDRESS$ $_SERVICESERVICE$"
in which $_SERVICESERVICE$ is the value _SERVICE declared in the Misc Settings.
Now, i am implementing the same for a Process,
/usr/local/nagios/libexec/check_nrpe -H 10.25.13.34 -p 5666 -c process_start -a /software/process.sh(Path varies for different process)
for this what is the free variable i should declare and also instead of $_SERVICESERVICE$ what should be declared in the command line.
Please help in resolving this issue...
Thanks in advance...