Closed Stefan-Hoesl closed 3 months ago
%20
is url encoded and definitly not intended to work. What should work is:
... check_service service='my WinService' ...
You need to put text i quotes if it contains spaces. If that doesn't work, then it is a bug.
Still get the same error when putting Servicename in single quotes:
check_nsc_web -config /.../check_nsc_web.config -k -query "check_service service='my WinService'" -u https://myWinhHst:8443
UNKNOWN - unknown argument: WinService
You don't need -query, the shell otherwise removes some of the quotes, just do:
./check_nsc_web -p test -k -u "https://192.168.56.10:8443" check_service service='my WinService'
UNKNOWN - failed to open service my WinService: failed to find service name my WinService
Thank you that fixed it. Even the check parameters have to be at the end of the command.
I am using following command line to check "my WinSerice" on Host myWinHost:
If I use %20 instead of space I get the following:
How can I check Windows Services with spaces in Service-Names?