wmic binary has not been installed.
Posted: Tue Jul 07, 2020 4:31 pm
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 ?
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 ?