Unable to monitor Windows Server Service

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
demi
Posts: 10
Joined: Wed Jan 18, 2017 11:46 am

Unable to monitor Windows Server Service

Post 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?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Unable to monitor Windows Server Service

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
demi
Posts: 10
Joined: Wed Jan 18, 2017 11:46 am

Re: Unable to monitor Windows Server Service

Post 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
demi
Posts: 10
Joined: Wed Jan 18, 2017 11:46 am

Re: Unable to monitor Windows Server Service

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Unable to monitor Windows Server Service

Post 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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked