ps -ef | grep nna
root 6361 6314 0 10:07 pts/0 00:00:00 grep nna
nna 20399 1 0 Sep12 ? 00:00:16 /usr/local/bin/nfcapd -I 1 -l /usr/local/nagiosna/var/*******/flows -p 5094 -x /usr/local/nagiosna/bin/reap_files.py %d %f %i -P /usr/local/nagiosna/var/*******/5094.pid -D -e -w -z
nna 20400 20399 0 Sep12 ? 00:00:20 /usr/local/bin/nfcapd -I 1 -l /usr/local/nagiosna/var/*******/flows -p 5094 -x /usr/local/nagiosna/bin/reap_files.py %d %f %i -P /usr/local/nagiosna/var/*******/5094.pid -D -e -w -z
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
ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:5094
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination [/code]
No Data Available
-
- Former Nagios Staff
- Posts: 13589
- Joined: Mon May 23, 2011 12:15 pm
Re: No Data Available
All of the output looks correct. I am not sure why the bandwidth.rrd was not created. Run the following command and see if it will create the "bandwidth.rrd" file.
where you substitute "*******" with the correct source name. When (if) the "bandwidth.rrd" file is created, it will take at least 10-15 min. before graphs starts to appear.
Code: Select all
/usr/local/nagiosna/bin/initialize_source.py --directory /usr/local/nagiosna/var/*******/ --port 5094
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 11
- Joined: Fri Mar 14, 2014 12:58 pm
Re: No Data Available
I will continue this post, I have the same problem for months.
Output for above commands:
[root@tor-nagios-01 nagiosna]# ps -ef | grep [n]na
nna 3703 1 0 May09 ? 00:31:28 /usr/local/bin/nfcapd -I 1 -l /usr/local/nagiosna/var/3745Corporate/flows -p 9991 -x /usr/local/nagiosna/bin/reap_files.py %d %f %i -P /usr/local/nagiosna/var/3745Corporate/9991.pid -D -e -w -z
nna 3704 3703 0 May09 ? 00:02:59 /usr/local/bin/nfcapd -I 1 -l /usr/local/nagiosna/var/3745Corporate/flows -p 9991 -x /usr/local/nagiosna/bin/reap_files.py %d %f %i -P /usr/local/nagiosna/var/3745Corporate/9991.pid -D -e -w -z
[root@tor-nagios-01 nagiosna]# iptables -L -n
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:9991
ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:50921
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source
Output for above commands:
[root@tor-nagios-01 nagiosna]# ps -ef | grep [n]na
nna 3703 1 0 May09 ? 00:31:28 /usr/local/bin/nfcapd -I 1 -l /usr/local/nagiosna/var/3745Corporate/flows -p 9991 -x /usr/local/nagiosna/bin/reap_files.py %d %f %i -P /usr/local/nagiosna/var/3745Corporate/9991.pid -D -e -w -z
nna 3704 3703 0 May09 ? 00:02:59 /usr/local/bin/nfcapd -I 1 -l /usr/local/nagiosna/var/3745Corporate/flows -p 9991 -x /usr/local/nagiosna/bin/reap_files.py %d %f %i -P /usr/local/nagiosna/var/3745Corporate/9991.pid -D -e -w -z
[root@tor-nagios-01 nagiosna]# iptables -L -n
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:9991
ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:50921
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source
-
- Former Nagios Staff
- Posts: 13589
- Joined: Mon May 23, 2011 12:15 pm
Re: No Data Available
The data is pulled from the bandwidth.rrd file. It is possible that your time is/was not correct on the Nagios NA machine or/and the "source" box, so there is an entry in the RRD file that is in the future. Another possible cause would be incorrect permissions. Can you show us the permissions that you have?
Can you verify the the time is correct on both, the NNA box and the sending device?
Note: you could try deleting (or moving to a different location) the "bandwidth.rrd" file if you don't care about the historical data. It *should* get recreated and the bandwidth graph should reappear.
Code: Select all
ll -d /usr/local/nagiosna/var/<source>
ll /usr/local/nagiosna/var/<source>
Note: you could try deleting (or moving to a different location) the "bandwidth.rrd" file if you don't care about the historical data. It *should* get recreated and the bandwidth graph should reappear.
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 11
- Joined: Fri Mar 14, 2014 12:58 pm
Re: No Data Available
# ll -d /usr/local/nagiosna/var/3745Corporate/
drwsrwsr-x+ 4 nna nnacmd 4096 Jun 5 10:38 /usr/local/nagiosna/var/3745Corporate/
# ll /usr/local/nagiosna/var/3745Corporate/
total 52
-rw-r--r--+ 1 nna nnacmd 5 Jun 5 10:38 9991.pid
drwsrwsr-x+ 2 nna nnacmd 45056 Jun 5 10:50 flows
drwsrwsr-x+ 3 nna nnacmd 4096 Jun 5 10:00 views
drwsrwsr-x+ 4 nna nnacmd 4096 Jun 5 10:38 /usr/local/nagiosna/var/3745Corporate/
# ll /usr/local/nagiosna/var/3745Corporate/
total 52
-rw-r--r--+ 1 nna nnacmd 5 Jun 5 10:38 9991.pid
drwsrwsr-x+ 2 nna nnacmd 45056 Jun 5 10:50 flows
drwsrwsr-x+ 3 nna nnacmd 4096 Jun 5 10:00 views
-
- Posts: 9117
- Joined: Mon Sep 23, 2013 8:40 am
Re: No Data Available
rafdwo, I see you have another topic open for the same thing here: http://support.nagios.com/forum/viewtop ... 206#140923
Let's close this one up since it is pretty old, and we can continue in the new one. I don't think the OP of this topic is coming back any time soon.
Let's close this one up since it is pretty old, and we can continue in the new one. I don't think the OP of this topic is coming back any time soon.
Former Nagios employee