Unable to start Source

This support forum board is for support questions relating to Nagios Network Analyzer, our network traffic and bandwidth analysis solution.
Locked
scusting
Posts: 3
Joined: Wed Oct 30, 2013 4:02 am

Unable to start Source

Post by scusting »

Hi,

I am running the Network Analyzer VM image and I have added a Source, but it will not start. I click the Start action and it attempts to start but the following is logged in backend.log:

Code: Select all

Error running initialization.
Could not start nfcapd listening on 2055 for source Router1
I dont think I have done anything with the install other than change the default passwords.

Thanks.

Jim.
scusting
Posts: 3
Joined: Wed Oct 30, 2013 4:02 am

Re: Unable to start Source

Post by scusting »

I found another thread which mentions the issue: http://support.nagios.com/forum/viewtop ... 1&start=10

That issue appears to be down to OpenVZ, but I'm trying to run the VM under ESX. The error message does appear to be the same though:

Code: Select all

#sh /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/Router2/flows
No such directory: /usr/local/nagiosna/var/Router2/flows
stat() error /usr/local/nagiosna/var/Router2/flows: No such file or directory
Failed to add default data collector directory
NagiosNA backend started...
I found if I manually create the Router2 & Router2/flows directories I can then get the source to start, though I do still get an error in the backend.log file:

Code: Select all

#sh /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
NagiosNA backend started...
Thanks.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: Unable to start Source

Post by lmiltchev »

What is the version of the rrdtool that you are using? Run the following commands and show us the output:

Code: Select all

which rrdtool
cat /etc/sudoers.d/nna_conf
Be sure to check out our Knowledgebase for helpful articles and solutions!
scusting
Posts: 3
Joined: Wed Oct 30, 2013 4:02 am

Re: Unable to start Source

Post by scusting »

Code: Select all

/usr/local/bin/rrdtool

[root@localhost ~]# cat /etc/sudoers.d/nna_conf
Defaults:%nnacmd !requiretty

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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Unable to start Source

Post by slansing »

Can you show the output of:

Code: Select all

yum list installed | grep rrd
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: Unable to start Source

Post by lmiltchev »

Modify the "/etc/sudoers.d/nna_conf" file, so it is going to look like this:
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
After this, try restarting the PID on the source via the web interface. Let me know if this helped.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked