Check_WMI_Plus return code 255

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
alienone
Posts: 11
Joined: Tue May 06, 2014 9:05 am

Check_WMI_Plus return code 255

Post by alienone »

Hi
I got a problem with Check_WMI_Plus.
When I run....
check_wmi_plus.pl -H 192.168.xx.xxx -m checkeventlog -a System -u xxxx -p xxxx -o 2 -3 2
I get the answer below thats is ok
OK - 0 event(s) of Severity Level: "Error,Warning", were recorded in the last 2 hours from the System Event Log.|'Event Count'=0;

But when there is an error event in the log I receive ......
Can't call method "val" on an undefined value at /opt/nagios/bin/plugins/check_wmi_plus.pl line 1105

And in the webgui I get
(Return code of 255 for service 'Event Log Application Warnings' on host 'XXX' was out of bounds)

Regards,

Joakim
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Check_WMI_Plus return code 255

Post by cdienger »

Run the following to get the version of the plugin:

/usr/local/nagios/libexec/check_wmi_plus.pl --version

I've tested with the 1.6 plugin and cannot reproduce. I've attached it here so you can test with it as well.
Attachments
check_wmi_plus.pl
(327.52 KiB) Downloaded 207 times
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked