Page 1 of 1

windows plugin timeout

Posted: Tue Jan 22, 2013 11:09 am
by maxwellmiranda
i want to monitor a windows 2008 server through nagios...however i am getting following error....
i am able to ping the server...



nagusgrd1:/usr/local/nagios/libexec> /usr/local/nagios/libexec/check_wmi_plus.pl -H usmaboprod-db5 -u nagios -p '******' -m checkcpu -w '80' -c '90'
UNKNOWN - Plugin Timed out (15 sec)
nagusgrd1:/usr/local/nagios/libexec> ping usmaboprod-db5
PING usmaboprod-db5.bose.com (10.10.30.21) 56(84) bytes of data.
64 bytes from usmaboprod-db5.bose.com (10.10.30.21): icmp_seq=1 ttl=127 time=3.02 ms
64 bytes from usmaboprod-db5.bose.com (10.10.30.21): icmp_seq=2 ttl=127 time=1.48 ms
64 bytes from usmaboprod-db5.bose.com (10.10.30.21): icmp_seq=3 ttl=127 time=1.59 ms
64 bytes from usmaboprod-db5.bose.com (10.10.30.21): icmp_seq=4 ttl=127 time=1.64 ms
^C
--- usmaboprod-db5.bose.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3152ms
rtt min/avg/max/mdev = 1.487/1.938/3.029/0.632 ms

Re: windows plugin timeout

Posted: Tue Jan 22, 2013 11:31 am
by scottwilkerson
You may need to go through these steps on the client to make sure it is allowing access to WMI
http://assets.nagios.com/downloads/nagi ... ng_WMI.pdf

Re: windows plugin timeout

Posted: Tue Jan 22, 2013 11:35 am
by maxwellmiranda
is there any way to monitor a windows server without installing any agent....

Re: windows plugin timeout

Posted: Tue Jan 22, 2013 11:40 am
by scottwilkerson
WMI should be pre-installed, but some systems may have security context that blocks access remotely.

Without using an actual agent, or WMI, or SNMP, You would only be able to check if certain ports on the machine were accessible. Nagios is awesome, but it still needs a way to get the data, and for security sake this is a good thing, if there was a way for it to access all of your system information without you specifically allowing it, this would be available to any intruder...

Re: windows plugin timeout

Posted: Tue Jan 22, 2013 11:57 am
by maxwellmiranda
the nagios server we use is a linux server...how do i check if wmi is already installed on my xi server

Re: windows plugin timeout

Posted: Tue Jan 22, 2013 12:04 pm
by scottwilkerson
If you have a 2012 version of XI, it is pre installed on the XI server

Re: windows plugin timeout

Posted: Tue Jan 22, 2013 1:07 pm
by maxwellmiranda
we are on 2012R1.0.....

Re: windows plugin timeout

Posted: Tue Jan 22, 2013 1:33 pm
by scottwilkerson
It should be installed on the XI server, you can verify by running the following command

Code: Select all

which wmic
the document I linked earlier was more about page 2-12 setting up the windows machines to make sure they allow connections...