Page 1 of 2

No Data Available

Posted: Wed Sep 03, 2014 7:44 am
by ssa_nagios
I have Nagios Network Analyzer running and an fprobe setup on a Linux server. I'm getting data but it isn't graphing

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

tcpdump is showing that it is getting data:

tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
11:36:39.001348 IP (tos 0x48, ttl 61, id 5878, offset 0, flags [DF], proto UDP (17), length 148)
malama.ba.ssa.gov.33275 > nsc-prd-nagiosna-007.ba.ssa.gov.5094: [udp sum ok] UDP, length 120
11:36:54.001317 IP (tos 0x48, ttl 61, id 5879, offset 0, flags [DF], proto UDP (17), length 148)
malama.ba.ssa.gov.33275 > nsc-prd-nagiosna-007.ba.ssa.gov.5094: [udp sum ok] UDP, length 120


nfcapd files are being generated:

ls -alrt *
-rw-r--r--+ 1 nna nnacmd 6 Aug 29 14:45 5094.pid

flows:
total 2228
drwxrwsr-x+ 3 nna nnacmd 4096 Aug 29 14:45 ..
-rw-r--r--+ 1 nna nnacmd 1563 Sep 1 12:55 nfcapd.201409011250
-rw-r--r--+ 1 nna nnacmd 1612 Sep 1 13:00 nfcapd.201409011255
-rw-r--r--+ 1 nna nnacmd 1946 Sep 1 13:05 nfcapd.201409011300
-rw-r--r--+ 1 nna nnacmd 1502 Sep 1 13:10 nfcapd.201409011305
-rw-r--r--+ 1 nna nnacmd 1467 Sep 1 13:15 nfcapd.201409011310
-rw-r--r--+ 1 nna nnacmd 1591 Sep 1 13:20 nfcapd.201409011315
-rw-r--r--+ 1 nna nnacmd 1609 Sep 1 13:25 nfcapd.201409011320
-rw-r--r--+ 1 nna nnacmd 1514 Sep 1 13:30 nfcapd.201409011325
-rw-r--r--+ 1 nna nnacmd 1566 Sep 1 13:35 nfcapd.201409011330
-rw-r--r--+ 1 nna nnacmd 1605 Sep 1 13:40 nfcapd.201409011335
-rw-r--r--+ 1 nna nnacmd 1481 Sep 1 13:45 nfcapd.201409011340
-rw-r--r--+ 1 nna nnacmd 1588 Sep 1 13:50 nfcapd.201409011345
-rw-r--r--+ 1 nna nnacmd 1554 Sep 1 13:55 nfcapd.201409011350
-rw-r--r--+ 1 nna nnacmd 1790 Sep 1 14:00 nfcapd.201409011355
-rw-r--r--+ 1 nna nnacmd 2053 Sep 1 14:05 nfcapd.201409011400

nfcapd files are being generated. See attached screen capture.
nfcapdfile.png
But no graphs.
no_data1.png
no_data2.png

Re: No Data Available

Posted: Wed Sep 03, 2014 2:17 pm
by lmiltchev
Is the date/time correct on the Nagios Network Analyzer box? Run "ntpdate pool.ntp.org" a couple of times to sync the time, restart each source from the web UI, wait for a while, and see if the graphs will appear.

Re: No Data Available

Posted: Wed Sep 10, 2014 9:59 am
by ssa_nagios
I ran the ntpdate a couple of times and restarted the source. Left it for a couple of days. Still no graphs.

Re: No Data Available

Posted: Wed Sep 10, 2014 4:51 pm
by lmiltchev
Run the following command and post the output in code wraps:

Code: Select all

tail -100 /usr/local/nagiosna/var/backend.log

Re: No Data Available

Posted: Thu Sep 11, 2014 6:26 am
by ssa_nagios

Code: Select all

[root@nsc-prd-nagiosna-007 ~]# tail -100 /usr/local/nagiosna/var/backend.log
2014-09-11 06:15:04 INFO : Ran checks successfully
2014-09-11 06:15:04 INFO : Successfully reaped nfcapd file.
2014-09-11 06:20:10 INFO : Parsing data for the source id: 1
2014-09-11 06:20:10 DEBUG : Arguments: /usr/local/nagiosna/var/##########/flows, nfcapd.201409110615, 1
2014-09-11 06:20:10 DEBUG : Running checks...
2014-09-11 06:20:10 DEBUG : Getting relevant checks for source id: 1
2014-09-11 06:20:10 DEBUG : Checks found: ()
2014-09-11 06:20:10 INFO : Ran checks successfully
2014-09-11 06:20:10 INFO : Successfully reaped nfcapd file.
2014-09-11 06:25:10 INFO : Parsing data for the source id: 1
2014-09-11 06:25:10 DEBUG : Arguments: /usr/local/nagiosna/var/##########/flows, nfcapd.201409110620, 1
2014-09-11 06:25:10 DEBUG : Running checks...
2014-09-11 06:25:10 DEBUG : Getting relevant checks for source id: 1
2014-09-11 06:25:10 DEBUG : Checks found: ()
2014-09-11 06:25:10 INFO : Ran checks successfully
2014-09-11 06:25:10 INFO : Successfully reaped nfcapd file.
2014-09-11 06:30:10 INFO : Parsing data for the source id: 1
2014-09-11 06:30:10 DEBUG : Arguments: /usr/local/nagiosna/var/##########/flows, nfcapd.201409110625, 1
2014-09-11 06:30:10 DEBUG : Running checks...
2014-09-11 06:30:10 DEBUG : Getting relevant checks for source id: 1
2014-09-11 06:30:10 DEBUG : Checks found: ()
2014-09-11 06:30:10 INFO : Ran checks successfully
2014-09-11 06:30:10 INFO : Successfully reaped nfcapd file.
2014-09-11 06:35:04 INFO : Parsing data for the source id: 1
2014-09-11 06:35:04 DEBUG : Arguments: /usr/local/nagiosna/var/##########/flows, nfcapd.201409110630, 1
2014-09-11 06:35:04 DEBUG : Running checks...
2014-09-11 06:35:04 DEBUG : Getting relevant checks for source id: 1
2014-09-11 06:35:04 DEBUG : Checks found: ()
2014-09-11 06:35:04 INFO : Ran checks successfully
2014-09-11 06:35:04 INFO : Successfully reaped nfcapd file.
2014-09-11 06:40:04 INFO : Parsing data for the source id: 1
2014-09-11 06:40:04 DEBUG : Arguments: /usr/local/nagiosna/var/##########/flows, nfcapd.201409110635, 1
2014-09-11 06:40:04 DEBUG : Running checks...
2014-09-11 06:40:04 DEBUG : Getting relevant checks for source id: 1
2014-09-11 06:40:04 DEBUG : Checks found: ()
2014-09-11 06:40:04 INFO : Ran checks successfully
2014-09-11 06:40:04 INFO : Successfully reaped nfcapd file.
2014-09-11 06:45:04 INFO : Parsing data for the source id: 1
2014-09-11 06:45:04 DEBUG : Arguments: /usr/local/nagiosna/var/##########/flows, nfcapd.201409110640, 1
2014-09-11 06:45:04 DEBUG : Running checks...
2014-09-11 06:45:04 DEBUG : Getting relevant checks for source id: 1
2014-09-11 06:45:04 DEBUG : Checks found: ()
2014-09-11 06:45:04 INFO : Ran checks successfully
2014-09-11 06:45:04 INFO : Successfully reaped nfcapd file.
2014-09-11 06:50:10 INFO : Parsing data for the source id: 1
2014-09-11 06:50:10 DEBUG : Arguments: /usr/local/nagiosna/var/##########/flows, nfcapd.201409110645, 1
2014-09-11 06:50:10 DEBUG : Running checks...
2014-09-11 06:50:10 DEBUG : Getting relevant checks for source id: 1
2014-09-11 06:50:10 DEBUG : Checks found: ()
2014-09-11 06:50:10 INFO : Ran checks successfully
2014-09-11 06:50:10 INFO : Successfully reaped nfcapd file.
2014-09-11 06:55:10 INFO : Parsing data for the source id: 1
2014-09-11 06:55:10 DEBUG : Arguments: /usr/local/nagiosna/var/##########/flows, nfcapd.201409110650, 1
2014-09-11 06:55:10 DEBUG : Running checks...
2014-09-11 06:55:10 DEBUG : Getting relevant checks for source id: 1
2014-09-11 06:55:10 DEBUG : Checks found: ()
2014-09-11 06:55:10 INFO : Ran checks successfully
2014-09-11 06:55:10 INFO : Successfully reaped nfcapd file.
2014-09-11 07:00:09 INFO : Parsing data for the source id: 1
2014-09-11 07:00:09 DEBUG : Arguments: /usr/local/nagiosna/var/##########/flows, nfcapd.201409110655, 1
2014-09-11 07:00:09 DEBUG : Running checks...
2014-09-11 07:00:09 DEBUG : Getting relevant checks for source id: 1
2014-09-11 07:00:09 DEBUG : Checks found: ()
2014-09-11 07:00:09 INFO : Ran checks successfully
2014-09-11 07:00:09 INFO : Successfully reaped nfcapd file.
2014-09-11 07:05:04 INFO : Parsing data for the source id: 1
2014-09-11 07:05:04 DEBUG : Arguments: /usr/local/nagiosna/var/##########/flows, nfcapd.201409110700, 1
2014-09-11 07:05:04 DEBUG : Running checks...
2014-09-11 07:05:04 DEBUG : Getting relevant checks for source id: 1
2014-09-11 07:05:04 DEBUG : Checks found: ()
2014-09-11 07:05:04 INFO : Ran checks successfully
2014-09-11 07:05:04 INFO : Successfully reaped nfcapd file.
2014-09-11 07:10:04 INFO : Parsing data for the source id: 1
2014-09-11 07:10:04 DEBUG : Arguments: /usr/local/nagiosna/var/##########/flows, nfcapd.201409110705, 1
2014-09-11 07:10:04 DEBUG : Running checks...
2014-09-11 07:10:04 DEBUG : Getting relevant checks for source id: 1
2014-09-11 07:10:04 DEBUG : Checks found: ()
2014-09-11 07:10:04 INFO : Ran checks successfully
2014-09-11 07:10:04 INFO : Successfully reaped nfcapd file.
2014-09-11 07:15:10 INFO : Parsing data for the source id: 1
2014-09-11 07:15:10 DEBUG : Arguments: /usr/local/nagiosna/var/##########/flows, nfcapd.201409110710, 1
2014-09-11 07:15:10 DEBUG : Running checks...
2014-09-11 07:15:10 DEBUG : Getting relevant checks for source id: 1
2014-09-11 07:15:10 DEBUG : Checks found: ()
2014-09-11 07:15:10 INFO : Ran checks successfully
2014-09-11 07:15:10 INFO : Successfully reaped nfcapd file.
2014-09-11 07:20:10 INFO : Parsing data for the source id: 1
2014-09-11 07:20:10 DEBUG : Arguments: /usr/local/nagiosna/var/##########/flows, nfcapd.201409110715, 1
2014-09-11 07:20:10 DEBUG : Running checks...
2014-09-11 07:20:10 DEBUG : Getting relevant checks for source id: 1
2014-09-11 07:20:10 DEBUG : Checks found: ()
2014-09-11 07:20:10 INFO : Ran checks successfully
2014-09-11 07:20:10 INFO : Successfully reaped nfcapd file.
2014-09-11 07:25:10 INFO : Parsing data for the source id: 1
2014-09-11 07:25:10 DEBUG : Arguments: /usr/local/nagiosna/var/##########/flows, nfcapd.201409110720, 1
2014-09-11 07:25:10 DEBUG : Running checks...
2014-09-11 07:25:10 DEBUG : Getting relevant checks for source id: 1
2014-09-11 07:25:10 DEBUG : Checks found: ()
2014-09-11 07:25:10 INFO : Ran checks successfully
2014-09-11 07:25:10 INFO : Successfully reaped nfcapd file.

