Page 1 of 1

This plugin requires the linux implementation of wmic eg fro

Posted: Wed Jan 08, 2020 10:15 am
by netagurion
I am getting this error for all of my WMI queries after upgrading from 5.4.12 to 5.6.9

This plugin requires the linux implementation of wmic eg from zenoss.
What is the fix. I saw a link in another post for a doc on this fix but the link does not work.

Re: This plugin requires the linux implementation of wmic eg

Posted: Wed Jan 08, 2020 11:34 am
by lmiltchev
Run the following commands from the command line and show the output:

Code: Select all

which wmic
ls -la /usr/bin/wmic
Go to /usr/local/nagios/libexec directory, find these 3 files:

Code: Select all

check_wmi_plus.pl
check_wmi_plus.ini
check_wmi_plus.conf
and upload them on the forum. You may need to rename them with a "*.txt" extension, prior to uploading them. Thanks!

Re: This plugin requires the linux implementation of wmic eg

Posted: Wed Jan 08, 2020 1:42 pm
by netagurion
To be clear... when going into the config wizard and trying to add another WMI server query, I got the following error in the UI:
WARNING: wmic binary has not been installed. See documentation on Installing WMI

The documentation lives here:
https://assets.nagios.com/downloads/nag ... For_XI.pdf

Per the document I ran:
wget https://assets.nagios.com/downloads/nag ... install.py
chmod +x wmicinstall.py
./wmicinstall.py

This downloaded wmic_1.x.x.x_static_64bit.tar.gz from https://assets.nagios.com/downloads/nagiosxi/agents
and appears to have installed the necessary files to allow for WMI to run again on my newly upgraded server.

This is resolved, and I hope this helps someone in the future as it seems like this is a known issue that NagiosXI support has documentation for but does not publish anywhere easy to find and support should have known about right away.

This issue has been resolved.

Re: This plugin requires the linux implementation of wmic eg

Posted: Wed Jan 08, 2020 3:14 pm
by lmiltchev
This is resolved, and I hope this helps someone in the future as it seems like this is a known issue that NagiosXI support has documentation for but does not publish anywhere easy to find and support should have known about right away.
Thank you for your feedback! I haven't been able to recreate the issue in-house. I upgraded Nagios XI 5.4.12 to 5.6.9, and my WMI checks didn't fail.

Before upgrade:

Code: Select all

[root@TEST_XI_CentOS_6 tmp]# cat /usr/local/nagiosxi/var/xiversion
###################################
# DO NOT DELETE THIS FILE!
# Nagios XI version information
###################################
full=5.4.12
major=5
minor=4.12
releasedate=2018-01-16
release=5412

[root@TEST_XI_CentOS_6 tmp]# which wmic
/usr/local/bin/wmic

[root@TEST_XI_CentOS_6 tmp]# ll /usr/bin/wmic
lrwxrwxrwx 1 root root 19 Oct 29  2018 /usr/bin/wmic -> /usr/local/bin/wmic

[root@TEST_XI_CentOS_6 tmp]# /usr/local/nagios/libexec/check_wmi_plus.pl --version
Version: 1.6

Windows WMI wizard ver. 2.2.0
After upgrade:

Code: Select all

[root@TEST_XI_CentOS_6 nagiosxi]#  cat /usr/local/nagiosxi/var/xiversion
###################################
# DO NOT DELETE THIS FILE!
# Nagios XI version information
###################################
full=5.6.9
major=5
minor=6.9
releasedate=2019-12-10
release=5609

[root@TEST_XI_CentOS_6 nagiosxi]# which wmic
/usr/local/bin/wmic

[root@TEST_XI_CentOS_6 nagiosxi]# ll /usr/bin/wmic
lrwxrwxrwx 1 root root 19 Oct 29  2018 /usr/bin/wmic -> /usr/local/bin/wmic

[root@TEST_XI_CentOS_6 nagiosxi]# /usr/local/nagios/libexec/check_wmi_plus.pl --version
Version: 1.65

Windows WMI wizard ver. 2.2.0
example01.PNG
Also, I would like to point out that this particular document states:
IMPORTANT
Nagios XI 2012 and newer do not need these steps to be performed, the WMI client is installed by default.
I am not sure why wmic binary was not installed on your system... it should've been. Perhaps, there was an issue with the upgrade, or you were hitting some kind of "edge case" scenario. It is not a very common issue - I can find only a couple of users on the forum, reporting the same error ("This plugin requires the linux implementation of wmic eg from zenoss.") for the last 5 years.

Having said that, we will discuss the issue with our developers, and will do some more digging into it. It is possible that this is a bug. If we determine that it is, I will be filing an internal bug report on the issue, and let our developers fix it.

Again, thanks for your feedback!