Bandwidth graph but no Top Talker Data

This support forum board is for support questions relating to Nagios Network Analyzer, our network traffic and bandwidth analysis solution.
networkeng
Posts: 27
Joined: Wed Nov 12, 2014 5:25 pm

Bandwidth graph but no Top Talker Data

Post by networkeng »

Hi,

We have just started evaluating Nagios NA as we plan to purchase Nagios XI. I have added a few sources (Cisco Flexible Netflow) and I can see a bandwidth graph of their data, but there is nothing in 'Top 5 Talkers'. Also, if I run a report I get nothing. I uploaded the summary.js file that was linked to in another thread, refreshed browser cache (also tried another browser), but the issue remains.

Version of NNA: 2014R1.9

$ [root@xxx]# 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

Tcpdump looks good, flows being received.

Verified nfcapd files are being created and look good. They show all ip and port information.

For some reason this is not making it to NNA.

Not sure what to check next.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Bandwidth graph but no Top Talker Data

Post by sreinhardt »

Let's take a look at the error log from apache.

If you use ssl start this:
tail -f /var/log/httpd/ssl_error_log
If not, use this:
tail -f /var/log/httpd/error_log

Now view either a reports page, or a source view page. Once the page completes loading, post the output back here. Also if you could post a screenshot so we can see exactly which sections are not loading properly please.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
networkeng
Posts: 27
Joined: Wed Nov 12, 2014 5:25 pm

Re: Bandwidth graph but no Top Talker Data

Post by networkeng »

Here are the screenshots and the output from the apache error log. I didn't see any new log entries after loading page.

# tail -f /var/log/httpd/error_log
[Wed Nov 12 08:20:41 2014] [error] [client 10.101.11.251] PHP Notice: Undefined variable: c in /usr/local/nagiosxi/html/includes/components/latestalerts/latestalerts.inc.php on line 522, referer: http://nagiosxi/nagiosxi/dashboards/das ... d=paa7466c
[Wed Nov 12 08:22:11 2014] [error] [client 10.101.11.251] PHP Notice: Undefined variable: c in /usr/local/nagiosxi/html/includes/components/latestalerts/latestalerts.inc.php on line 522, referer: http://nagiosxi/nagiosxi/dashboards/das ... d=paa7466c
[Wed Nov 12 08:23:41 2014] [error] [client 10.101.11.251] PHP Notice: Undefined variable: c in /usr/local/nagiosxi/html/includes/components/latestalerts/latestalerts.inc.php on line 522, referer: http://nagiosxi/nagiosxi/dashboards/das ... d=paa7466c
[Wed Nov 12 08:25:11 2014] [error] [client 10.101.11.251] PHP Notice: Undefined variable: c in /usr/local/nagiosxi/html/includes/components/latestalerts/latestalerts.inc.php on line 522, referer: http://nagiosxi/nagiosxi/dashboards/das ... d=paa7466c
[Wed Nov 12 08:26:41 2014] [error] [client 10.101.11.251] PHP Notice: Undefined variable: c in /usr/local/nagiosxi/html/includes/components/latestalerts/latestalerts.inc.php on line 522, referer: http://nagiosxi/nagiosxi/dashboards/das ... d=paa7466c
[Wed Nov 12 08:28:11 2014] [error] [client 10.101.11.251] PHP Notice: Undefined variable: c in /usr/local/nagiosxi/html/includes/components/latestalerts/latestalerts.inc.php on line 522, referer: http://nagiosxi/nagiosxi/dashboards/das ... d=paa7466c
[Wed Nov 12 08:29:41 2014] [error] [client 10.101.11.251] PHP Notice: Undefined variable: c in /usr/local/nagiosxi/html/includes/components/latestalerts/latestalerts.inc.php on line 522, referer: http://nagiosxi/nagiosxi/dashboards/das ... d=paa7466c
No entry for terminal type "unknown";
using dumb terminal settings.
[Thu Nov 13 16:27:41 2014] [error] [client 10.101.11.249] PHP Notice: Undefined variable: c in /usr/local/nagiosxi/html/includes/components/latestalerts/latestalerts.inc.php on line 522, referer: http://nagiosxi/nagiosxi/dashboards/das ... ?id=beomte

I am getting no IP or port information displayed anywhere.
You do not have the required permissions to view the files attached to this post.
networkeng
Posts: 27
Joined: Wed Nov 12, 2014 5:25 pm

Re: Bandwidth graph but no Top Talker Data

Post by networkeng »

I think that tail command was run on our NagiosXI server. I ran it again on the NNA server and accessed the NAA web page (reports, sources, etc.) while running the tail.

[root@grh ~]# tail -f /var/log/httpd/error_log
[Wed Nov 12 08:26:21 2014] [error] [client 10.101.11.251] File does not exist: /var/www/html/favicon.ico
[Wed Nov 12 08:26:21 2014] [error] [client 10.101.11.251] File does not exist: /var/www/html/favicon.ico
[Wed Nov 12 08:47:59 2014] [notice] caught SIGTERM, shutting down
[Wed Nov 12 08:48:37 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Nov 12 08:48:37 2014] [notice] Digest: generating secret for digest authentication ...
[Wed Nov 12 08:48:37 2014] [notice] Digest: done
[Wed Nov 12 08:48:37 2014] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations
[Wed Nov 12 16:34:39 2014] [error] [client 10.101.14.102] File does not exist: /var/www/html/favicon.ico
[Wed Nov 12 16:34:39 2014] [error] [client 10.101.14.102] File does not exist: /var/www/html/favicon.ico
[Thu Nov 13 08:13:05 2014] [error] [client 10.101.14.102] File does not exist: /var/www/html/favicon.ico
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Bandwidth graph but no Top Talker Data

Post by lmiltchev »

Can you run the following command and show us the output?

Code: Select all

ll /var/www/html/nagiosna/www/media/js/summary.js
Be sure to check out our Knowledgebase for helpful articles and solutions!
networkeng
Posts: 27
Joined: Wed Nov 12, 2014 5:25 pm

Re: Bandwidth graph but no Top Talker Data

Post by networkeng »

[root@grh ~]# ll /var/www/html/nagiosna/www/media/js/summary.js
-rw-rwxr--. 1 root apache 11778 Nov 12 23:15 /var/www/html/nagiosna/www/media/js/summary.js
[root@grh ~]#
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Bandwidth graph but no Top Talker Data

Post by lmiltchev »

The permissions are correct, however I noticed something I missed in your first post. You are missing an entry in the nna_conf. You should have:
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 HOST=(root) NOPASSWD: LIST
%nnacmd HOST=(root) NOPASSWD: SAVE
%nnacmd HOST=(root) NOPASSWD: UPDATE
%nnacmd HOST=(nna) NOPASSWD: /bin/kill *
%nnacmd HOST=(nna) NOPASSWD: DAEMON
You need to add this line.

Have you tried restarting the sources and waiting for 10-15 minutes to see if the graphs will reappear?
Be sure to check out our Knowledgebase for helpful articles and solutions!
networkeng
Posts: 27
Joined: Wed Nov 12, 2014 5:25 pm

Re: Bandwidth graph but no Top Talker Data

Post by networkeng »

I added that line to the naa.conf file, restarted httpd, stopped the sources, waiting 15 minutes, restarted the sources, but the IP data is still not populating. Please advise.

[root@grh ~]# cat /etc/sudoers.d/nna_conf
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
networkeng
Posts: 27
Joined: Wed Nov 12, 2014 5:25 pm

Re: Bandwidth graph but no Top Talker Data

Post by networkeng »

Any other advice? I am also available to do a teamviewer or webex M-F, 8-5 Central time.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Bandwidth graph but no Top Talker Data

Post by scottwilkerson »

Can you verify that the port you are listening on is opened in iptables

Code: Select all

iptables -L
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart