Page 1 of 1
Source not starting Librrd.so.4 error, VMWare image
Posted: Mon Feb 17, 2014 7:23 pm
by hypex
Hi there
Downloaded nagiosna-2014r1.4-vmware and VMware Workstation 10.0.1 build-1379776.
When i try to run
/usr/local/nagiosna/bin/nagiosna start I get the error
librrd.so.4: cannot open shared object file: No such file or directory
Code: Select all
[root@nswsydnws021 ~]# /usr/local/nagiosna/bin/nagiosna start
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
No such directory: /usr/local/nagiosna/var/SydneyIntranet/flows
No such directory: /usr/local/nagiosna/var/SydneyIntranet/flows
stat() error /usr/local/nagiosna/var/SydneyIntranet/flows: No such file or directory
Failed to add default data collector directory
NagiosNA backend started...
[root@nswsydnws021 ~]#
I run
ps aux | grep nfcapd and returns empty
When i check the backend log I get
Error running initialization.
Could not start nfcapd listening on 2056 for source SydneyIntranet
My nna_conf looks like the following
Code: Select all
Defaults:%nnacmd !requiretty
Host_Alias HOST = localhost
Cmnd_Alias LIST = /sbin/iptables --list
Cmnd_Alias SAVE = /etc/init.d/iptables save
Cmnd_Alias UPDATE = /sbin/iptables -I INPUT -p udp -j ACCEPT --dport *
Cmnd_Alias DAEMON = /usr/local/nagiosna/bin/nagiosna *
%nnacmd ALL=(ALL) NOPASSWD:LIST
%nnacmd ALL=(ALL) NOPASSWD:SAVE
%nnacmd ALL=(ALL) NOPASSWD:UPDATE
%nnacmd ALL=(ALL) NOPASSWD:/bin/kill *
%nnacmd ALL=(ALL) NOPASSWD:DAEMON
Any suggestions
Re: Source not starting Librrd.so.4 error, VMWare image
Posted: Tue Feb 18, 2014 12:12 pm
by lmiltchev
Can you run the following commands and show the us the output?
Code: Select all
ll /usr/local/nagiosna/var/
ll /usr/local/nagiosna/var/SydneyIntranet/
ll -t /usr/local/nagiosna/var/SydneyIntranet/flows | head -n 10
Re: Source not starting Librrd.so.4 error, VMWare image
Posted: Tue Feb 18, 2014 4:38 pm
by hypex
Sure
ll /usr/local/nagiosna/var/
Code: Select all
[root@nswsydnws021 ~]# ll /usr/local/nagiosna/var/
total 4
-rw-rw-r--+ 1 nna nnacmd 1358 Feb 17 19:07 backend.log
ll /usr/local/nagiosna/var/SydneyIntranet/
Code: Select all
[root@nswsydnws021 ~]# ll /usr/local/nagiosna/var/SydneyIntranet/
ls: cannot access /usr/local/nagiosna/var/SydneyIntranet/: No such file or directory
ll -t /usr/local/nagiosna/var/SydneyIntranet/flows | head -n 10
Code: Select all
[root@nswsydnws021 ~]# ll -t /usr/local/nagiosna/var/SydneyIntranet/flows | head -n 10
ls: cannot access /usr/local/nagiosna/var/SydneyIntranet/flows: No such file or directory
Re: Source not starting Librrd.so.4 error, VMWare image
Posted: Wed Feb 19, 2014 2:01 pm
by lmiltchev
How did you try to add this source? Did you follow
this document? "SydneyIntranet" is not in the "var" directory... Besides the "backend.log", you don't have anything else in it.
What is the output of the following command?
Re: Source not starting Librrd.so.4 error, VMWare image
Posted: Wed Feb 19, 2014 6:40 pm
by hypex
Thats how i added it. Downloaded VMware image, loaded it in VMware Workstation 10, logged in via the web interface and created a source. I presume when i create the source from the web interface it should create the folders?
As soon as I add a source via the web interface i get the following message in apache error_log
Code: Select all
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
No such directory: /usr/local/nagiosna/var/SydneyIntranet/flows
No such directory: /usr/local/nagiosna/var/SydneyIntranet/flows
stat() error /usr/local/nagiosna/var/SydneyIntranet/flows: No such file or directory
Failed to add default data collector directory
du: cannot access `/usr/local/nagiosna/var/SydneyIntranet': No such file or directory
du: cannot access `/usr/local/nagiosna/var/SydneyIntranet': No such file or directory
ERROR: opening '/usr/local/nagiosna/var/SydneyIntranet/bandwidth.rrd': No such file or directory
Here is the output of iptables -L -n
Code: Select all
[root@localhost ~]# iptables -L -n
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:443
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:80
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
[root@localhost ~]#
Re: Source not starting Librrd.so.4 error, VMWare image
Posted: Thu Feb 20, 2014 12:59 pm
by lmiltchev
Could not start nfcapd listening on 2056 for source SydneyIntranet
This is probably not the main issue, but UPD port 2056 is not open by looking at your screenshot.
In any case, you should be able to create a source. Can you try creating a new source, named "test" (use whatever "sender IP" and port you want). Click on save, and check if "test" has been created:
Also, run the following commands, and show the output:
Code: Select all
ps -ef | grep nfcapd
which rrdtool
tail -50 /usr/local/nagiosna/var/backend.log
tail -50 /var/log/messages
Re: Source not starting Librrd.so.4 error, VMWare image
Posted: Tue Feb 25, 2014 12:37 am
by hypex
Create source 'test' using web interface. Tried starting the source after creation (didn't start).
Then i ran
ll /usr/local/nagiosna/var/
Code: Select all
[root@localhost ~]# ll /usr/local/nagiosna/var/
total 4
-rw-rw-r--+ 1 nna nnacmd 747 Feb 25 00:29 backend.log
[root@localhost ~]#
ps -ef | grep nfcapd
Code: Select all
[root@localhost ~]# ps -ef | grep nfcapd
root 1540 1345 0 00:31 pts/0 00:00:00 grep nfcapd
[root@localhost ~]#
which rrdtool
Code: Select all
[root@localhost ~]# which rrdtool
/usr/local/bin/rrdtool
[root@localhost ~]#
tail -50 /usr/local/nagiosna/var/backend.log
Code: Select all
Error running initialization.
Could not start nfcapd listening on 2056 for source SydneyInternodeWAN
Error running initialization.
Could not start nfcapd listening on 2056 for source SydneyInternodeWAN
Error running initialization.
Could not start nfcapd listening on 2056 for source SydneyInternodeWAN
Could not access /usr/local/nagiosna/var/SydneyInternodeWAN/2056.pid for killing: [Errno 2] No such file or directory: '/usr/local/nagiosna/var/SydneyInternodeWAN/2056.pid'
Error running initialization.
Could not start nfcapd listening on 2056 for source SydneyIntranet
Error running initialization.
Could not start nfcapd listening on 1111 for source test
Error running initialization.
Could not start nfcapd listening on 1111 for source test
[root@localhost ~]#
tail -50 /var/log/messages
Code: Select all
[root@localhost ~]# tail -50 /var/log/messages
Feb 25 00:24:01 localhost kernel: scsi target2:0:0: Beginning Domain Validation
Feb 25 00:24:01 localhost kernel: scsi target2:0:0: Domain Validation skipping write tests
Feb 25 00:24:01 localhost kernel: scsi target2:0:0: Ending Domain Validation
Feb 25 00:24:01 localhost kernel: scsi target2:0:0: FAST-40 WIDE SCSI 80.0 MB/s ST (25 ns, offset 127)
Feb 25 00:24:01 localhost kernel: sr0: scsi3-mmc drive: 1x/1x writer dvd-ram cd/rw xa/form2 cdda tray
Feb 25 00:24:01 localhost kernel: Uniform CD-ROM driver Revision: 3.20
Feb 25 00:24:01 localhost kernel: sd 2:0:0:0: [sda] 20971520 512-byte logical blocks: (10.7 GB/10.0 GiB)
Feb 25 00:24:01 localhost kernel: sd 2:0:0:0: [sda] Write Protect is off
Feb 25 00:24:01 localhost kernel: sd 2:0:0:0: [sda] Cache data unavailable
Feb 25 00:24:01 localhost kernel: sd 2:0:0:0: [sda] Assuming drive cache: write through
Feb 25 00:24:01 localhost kernel: sd 2:0:0:0: [sda] Cache data unavailable
Feb 25 00:24:01 localhost kernel: sd 2:0:0:0: [sda] Assuming drive cache: write through
Feb 25 00:24:01 localhost kernel: sda: sda1
Feb 25 00:24:01 localhost kernel: sd 2:0:0:0: [sda] Cache data unavailable
Feb 25 00:24:01 localhost kernel: sd 2:0:0:0: [sda] Assuming drive cache: write through
Feb 25 00:24:01 localhost kernel: sd 2:0:0:0: [sda] Attached SCSI disk
Feb 25 00:24:01 localhost kernel: EXT4-fs (sda1): INFO: recovery required on readonly filesystem
Feb 25 00:24:01 localhost kernel: EXT4-fs (sda1): write access will be enabled during recovery
Feb 25 00:24:01 localhost kernel: EXT4-fs (sda1): orphan cleanup on readonly fs
Feb 25 00:24:01 localhost kernel: EXT4-fs (sda1): 5 orphan inodes deleted
Feb 25 00:24:01 localhost kernel: EXT4-fs (sda1): recovery complete
Feb 25 00:24:01 localhost kernel: EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts:
Feb 25 00:24:01 localhost kernel: dracut: Remounting /dev/disk/by-label/79d3d2d4 with -o noatime,ro
Feb 25 00:24:01 localhost kernel: EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts:
Feb 25 00:24:01 localhost kernel: dracut: Mounted root filesystem /dev/sda1
Feb 25 00:24:01 localhost kernel: SELinux: Disabled at runtime.
Feb 25 00:24:01 localhost kernel: type=1404 audit(1393287830.495:2): selinux=0 auid=4294967295 ses=4294967295
Feb 25 00:24:01 localhost kernel: dracut:
Feb 25 00:24:01 localhost kernel: dracut: Switching root
Feb 25 00:24:01 localhost kernel: udev: starting version 147
Feb 25 00:24:01 localhost kernel: sr 1:0:0:0: Attached scsi generic sg0 type 5
Feb 25 00:24:01 localhost kernel: sd 2:0:0:0: Attached scsi generic sg1 type 0
Feb 25 00:24:01 localhost kernel: piix4_smbus 0000:00:07.3: Host SMBus controller not enabled!
Feb 25 00:24:01 localhost kernel: pcnet32.c:v1.35 21.Apr.2008 [email protected]
Feb 25 00:24:01 localhost kernel: pcnet32 0000:02:01.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19
Feb 25 00:24:01 localhost kernel: pcnet32: PCnet/PCI II 79C970A at 0x2000, 00:0c:29:a7:bd:c2 assigned IRQ 19.
Feb 25 00:24:01 localhost kernel: eth0: registered as PCnet/PCI II 79C970A
Feb 25 00:24:01 localhost kernel: pcnet32: 1 cards_found.
Feb 25 00:24:01 localhost kernel: ENS1371 0000:02:02.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
Feb 25 00:24:01 localhost kernel: parport_pc 00:08: reported by Plug and Play ACPI
Feb 25 00:24:01 localhost kernel: parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
Feb 25 00:24:01 localhost kernel: ppdev: user-space parallel port driver
Feb 25 00:24:01 localhost kernel: device-mapper: uevent: version 1.0.3
Feb 25 00:24:01 localhost kernel: device-mapper: ioctl: 4.22.6-ioctl (2011-10-19) initialised: [email protected]
Feb 25 00:24:01 localhost kernel: Adding 262136k swap on /swapfile1. Priority:-1 extents:2 across:270328k
Feb 25 00:24:01 localhost kernel: ip_tables: (C) 2000-2006 Netfilter Core Team
Feb 25 00:24:01 localhost kernel: nf_conntrack version 0.5.0 (16106 buckets, 64424 max)
Feb 25 00:24:01 localhost kernel: NET: Registered protocol family 10
Feb 25 00:24:01 localhost kernel: lo: Disabled Privacy Extensions
Feb 25 00:24:01 localhost kernel: eth0: link up
[root@localhost ~]#
Re: Source not starting Librrd.so.4 error, VMWare image
Posted: Tue Feb 25, 2014 11:21 am
by sreinhardt
Was this the 32bit or 64bit vmware instance? I didn't see any indicator in your previous posts.
Re: Source not starting Librrd.so.4 error, VMWare image
Posted: Tue Feb 25, 2014 4:40 pm
by hypex
32bit version.
So i downloaded the 64bit version and all works fine so I'll just use that. Just a heads up i tried both 32 bit VMWare images (vSphere OVF Template and VMware virtual machine 2014R1.4) and the source installer on the 32 bit system and they all had the same problem.
Re: Source not starting Librrd.so.4 error, VMWare image
Posted: Tue Feb 25, 2014 5:54 pm
by sreinhardt
OK glad to hear its working, and thanks for the heads up, I will check both of those.