Monitoring Windows Using WMI - Issues
Posted: Mon Mar 11, 2019 10:17 am
Hi,
We have 2 network zones, nagiosXI is hosted on Zone1. We have to monitor windows (2016) boxes in Zone2 using WMI. We have followed https://assets.nagios.com/downloads/nag ... ios-XI.pdf to setup monitoring.
Server level firewall is OFF. On Physical firewall we have enabled INBOUND and OUTBOUND TCP port 135 from Zone2 to Zone1 nagiosXI.
We are getting error:
[root@nagiosXI ~]# /usr/local/nagios/libexec/check_wmi_plus.pl -H 10.x.x.x -u 'domain/username' -p 'password' -m checkcpu -w '80' -c '95' -d
Command Line (v1.6): /usr/local/nagios/libexec/check_wmi_plus.pl -H 10.x.x.x -u USER -p PASS -m checkcpu -w 80 -c 9
Base Dir: /usr/local/nagios/libexec
Conf File Dir: /usr/local/nagios/libexec
Loaded Conf File /usr/local/nagios/libexec/check_wmi_plus.conf
Starting Keep State Mode
STATE FILE: /tmp/cwpss_checkcpu__10215750___.state
Round #1 of 1
QUERY: /usr/bin/wmic '-U' 'USER%PASS' '--namespace' 'root/cimv2' '//10.x.x.x' 'select PercentProcessorTime,Timestam from Win32_PerfRawData_PerfOS_Processor where Name="_Total"'
UNKNOWN - Plugin Timed out (15 sec). There are multiple possible reasons for this, some of them include - The host 10.x.x.x might just be really busy, it might not even be running Windows.
Increased timeout to 90 sec, still the same.
Telnet from NagiosXI box to host 10.x.x.x : Connected to 10.x.x.x.
WMI output works fine for local network Zone1 systems. What are we missing here?
Thanks,
Vikram
We have 2 network zones, nagiosXI is hosted on Zone1. We have to monitor windows (2016) boxes in Zone2 using WMI. We have followed https://assets.nagios.com/downloads/nag ... ios-XI.pdf to setup monitoring.
Server level firewall is OFF. On Physical firewall we have enabled INBOUND and OUTBOUND TCP port 135 from Zone2 to Zone1 nagiosXI.
We are getting error:
[root@nagiosXI ~]# /usr/local/nagios/libexec/check_wmi_plus.pl -H 10.x.x.x -u 'domain/username' -p 'password' -m checkcpu -w '80' -c '95' -d
Command Line (v1.6): /usr/local/nagios/libexec/check_wmi_plus.pl -H 10.x.x.x -u USER -p PASS -m checkcpu -w 80 -c 9
Base Dir: /usr/local/nagios/libexec
Conf File Dir: /usr/local/nagios/libexec
Loaded Conf File /usr/local/nagios/libexec/check_wmi_plus.conf
Starting Keep State Mode
STATE FILE: /tmp/cwpss_checkcpu__10215750___.state
Round #1 of 1
QUERY: /usr/bin/wmic '-U' 'USER%PASS' '--namespace' 'root/cimv2' '//10.x.x.x' 'select PercentProcessorTime,Timestam from Win32_PerfRawData_PerfOS_Processor where Name="_Total"'
UNKNOWN - Plugin Timed out (15 sec). There are multiple possible reasons for this, some of them include - The host 10.x.x.x might just be really busy, it might not even be running Windows.
Increased timeout to 90 sec, still the same.
Telnet from NagiosXI box to host 10.x.x.x : Connected to 10.x.x.x.
WMI output works fine for local network Zone1 systems. What are we missing here?
Thanks,
Vikram