thomas-krenn / check_adaptec_raid

Monitoring plugin to check Adaptec RAID controllers
GNU General Public License v3.0
15 stars 10 forks source link

Added --ld-library-path option #7

Closed lausser closed 4 years ago

lausser commented 4 years ago

If you installed /usr/StorMan/arcconf and /usr/StorMan/libstdc++.so.5 manually (without using an installation package) you may have to modify /etc/ld.so.conf.d/ and run ldconfig in order to have /usr/StorMan in the default LD_LIBRARY_PATH. However if you ant to have as less as possible impact in your system (or have other reasons not to have libstdc++.so.5 in a system-wide path), you can run arcconf in a more "isolated" manner. check_adaptec_raid -p /usr/StorMan/arcconf --ld-library-path /usr/StorMan This requires a change in the sudoers file: mon ALL=(root) NOPASSWD: SETENV: /usr/StorMan/arcconf

Inside the plugin, arcconf is then called like this: sudo LD_LIBRARY_PATH=/usr/StorMan /usr/StorMan/arcconf