Nagios XI Version: 2014r2.7 [demo]
Host: CentOS Linux release 7.1.1503
Host architecture: 64bit
Install: manual
Problem Description
/usr/local/bin/wmic fails to run, preventing any WMI service checks
[root@localhost ~]# /usr/local/bin/wmic
/usr/local/bin/wmic: error while loading shared libraries: libsasl2.so.2: cannot open shared object file: No such file or directory
cyrus-sasl-lib is installed (cyrus-sasl-lib-2.1.26-17.el7.x86_64), but does not contain libsasl2.so.2:
[root@localhost ~]# rpm -qil cyrus-sasl-lib | egrep libsasl2.so
/usr/lib64/libsasl2.so.3
/usr/lib64/libsasl2.so.3.0.0
wmic isn't in the Nagios XI tarball, so I assume it's downloaded pre-compiled. The libsasl version must have changed between CentOS 5/6 and CentOS 7.
Chris Myers
Networks By Design
NagiosXI wmic client linked against nonexistent libsasl.so.2
-
jdalrymple
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: NagiosXI wmic client linked against nonexistent libsasl.
I haven't found the rhyme or reason to when it works and when it doesn't. I have run into that problem, however on my current Cent7 build it isn't occurring.
Either way you can simply ln -s to fix the issue, wmic doesn't care.
Either way you can simply ln -s to fix the issue, wmic doesn't care.
Code: Select all
ln -s /usr/lib64/libsasl2.so.3 /usr/lib64/libsasl2.so.2Re: NagiosXI wmic client linked against nonexistent libsasl.
Chris,
jdalrymple beat me to providing a fix, but here is some addition information I dug up:
From https://bugzilla.redhat.com/show_bug.cgi?id=1143874:
jdalrymple beat me to providing a fix, but here is some addition information I dug up:
From https://bugzilla.redhat.com/show_bug.cgi?id=1143874:
The binary needs to be recompiled for RHEL7, or you will need to install a copy of libsasl2.so.2. libsasl2.so.2 comes from RHEL 6 and does not exist in RHEL 7.
Re: NagiosXI wmic client linked against nonexistent libsasl.
After linking libsasl2.so.2 to libsasl3.so.3 wmic now runs.
Thanks,
Chris
Thanks,
Chris
Re: NagiosXI wmic client linked against nonexistent libsasl.
Glad to hear that, marking this as resolved and locking the topic, feel free to create another if you have any more issues.