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" }Code: Select all
./check_ncpa.py -H servername -t 'our token' -M 'service' -q 'service=MSSQLSERVER,service=SQLSERVERAGENT,status=running' Code: Select all
OK: SQLSERVERAGENT is running