Nagios not able to monitor service monitoring
Posted: Thu Apr 09, 2020 8:06 am
Hi Team,
Our Nagios system not able to monitor service monitoring but performance monitoring able to monitor.
Please check screenshot attached. Please help me to resolve the issue.
Remote windows OS version: WIndows 2003 STandard Edition
Below is the command outputs:
[root@01]# /usr/local/nagios/libexec/check_wmi_plus.pl -H 192.168.173.134 -u 'xxxxx' -p 'xxxxxx' -m checkcpu -w '90' -c '95'
OK (Sample Period 279 sec) - Average CPU Utilisation 7.40%|'Avg CPU Utilisation'=7.40%;90;95;
[root@01]# /usr/local/nagios/libexec/check_wmi_plus.pl -H 192.168.173.134 -u 'xxxxx' -p 'xxxxxx' -m checkservice -a "CaptorSchedulerService"
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
[root@01]#
[root@01]#/usr/local/nagios/libexec/check_wmi_plus.pl -H 192.168.173.134 -u 'xxxxx' -p 'xxxxxx' -m checkservice -a "CaptorSchedulerService" -t 120 -d
Command Line (v1.6): /usr/local/nagios/libexec/check_wmi_plus.pl -H 192.168.173.134 -u USER -p PASS -m checkservice -a CaptorSchedulerService -t 120 -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
Round #1 of 1
QUERY: /usr/bin/wmic '--option=client ntlmv2 auth=Yes' '-U' 'USER%PASS' '--namespace' 'root/cimv2' '//192.168.173.134' 'select name, displayname, Started, StartMode, State, Status FROM Win32_Service '
OUTPUT: [wmi/wmic.c:212:main()] ERROR: Retrieve result data.
NTSTATUS: NT code 0xc002001b - NT code 0xc002001b
Could not find the CLASS: line - an error occurred
WMI DATA:$VAR1 = [];
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
[root@01]#
Our Nagios system not able to monitor service monitoring but performance monitoring able to monitor.
Please check screenshot attached. Please help me to resolve the issue.
Remote windows OS version: WIndows 2003 STandard Edition
Below is the command outputs:
[root@01]# /usr/local/nagios/libexec/check_wmi_plus.pl -H 192.168.173.134 -u 'xxxxx' -p 'xxxxxx' -m checkcpu -w '90' -c '95'
OK (Sample Period 279 sec) - Average CPU Utilisation 7.40%|'Avg CPU Utilisation'=7.40%;90;95;
[root@01]# /usr/local/nagios/libexec/check_wmi_plus.pl -H 192.168.173.134 -u 'xxxxx' -p 'xxxxxx' -m checkservice -a "CaptorSchedulerService"
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
[root@01]#
[root@01]#/usr/local/nagios/libexec/check_wmi_plus.pl -H 192.168.173.134 -u 'xxxxx' -p 'xxxxxx' -m checkservice -a "CaptorSchedulerService" -t 120 -d
Command Line (v1.6): /usr/local/nagios/libexec/check_wmi_plus.pl -H 192.168.173.134 -u USER -p PASS -m checkservice -a CaptorSchedulerService -t 120 -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
Round #1 of 1
QUERY: /usr/bin/wmic '--option=client ntlmv2 auth=Yes' '-U' 'USER%PASS' '--namespace' 'root/cimv2' '//192.168.173.134' 'select name, displayname, Started, StartMode, State, Status FROM Win32_Service '
OUTPUT: [wmi/wmic.c:212:main()] ERROR: Retrieve result data.
NTSTATUS: NT code 0xc002001b - NT code 0xc002001b
Could not find the CLASS: line - an error occurred
WMI DATA:$VAR1 = [];
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
[root@01]#