Adding Windows Service to NCPA. Service check fails

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
akrradford
Posts: 16
Joined: Fri Apr 17, 2015 2:35 pm

Adding Windows Service to NCPA. Service check fails

Post by akrradford »

I think the problem is the way the Sysadmin of this system defined the service name. When I run the check for most services, I get a return result but one service in particular fails:

SQL Error [nagiosxi] : ERROR: syntax error at or near "O"
LINE 1: ...ec/check_ncpa.py -H 172.16.193.22 -t \'^F(Qzg0XZ[1O\' -P 569...
^
[[email protected] ~]$ /usr/local/nagios/libexec/check_ncpa.py -H 172.16.193.22 -t '^F(Qzg0XZ[1O' -P 5693 -M 'services' -q 'service=ENSTAR - FCS_File_import_Service,status=running'
Error submitting command.

When I used NSClient I would get around spaces in the service check name by adding quotes, but this doesn't work either.

Full syntax of check:
-t '^F(Qzg0XZ[1O' -P 5693 -M 'services' -q 'service=ENSTAR - FCS_File_import_Service,status=running'
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Adding Windows Service to NCPA. Service check fails

Post by cdienger »

So far I haven't been able to reproduce. Are you getting htis message in the web interafce with the 'Run Check Command' button or from the command line?

What version of XI is this? (cat /usr/local/nagiosxi/var/xiversion)

What version of the plugin? (/usr/local/nagios/libexec/check_ncpa.py -V)

Try running the command directly on the command line:

Code: Select all

su - nagios
/usr/local/nagios/libexec/check_ncpa.py -H 172.16.193.22 -t '^F(Qzg0XZ[1O' -P 5693 -M 'services' -q 'service=ENSTAR - FCS_File_import_Service,status=running'
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked