NSClient++ Help (#1) - Servicestate with spaces still a problem? (#180) - Message List
Hello, I'm trying to monitor specific services through nsclient++, and according to the changelog, this issue should have been fixed about a year ago, so I'm thinking maybe I have done something wrong. The checks work fine as long as the service name doesn't contain spaces, but then when I try providing service names with spaces I get this problem:
/usr/local/nagios/libexec/check_nrpe-ssl -t 30 -H servername -p port -c check_service -a "Nifty Name"
Service: Nifty caused: GetServiceKeyName?: Could not translate service name(0)
I have tried this with and without backslashes, using none, single and double quotes with the same result.
The client config for check_service looks like this: check_service=inject checkServiceState ShowAll $ARG1$
-
Message #506
humm, might wanna try to add "" around the command definition just to see what happens.
All in all I would guess that that is where we have the problem but I shall look into it. Probably should extend the error message to say what it tried to find.
ie.
check_service=inject checkServiceState ShowAll "$ARG1$"
MickeM
mickem06/24/08 14:28:46 (5 years ago)-
Message #507
You are absolutely correct, that seems to have solved my problem. I never suspected you would have to use quotation marks in both the check and the command definition. Big thanks, that would have been a real headache for me.
All in all, great application. I am currently in the process of implementing it on around 500 servers at our company.
socius06/24/08 14:57:31 (5 years ago)
-








