I am able to monitor the state of services with no spaces in thier name ie 'Netloggon'. Using the same command and entering a service name with spaces 'File Zilla' or 'Plug and Play' fails.
Example of same command working:
Code: Select all
./check_ncpa.py -H 10.0.0.100 -t 'MyToken' -P 5693 -M 'services' -q 'service=Netlogon,status=running'
File returned contained:
{
"returncode": 0,
"stdout": "OK: Netlogon is running"
}
OK: Netlogon is running
Code: Select all
./check_ncpa.py -H 10.0.0.100 -t 'MyToken' -P 5693 -M 'service/FileZilla Server FTP server/running'
./check_ncpa.py -H 10.0.0.100 -t 'MyToken' -P 5693 -M 'services' -q 'service=FileZilla Server FTP Server,status=running'
File returned contained:
Code: Select all
{
"returncode": 3,
"stdout": "UNKNOWN: No services selected with 'service' value given"
}
UNKNOWN: No services selected with 'service' value given