Page 1 of 1

Problem with check_ncpa.py and multiple services

Posted: Tue May 02, 2017 12:09 pm
by bennyboy
Hi,

I try to monitor multiple service in 1 check with NCPA. I read the doc but the command not working.

Code: Select all

https://servername:5693/api/services?service=MSSQLSERVER&service=SQLSERVERAGENT&check=true&status=running

{ "returncode": 0, "stdout": "OK: MSSQLSERVER is running, SQLSERVERAGENT is running" }
But….

Code: Select all

./check_ncpa.py -H servername -t 'our token' -M 'service' -q 'service=MSSQLSERVER,service=SQLSERVERAGENT,status=running' 
Return only one service status

Code: Select all

OK: SQLSERVERAGENT is running
Please help!

Re: Problem with check_ncpa.py and multiple services

Posted: Tue May 02, 2017 3:03 pm
by cdienger
Our dev team is aware of this and looking into it. You can track the issue at https://github.com/NagiosEnterprises/ncpa/issues/332.

Re: Problem with check_ncpa.py and multiple services

Posted: Wed May 03, 2017 8:35 am
by bennyboy
cdienger wrote:Our dev team is aware of this and looking into it. You can track the issue at https://github.com/NagiosEnterprises/ncpa/issues/332.
Nice work :)

https://github.com/NagiosEnterprises/nc ... 6b57226be0

I will test it in couple minutes :)

Re: Problem with check_ncpa.py and multiple services

Posted: Wed May 03, 2017 9:31 am
by cdienger
Sounds good!

Re: Problem with check_ncpa.py and multiple services

Posted: Wed May 03, 2017 9:44 am
by bennyboy
Working fine for us.

Thank you !

Re: Problem with check_ncpa.py and multiple services

Posted: Wed May 03, 2017 9:49 am
by cdienger
Glad to hear. Any additional questions or are we good to lock this thread?

Re: Problem with check_ncpa.py and multiple services

Posted: Wed May 03, 2017 9:54 am
by bennyboy
No more question for the moment. Thank you!