check_nrpe CheckServiceState with spaces in service name
Posted: Thu May 17, 2012 1:19 am
Hi
I am trying to monitor all services that are set to automatic, but I need to exclude a few services. These services contain spaces. Below are the command I am using:
define command{
command_name check_service
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -p 5666 -c CheckServiceState -a CheckAll "exclude=NetBackup Device Manager"
}
This is sending the command wrong and splitting the service name up:
7 15:57:40: debug:NSClient++.cpp
Injecting: CheckServiceState: CheckAll, exclude=NetBackup, Device, Manager"
Could somebody please help ?
Thanks
I am trying to monitor all services that are set to automatic, but I need to exclude a few services. These services contain spaces. Below are the command I am using:
define command{
command_name check_service
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -p 5666 -c CheckServiceState -a CheckAll "exclude=NetBackup Device Manager"
}
This is sending the command wrong and splitting the service name up:
7 15:57:40: debug:NSClient++.cpp
Could somebody please help ?
Thanks