CheckNRPE CheckServiceState with Exclusions including Spaces
Posted: Wed May 16, 2012 11:55 pm
Hi
I am having issue excluding services including spaces using check_nrpe.
If I use, everything works ok:
define command{
command_name check_service
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -p 5666 -c CheckServiceState -a CheckAll exclude=$ARG1$
}
check_command check_disk!LanmanServer
But as soon as I change to:
define command{
command_name check_service
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -p 5666 -c CheckServiceState -a CheckAll "exclude=$ARG1$"
}
check_command check_disk!ManageEngine AssetExplorer Agent
I get this error:
Could not construct return packet in NRPE handler check client side (nsclient.log) logs...
Could someone please help I have read all the documentations, and I am sure I have the right syntax.
Thanks in advance.
I am having issue excluding services including spaces using check_nrpe.
If I use, everything works ok:
define command{
command_name check_service
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -p 5666 -c CheckServiceState -a CheckAll exclude=$ARG1$
}
check_command check_disk!LanmanServer
But as soon as I change to:
define command{
command_name check_service
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -p 5666 -c CheckServiceState -a CheckAll "exclude=$ARG1$"
}
check_command check_disk!ManageEngine AssetExplorer Agent
I get this error:
Could not construct return packet in NRPE handler check client side (nsclient.log) logs...
Could someone please help I have read all the documentations, and I am sure I have the right syntax.
Thanks in advance.