Upgrade from 5.29 to 5.32 broke WMI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
stf_792
Posts: 48
Joined: Fri Jul 17, 2015 12:55 pm

Upgrade from 5.29 to 5.32 broke WMI

Post 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?
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Upgrade from 5.29 to 5.32 broke WMI

Post by avandemore »

Have you reviewed this document?

How To update check_wmi_plus.pl
Previous Nagios employee
stf_792
Posts: 48
Joined: Fri Jul 17, 2015 12:55 pm

Re: Upgrade from 5.29 to 5.32 broke WMI

Post 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.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Upgrade from 5.29 to 5.32 broke WMI

Post 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?
Former Nagios Employee
Locked