Page 1 of 2

Bandwidth Graph but no Top Talker Data

Posted: Thu Nov 13, 2014 10:25 am
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.

Re: Bandwidth Graph but no Top Talker Data

Posted: Thu Nov 13, 2014 6:01 pm
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.

Re: Bandwidth Graph but no Top Talker Data

Posted: Thu Nov 13, 2014 8:51 pm
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.

Re: Bandwidth Graph but no Top Talker Data

Posted: Fri Nov 14, 2014 11:00 am
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

Re: Bandwidth Graph but no Top Talker Data

Posted: Fri Nov 14, 2014 3:23 pm
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

Re: Bandwidth Graph but no Top Talker Data

Posted: Fri Nov 14, 2014 3:52 pm
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 ~]#

Re: Bandwidth Graph but no Top Talker Data

Posted: Mon Nov 17, 2014 12:06 pm
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?

Re: Bandwidth Graph but no Top Talker Data

Posted: Mon Nov 17, 2014 1:31 pm
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

Re: Bandwidth Graph but no Top Talker Data

Posted: Tue Nov 18, 2014 11:44 am
by networkeng
Any other advice? I am also available to do a teamviewer or webex M-F, 8-5 Central time.

Re: Bandwidth Graph but no Top Talker Data

Posted: Tue Nov 18, 2014 6:12 pm
by scottwilkerson
Can you verify that the port you are listening on is opened in iptables

Code: Select all

iptables -L