Service Check Issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
AikenPSR
Posts: 8
Joined: Mon Jan 29, 2018 7:35 pm

Service Check Issue

Post 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,
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Service Check Issue

Post by npolovenko »

@AikenPSR, Try wrapping the service name in the command in double quotes. If it doesn't work try single quotes instead.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
AikenPSR
Posts: 8
Joined: Mon Jan 29, 2018 7:35 pm

Re: Service Check Issue

Post 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,
Locked