Page 1 of 1

Service Check Issue

Posted: Tue Oct 23, 2018 1:03 pm
by AikenPSR
We have some in-house developed services running that we need to monitor. I'm having issues with my service check locating the services due to the service names being multi word. The service check stops after the first word:

/usr/local/nagios/libexec/check_nt -H 10.96.x.x -s "" -p 12489 -v SERVICESTATE -l PICS ASRS WINSOCK Reader Service V5.0:01 -d SHOWALL
PICS: Not found

I've tried running the command using _ instead of spaces, but that returned the same not found result.

Is there a way around this short of having the services renamed to a more conventional scheme?

Thanks,

Re: Service Check Issue

Posted: Tue Oct 23, 2018 3:15 pm
by npolovenko
@AikenPSR, Try wrapping the service name in the command in double quotes. If it doesn't work try single quotes instead.

Re: Service Check Issue

Posted: Tue Oct 23, 2018 3:37 pm
by AikenPSR
npolovenko wrote:@AikenPSR, Try wrapping the service name in the command in double quotes. If it doesn't work try single quotes instead.
You're a rockstar. Quotations did the trick.

Thanks so much,