Page 1 of 1

Unable to monitor Windows desktop

Posted: Tue Mar 12, 2013 8:45 pm
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.

Re: Unable to monitor Windows desktop

Posted: Wed Mar 13, 2013 9:08 am
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.

Re: Unable to monitor Windows desktop

Posted: Wed Mar 27, 2013 6:50 am
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.

Re: Unable to monitor Windows desktop

Posted: Wed Mar 27, 2013 8:50 am
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

Re: Unable to monitor Windows desktop

Posted: Wed Mar 27, 2013 9:01 am
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