Page 1 of 1

Upgrade from 5.29 to 5.32 broke WMI

Posted: Sun Nov 13, 2016 1:03 am
by stf_792
After running upgrade using Admin section of Nagios Xi all my WMI checks show

Code: Select all

This plugin requires the linux implementation of wmic eg from zenoss.
Once wmic is installed, configure its location by setting the $wmic_command variable in '/usr/local/nagios/libexec/check_wmi_plus.conf'.
upgraded from 5.29 to 5.32

end of update logs is

Code: Select all

Total Warnings: 1561
Total Errors:   0

Things look okay - No serious problems were detected during the pre-flight check
RET: 0
Warning: nagios.service changed on disk. Run 'systemctl daemon-reload' to reload units.
Fixing php-mcrypt bug...
No entry for terminal type "unknown";
using dumb terminal settings.

Nagios XI Upgrade Complete!
---------------------------
Warnings were for missing contacts that is intentional.

command line

Code: Select all

 /usr/local/nagios/libexec/check_wmi_plus.pl -H xxx.xxx.xxx.xxx -A /usr/local/nagios/etc/myfile.fil -m checkdrivesize -a 'C': -w '80' -c '95'
returns

Code: Select all

OK - C: Total=39.90GB, Used=28.31GB (71.0%), Free=11.59GB (29.0%)     |'C: Space'=28.31GB; 'C: Utilisation'=71.0%;80;95;  

(some spell correction required :) )


What is the fastest way to fix this?

Re: Upgrade from 5.29 to 5.32 broke WMI

Posted: Mon Nov 14, 2016 10:13 am
by avandemore
Have you reviewed this document?

How To update check_wmi_plus.pl

Re: Upgrade from 5.29 to 5.32 broke WMI

Posted: Mon Nov 14, 2016 10:18 am
by stf_792
We actually resolved that by trying to add new WMI check. Nagios gave us a link that had instructions (slightly different) but they fixed the issue.

What confuses me is the fact that WMI check worked fine in command prompt mode but not in GUI.

Re: Upgrade from 5.29 to 5.32 broke WMI

Posted: Mon Nov 14, 2016 10:23 am
by rkennedy
Your command definitions may have been updated, could you post /usr/local/nagios/libexec/check_wmi_plus.conf for us to look at, and also a sample of your command / service definitions?