Re: No Data Available

Posted: Thu Sep 11, 2014 5:00 pm
by jomann
Can you please link your apache error_log after you click into the source? It may be permissions issues on the RRD file. The actual nfcpad data is being stored in it's own files which makes up the reports, queries, and top talkers while the bandwidth graph is made using the RRD file. If it can't read it or there's an error somewhere, it would return no data.

Re: No Data Available

Posted: Fri Sep 12, 2014 6:51 am
by ssa_nagios
The apache error_log is reporting

Code: Select all

ERROR: opening '/usr/local/nagiosna/var/***********' bandwidth.rrd': No such file or directory

Re: No Data Available

Posted: Fri Sep 12, 2014 1:22 pm
by lmiltchev
Does the "bandwidth.rrd" actually exist and what are the permissions?

Code: Select all

ll /usr/local/nagiosna/var/
ll /usr/local/nagiosna/var/<your source>
Also run the following commands and show us the output:

Code: Select all

rrdtool -V
which rrdtool
whereis rrdtool

Re: No Data Available

Posted: Thu Sep 18, 2014 12:57 pm
by ssa_nagios
The file doesn't exist, but I'm not sure why

Code: Select all

ll /usr/local/nagiosna/var/
total 764
-rwxrwxr-x+ 1 nna nnacmd 764473 Sep 18 13:50 backend.log
drwxrwsr-x+ 3 nna nnacmd   4096 Sep 12 12:40 xxxxxxxxxxxxxx

ll /usr/local/nagiosna/var/xxxxxxxxxxxxx/
total 20
drwxrwsr-x+ 2 nna nnacmd 16384 Sep 18 13:50 flows

rrdtool -V
RRDtool 1.4.8  Copyright 1997-2013 by Tobias Oetiker <[email protected]>
               Compiled Sep 12 2014 12:27:04

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

which rrdtool
/usr/local/bin/rrdtool

whereis rrdtool
rrdtool: /usr/bin/rrdtool /usr/local/bin/rrdtool /usr/share/rrdtool /usr/share/man/man1/rrdtool.1.gz

Re: No Data Available

Posted: Thu Sep 18, 2014 1:32 pm
by lmiltchev
Run the following commands and show us the output:

Code: Select all

ps -ef | grep [n]na
iptables -L -n