Page 2 of 2

Re: wmic binary has not been installed.

Posted: Thu Jul 09, 2020 5:38 pm
by Interrex
scottwilkerson wrote:I would remove that symlink you have

Code: Select all

rm -f /usr/bin/wmic
then uninstall and reinstall the RPM
Deleted the symlink, tried to delete with rpm:
root@server):/tmp/rpm $ rpm -e nagiosxi-wmic-5.5.7-1.el7.x86_64.rpm
error: package nagiosxi-wmic-5.5.7-1.el7.x86_64.rpm is not installed

Then I tried remove with yum:
root@server:/rpm $ yum remove nagiosxi-wmic-5.5.7
Loaded plugins: enabled_repos_upload, package_upload, product-id, search-disabled-repos, subscription-manager
Resolving Dependencies
--> Running transaction check
---> Package nagiosxi-wmic.x86_64 0:5.5.7-1.el7 will be erased
--> Processing Dependency: nagiosxi-wmic(x86-64) = 5.5.7-1.el7 for package: nagiosxi-5.5.7-1.el7.x86_64
--> Running transaction check
---> Package nagiosxi.x86_64 0:5.5.7-1.el7 will be erased
--> Finished Dependency Resolution

Looks like it removes the NagiosXI also... see package marked red. Cancelled the uninstall.

Tried a reinstall after I deleted the symlink, it only created the symlink again.

Re: wmic binary has not been installed.

Posted: Fri Jul 10, 2020 3:08 pm
by scottwilkerson
Interrex wrote: Tried a reinstall after I deleted the symlink, it only created the symlink again.
This is really bizarre because the RPM shows that it should install the below files, neither of which is a symlink
Interrex wrote:
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
Interrex wrote: Do you belive a XI version upgrade will solve the problem ?
This may be the best bet, as I cannot see any reason why you would be getting the results you are seeing

Re: wmic binary has not been installed.

Posted: Wed Jul 15, 2020 2:42 am
by Interrex
Hi, I solved the problem, extracted the wmic and winexe files from the nagiosxi-wmic-5.5.7-1.el7.x86_64.rpm (since this is my version atm) and copied them to /usr/lib/ and added execute.
Strange problem, but the plugin and wizard works as normal now. :D

Re: wmic binary has not been installed.

Posted: Wed Jul 15, 2020 7:26 am
by scottwilkerson
Interrex wrote:Hi, I solved the problem, extracted the wmic and winexe files from the nagiosxi-wmic-5.5.7-1.el7.x86_64.rpm (since this is my version atm) and copied them to /usr/lib/ and added execute.
Strange problem, but the plugin and wizard works as normal now. :D
Glad to hear you solved the problem!

Locking thread