Except CPU, Uptime other services working fine
Posted: Mon May 25, 2020 6:38 am
Team,
We are facing issues on few of windows 2008 servers related to OS Performance monitoring via WMI.
Nagios able to collect data for Memory and Disk Monitoring but not able to collect for CPU & Uptime.
KInldy check the issue and help. Attached error and logs with "-d" for WMI.
Below is the output from Nagios server command line testing with "-d" option.
[root@p01 ~]# /usr/local/nagios/libexec/check_wmi_plus.pl -H 192.168.72.138 -u 'xxxxxxl' -p 'xxxxxx' -m checkcpu -d
Command Line (v1.6): /usr/local/nagios/libexec/check_wmi_plus.pl -H 192.168.72.138 -u USER -p PASS -m checkcpu -d
Base Dir: /usr/local/nagios/libexec
Conf File Dir: /usr/local/nagios/libexec
Loaded Conf File /usr/local/nagios/libexec/check_wmi_plus.conf
Extra Wmic Arguments specified:--option=client ntlmv2 auth=Yes
Starting Keep State Mode
STATE FILE: /tmp/cwpss_checkcpu__19216872138___.state
Round #1 of 1
QUERY: /usr/bin/wmic '--option=client ntlmv2 auth=Yes' '-U' 'USER%PASS' '--namespace' 'root/cimv2' '//192.168.72.138' 'select PercentProcessorTime,Timestamp_Sys100NS 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 192.168.72.138 might just be really busy, it might not even be running Windows.
[root@p01 ~]#
Below is the output from Nagios web console which we tried to test CPU.
[nagios@p01 ~]$ /usr/local/nagios/libexec/check_wmi_plus.pl -H 192.168.72.138 -u 'xxxx' -p 'xxxxxxx' -m checkcpu -w '90' -c '95' -t 120
UNKNOWN - The WMI query had problems. The error text from wmic is: [wmi/wmic.c:212:main()] ERROR: Retrieve result data.
NTSTATUS: NT code 0xc002001b - NT code 0xc002001b
We are facing issues on few of windows 2008 servers related to OS Performance monitoring via WMI.
Nagios able to collect data for Memory and Disk Monitoring but not able to collect for CPU & Uptime.
KInldy check the issue and help. Attached error and logs with "-d" for WMI.
Below is the output from Nagios server command line testing with "-d" option.
[root@p01 ~]# /usr/local/nagios/libexec/check_wmi_plus.pl -H 192.168.72.138 -u 'xxxxxxl' -p 'xxxxxx' -m checkcpu -d
Command Line (v1.6): /usr/local/nagios/libexec/check_wmi_plus.pl -H 192.168.72.138 -u USER -p PASS -m checkcpu -d
Base Dir: /usr/local/nagios/libexec
Conf File Dir: /usr/local/nagios/libexec
Loaded Conf File /usr/local/nagios/libexec/check_wmi_plus.conf
Extra Wmic Arguments specified:--option=client ntlmv2 auth=Yes
Starting Keep State Mode
STATE FILE: /tmp/cwpss_checkcpu__19216872138___.state
Round #1 of 1
QUERY: /usr/bin/wmic '--option=client ntlmv2 auth=Yes' '-U' 'USER%PASS' '--namespace' 'root/cimv2' '//192.168.72.138' 'select PercentProcessorTime,Timestamp_Sys100NS 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 192.168.72.138 might just be really busy, it might not even be running Windows.
[root@p01 ~]#
Below is the output from Nagios web console which we tried to test CPU.
[nagios@p01 ~]$ /usr/local/nagios/libexec/check_wmi_plus.pl -H 192.168.72.138 -u 'xxxx' -p 'xxxxxxx' -m checkcpu -w '90' -c '95' -t 120
UNKNOWN - The WMI query had problems. The error text from wmic is: [wmi/wmic.c:212:main()] ERROR: Retrieve result data.
NTSTATUS: NT code 0xc002001b - NT code 0xc002001b