Page 1 of 1
Unable to monitor Windows Server Service
Posted: Mon Sep 17, 2018 11:08 am
by demi
Hello,
I am having issues with monitoring windows services that are logged in with a different user logon. Services that use the standard local system and network services work fine. How do i setup the system to monitor these types?
Re: Unable to monitor Windows Server Service
Posted: Mon Sep 17, 2018 12:45 pm
by lmiltchev
How are you monitoring Windows services - via NCPA, NSClient++, SNMP, WMI, etc.? Can you show us an example of a check run from the command line, along with the output of it?
Re: Unable to monitor Windows Server Service
Posted: Mon Sep 17, 2018 1:12 pm
by demi
This is what i get when i run the check command:
[
[email protected] ~]$ /usr/local/nagios/libexec/check_nt -H 188.888.888.888 -s "########" -p 12489 -v SERVICESTATE -l LifePro Thin Service -d SHOWALL
LifePro: Not found
Re: Unable to monitor Windows Server Service
Posted: Mon Sep 17, 2018 1:38 pm
by demi
We just figured it out. You have to place single quotes around the service name to get it to work.
-l 'LifePro Thin Service' -d SHOWALL
Re: Unable to monitor Windows Server Service
Posted: Mon Sep 17, 2018 2:42 pm
by lmiltchev
Yes, if you have spaces in the service name, you will need to wrap it in quotes.
Let us know if this topic can be closed. Thanks!