NCPA 2.0.2 monitoring multiple windows services
Posted: Wed May 24, 2017 5:45 pm
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
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