NCPA 2.0.2 monitoring multiple windows services

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
da1701d
Posts: 23
Joined: Tue Jun 25, 2013 3:57 pm

NCPA 2.0.2 monitoring multiple windows services

Post by da1701d »

Hello,

I am trying to use one check command to monitor multiple windows services. Here is the command I am using:

check_ncpa.py -H <hostname> -t '<apikey>' -M 'services' -q 'service=SERVICE1,service=SERVICE2,service=SERVICE3,service=SERVICE4,status=running'

...this only returns the status of last service in the list above...

OK: SERVICE4 is running

This behaves this way from both the command line of the nagios server and in the service management UI when you click "Run check command". When you login directly into the clients API interface it work correctly. Has anyone else encountered this? Is there a problem with the syntax of my check command?

Thanks in advance,

Dan
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: NCPA 2.0.2 monitoring multiple windows services

Post by tgriep »

If you run the plugin in verbose mode, you will see the API call that is generated by the plugin, only checks the last service in the query and not all of them.
I would assume that the plugin is not setup to query multiple services at once.
Be sure to check out our Knowledgebase for helpful articles and solutions!
da1701d
Posts: 23
Joined: Tue Jun 25, 2013 3:57 pm

Re: NCPA 2.0.2 monitoring multiple windows services

Post by da1701d »

Thanks a lot. I just found someone else who posted this as a known bug with the older version of the check_ncpa.py plugin. I guess its fixed in the newer 1.1.1 version. I was running the older 1.0.2 version.

https://support.nagios.com/forum/viewto ... ce#p220240

I already checked out the code for this newer version and tested it and it returns the correct status for multiple service checks.

-Dan
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: NCPA 2.0.2 monitoring multiple windows services

Post by tgriep »

Here I thought I was running the latest version and I wasn't, silly me.
Thanks for posting back your findings.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked