I did some more troubleshooting on this.
First:
Code: Select all
service nagiosna restart
NagiosNA backend stopped.
Traceback (most recent call last):
File "/usr/local/nagiosna/bin/initialize_source.py", line 16, in <module>
import rrdtool
ImportError: librrd.so.4: cannot open shared object file: No such file or directory
NagiosNA backend started...
Then:
Code: Select all
rrdtool
RRDtool 1.4.8 Copyright 1997-2013 by Tobias Oetiker <tobi@oetiker.ch>
Compiled Oct 24 2014 09:26:45
Usage: rrdtool [options] command command_options
Valid commands: create, update, updatev, graph, graphv, dump, restore,
last, lastupdate, first, info, fetch, tune,
resize, xport, flushcached
RRDtool is distributed under the Terms of the GNU General
Public License Version 2. (www.gnu.org/copyleft/gpl.html)
For more information read the RRD manpages
So I looked at the Network Analyzer
fullinstall script and it has an rrdtool section:
Code: Select all
rrdtool() {
tar xf rrdtool-1.4.9.tar.gz
(
cd rrdtool-1.4.9
./configure --prefix=/usr/local --disable-perl
make
make install
)
rm rrdtool-1.4.9 -rf
}
Clearly I'm not up to date.
I checked the
upgrade script and there is no reference to installing / updating rrdtool.
So after updating rrdtool:
Code: Select all
rrdtool
RRDtool 1.4.9 Copyright 1997-2013 by Tobias Oetiker <tobi@oetiker.ch>
Compiled Nov 11 2015 11:13:45
Usage: rrdtool [options] command command_options
Valid commands: create, update, updatev, graph, graphv, dump, restore,
last, lastupdate, first, info, fetch, tune,
resize, xport, flushcached
RRDtool is distributed under the Terms of the GNU General
Public License Version 2. (www.gnu.org/copyleft/gpl.html)
For more information read the RRD manpages
Same problem:
Code: Select all
service nagiosna restart
NagiosNA backend stopped.
Traceback (most recent call last):
File "/usr/local/nagiosna/bin/initialize_source.py", line 16, in <module>
import rrdtool
ImportError: librrd.so.4: cannot open shared object file: No such file or directory
NagiosNA backend started...
Does the file exist?
Code: Select all
find / -name librrd.so.4
/usr/local/lib/librrd.so.4
/tmp/nagiosna/rrdtool-1.4.9/src/.libs/librrd.so.4
ls -la /usr/local/lib/librrd.so.4
lrwxrwxrwx 1 root root 15 Nov 11 11:13 /usr/local/lib/librrd.so.4 -> librrd.so.4.2.2
Then I tried:
Code: Select all
yum install python-rrdtool
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.overthewire.com.au
* epel: mirror.overthewire.com.au
* extras: mirror.overthewire.com.au
* updates: mirror.overthewire.com.au
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package rrdtool-python.x86_64 0:1.3.8-7.el6 will be installed
--> Processing Dependency: rrdtool = 1.3.8-7.el6 for package: rrdtool-python-1.3.8-7.el6.x86_64
--> Processing Dependency: librrd.so.4()(64bit) for package: rrdtool-python-1.3.8-7.el6.x86_64
--> Running transaction check
---> Package rrdtool.x86_64 0:1.3.8-7.el6 will be installed
--> Processing Dependency: dejavu-sans-mono-fonts for package: rrdtool-1.3.8-7.el6.x86_64
--> Processing Dependency: dejavu-lgc-sans-mono-fonts for package: rrdtool-1.3.8-7.el6.x86_64
--> Running transaction check
---> Package dejavu-lgc-sans-mono-fonts.noarch 0:2.30-2.el6 will be installed
---> Package dejavu-sans-mono-fonts.noarch 0:2.30-2.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=========================================================================================================================================
Package Arch Version Repository Size
=========================================================================================================================================
Installing:
rrdtool-python x86_64 1.3.8-7.el6 base 29 k
Installing for dependencies:
dejavu-lgc-sans-mono-fonts noarch 2.30-2.el6 base 393 k
dejavu-sans-mono-fonts noarch 2.30-2.el6 base 450 k
rrdtool x86_64 1.3.8-7.el6 base 293 k
Transaction Summary
=========================================================================================================================================
Install 4 Package(s)
Total download size: 1.1 M
Installed size: 2.7 M
Is this ok [y/N]: n
Exiting on user Command
But I didn't proceed as it looked like it was going to downgrade rrdtool.
Not sure what to do now.