Unable to monitor Windows desktop

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Fahad
Posts: 2
Joined: Tue Mar 12, 2013 8:31 pm
Contact:

Unable to monitor Windows desktop

Post by Fahad »

I'm facing a problem monitoring A Windows desktop, there's open connection between the host and Nagios server and the NSC++ client is installed on the host but Nagios is only able to ping that host and showing (CRITICAL - Socket timeout after 10 seconds) for the other services.
Fahad Albahlouli
IT Operation | Bank Aljazira
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Unable to monitor Windows desktop

Post by slansing »

Nagios may be able to ping the host, but is port 5666 open on the Windows machine? Also, please post your NSC.ini / NSClient.ini file located within the main NSClient++ directory here, you can block out any information you would not like to share such as passwords or IP's but please leave something in it's place showing us it is there.
muffadal
Posts: 1
Joined: Wed Mar 27, 2013 6:30 am

Re: Unable to monitor Windows desktop

Post by muffadal »

I am facing similar issue posts are enabled and open, can you please advise some examples of how to monitor services within IIS and SQL server services on windows client from nagios server.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Unable to monitor Windows desktop

Post by lmiltchev »

Fahad,

From the Nagios XI box, try telneting into the Windows client on port 5666, to make sure you can connect:

Code: Select all

telnet <client_IP> 5666
You can also use nc (netcat):

Code: Select all

nc -zv <client_IP> 5666
If you don't have telnet or nc installed on the nagios server, you can install them by running:

Code: Select all

yum install telnet nc -y
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Unable to monitor Windows desktop

Post by lmiltchev »

muffadal,

You can monitor services via NSClient++ by running:

Code: Select all

/usr/local/nagios/libexec/check_nt -H <client_IP> -s "password" -p 12489 -v SERVICESTATE -l <servicename> -d SHOWALL
...or you can use "check_nrpe" with NSClient++ and "checkServiceState"

http://www.nsclient.org/nscp/wiki/Check ... rviceState

You can also use windows performance counters, using the following a similar format:

Code: Select all

 /usr/local/nagios/libexec/check_nt -H <client_IP> -s "password" -p 12489 -v COUNTER -l "\MSSQL\:Buffer Manager\Page Life expectancy","Page Life expectancy is %.fsec" -w 100 -c 50
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked