Page 1 of 1

Check_WMI_Plus return code 255

Posted: Tue Oct 23, 2018 9:31 am
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

Re: Check_WMI_Plus return code 255

Posted: Wed Oct 24, 2018 3:41 pm
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.