wmic binary has not been installed.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Interrex
Posts: 68
Joined: Thu May 19, 2016 8:42 am

wmic binary has not been installed.

Post by Interrex »

Hi.

When I try to create WMI check's via the wizard I get the following Warning:
"WARNING: wmic binary has not been installed" and refer to the: https://assets.nagios.com/downloads/nag ... For_XI.pdf

The DOC says:
IMPORTANT
Nagios XI 2012 and newer do not need these steps to be performed, the WMI client is installed by default.


My system.
Nagios XI 5.5.7 running on RHEL7 (VM)
Offline installation.
Windows WMI plugin is latest version - 2.1.1

Error from command line:
/usr/local/nagios/libexec/check_wmi_plus.pl -H "address" -u -p -m
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'.

I tried to install wmic rpm, wmi-1.3.14-4.el7.art.x86_64.rpm at the end i got the following conflict.
Transaction check error:
file /bin/winexe from install of wmi-1.3.14-4.el7.art.x86_64 conflicts with file from package nagiosxi-wmic-5.5.7-1.el7.x86_64
file /bin/wmic from install of wmi-1.3.14-4.el7.art.x86_64 conflicts with file from package nagiosxi-wmic-5.5.7-1.el7.x86_64

Did a search for wmic on my server.
Found one, but symbolic link to the file /usr/local/bin/wmic that do not exist..

$ ls -l /usr/bin/wmic
lrwxrwxrwx 1 root root 19 Nov 21 2018 /usr/bin/wmic -> /usr/local/bin/wmic
$ ls -ll /usr/local/bin/wmic
ls: cannot access /usr/local/bin/wmic: No such file or directory
$ sudo ls -ll /usr/local/bin/wmic
ls: cannot access /usr/local/bin/wmic: No such file or directory


Any suggestion for a quick fix?
Or should I do a upgrade of the NagiosXi to a newer version ?
Interrex
Posts: 68
Joined: Thu May 19, 2016 8:42 am

Re: wmic binary has not been installed.

Post by Interrex »

Is it possible to download the nagiosxi-wmic rpm?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: wmic binary has not been installed.

Post by scottwilkerson »

Interrex wrote:Is it possible to download the nagiosxi-wmic rpm?
The RPM is bundled inside this offline install tarball
https://repo.nagios.com/nagiosxi-offlin ... _64.tar.gz

Extract the tarball and you should be able to see the nagiosxi-wmic rpm
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Interrex
Posts: 68
Joined: Thu May 19, 2016 8:42 am

Re: wmic binary has not been installed.

Post by Interrex »

Hi, reinstall of the nagiosxi-wmic rpm did not solve the problem, no errors under install, no librarys found after install...
Is it possible to only install the "wmic rpm" from another version?

Do you belive a XI version upgrade will solve the problem ?
Interrex
Posts: 68
Joined: Thu May 19, 2016 8:42 am

Re: wmic binary has not been installed.

Post by Interrex »

Hi, I checked another installation with XI 5.5.6.
Same issue there.

Any suggestion how I can get the wmic / wmi plugin to work?
I’m lost here...
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: wmic binary has not been installed.

Post by scottwilkerson »

Can you navigate to the directory with the nagiosxi-wmic rpm and show the output of

Code: Select all

rpm -ql nagiosxi-wmic-5.5.7-1.el7.x86_64.rpm
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Interrex
Posts: 68
Joined: Thu May 19, 2016 8:42 am

Re: wmic binary has not been installed.

Post by Interrex »

scottwilkerson wrote:Can you navigate to the directory with the nagiosxi-wmic rpm and show the output of

Code: Select all

rpm -ql nagiosxi-wmic-5.5.7-1.el7.x86_64.rpm
The output is confusing... :)

root@server:~/rpm $ rpm -ql nagiosxi-wmic-5.5.7-1.el7.x86_64.rpm
package nagiosxi-wmic-5.5.7-1.el7.x86_64.rpm is not installed
root@server:~/rpm $ rpm --install nagiosxi-wmic-5.5.7-1.el7.x86_64.rpm
warning: nagiosxi-wmic-5.5.7-1.el7.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID c62934a0: NOKEY
package nagiosxi-wmic-5.5.7-1.el7.x86_64 is already installed

Should I try to remove and install it again ?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: wmic binary has not been installed.

Post by scottwilkerson »

lets try

Code: Select all

rpm -qlpv ./nagiosxi-wmic-5.5.7-1.el7.x86_64.rpm
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Interrex
Posts: 68
Joined: Thu May 19, 2016 8:42 am

Re: wmic binary has not been installed.

Post by Interrex »

scottwilkerson wrote:lets try

Code: Select all

rpm -qlpv ./nagiosxi-wmic-5.5.7-1.el7.x86_64.rpm
Output is:
root@server:/tmp/rpm $ rpm -qlpv ./nagiosxi-wmic-5.5.7-1.el7.x86_64.rpm
warning: ./nagiosxi-wmic-5.5.7-1.el7.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID c62934a0: NOKEY
-rwxr-xr-x 1 root root 7946110 Nov 14 2018 /usr/bin/winexe
-rwxr-xr-x 1 root root 12443029 Nov 14 2018 /usr/bin/wmic
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: wmic binary has not been installed.

Post by scottwilkerson »

I would remove that symlink you have

Code: Select all

rm -f /usr/bin/wmic
then uninstall and reinstall the RPM
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked