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,
Service Check Issue
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Service Check Issue
@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.
Re: Service Check Issue
You're a rockstar. Quotations did the trick.npolovenko wrote:@AikenPSR, Try wrapping the service name in the command in double quotes. If it doesn't work try single quotes instead.
Thanks so much,