
Can't report less than 2 hours ago
-
- Posts: 952
- Joined: Mon Jun 10, 2013 10:39 am
- Location: Kenosha, WI
Re: Can't report less than 2 hours ago
Woah, never gotten a reply from 'Nagios Support' on the forums before. Must be srs bsns.
No worries, guys, thanks for looking into this for me. I await your findings.

-
- Former Nagios Staff
- Posts: 13589
- Joined: Mon May 23, 2011 12:15 pm
Re: Can't report less than 2 hours ago
What kind of server/device sends netflow data to the Nagios Network Analyzer? Can you verify that the data is still being sent? If this is a Linux box, you can run:
to see if fprobe is running and data is sent to the correct port.
Do you see any large gaps in the bandwidth graph since yesterday?
Code: Select all
ps -ef | grep fprobe
Do you see any large gaps in the bandwidth graph since yesterday?
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 952
- Joined: Mon Jun 10, 2013 10:39 am
- Location: Kenosha, WI
Re: Can't report less than 2 hours ago
All of the devices sending data to the netflow analyzer server are cisco routers or cisco ASAs. I haven't seen any gaps in bandwidth graphs on any of our sources. The reporting (for time periods less than 2 hours) doesn't appear to work on any of our sources. Data seems to still be sent because I can run reports for any time frame as long as it isn't less than 2 hours ago, and the bandwidth graphs are all still updating.
This screenshot was grabbed just now, and it's 9:23. You can see the graph has data right up until now so it's definitely receiving. If I run a report for the last 10 minutes, 30 minutes, 1 hour, etc. I get nothing. Report of last 2 hours, I get data. I just tested my limits by going back from 2 hours. The minimum time frame I can use and get data is 62 minutes. If I run a report for the past 62 minutes or less I get nothing, 62 minutes or more and it works fine.
This screenshot was grabbed just now, and it's 9:23. You can see the graph has data right up until now so it's definitely receiving. If I run a report for the last 10 minutes, 30 minutes, 1 hour, etc. I get nothing. Report of last 2 hours, I get data. I just tested my limits by going back from 2 hours. The minimum time frame I can use and get data is 62 minutes. If I run a report for the past 62 minutes or less I get nothing, 62 minutes or more and it works fine.
You do not have the required permissions to view the files attached to this post.
-
- Former Nagios Staff
- Posts: 13589
- Joined: Mon May 23, 2011 12:15 pm
Re: Can't report less than 2 hours ago
I believe you are getting the "correct" or updated bandwidth graph because RRDs get reaped every 5 min. However, nfcapd uses the actual timestamps (whatever is sent from the router). That's why you get the issue, while trying to run a report.
"62 minutes" seems awfully close to 1 hour difference... Is there any way for you to check the time/timezone on the router itself? I suspect is one hour off compared to the Nagios NA server.
"62 minutes" seems awfully close to 1 hour difference... Is there any way for you to check the time/timezone on the router itself? I suspect is one hour off compared to the Nagios NA server.
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 952
- Joined: Mon Jun 10, 2013 10:39 am
- Location: Kenosha, WI
Re: Can't report less than 2 hours ago
This is happening with all of our sources, though, not just this one.
Router:
NNA Server:
Router:
Code: Select all
LisleIL_01-MPLS#sh clock
12:40:21.563 CDT Fri Sep 19 2014
Code: Select all
[root@lisl-ngna-01-pv ~]# clock
Fri 19 Sep 2014 12:40:51 PM CDT -0.672253 seconds
[root@lisl-ngna-01-pv ~]# date
Fri Sep 19 12:40:51 CDT 2014
-
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Can't report less than 2 hours ago
Let's check a few more places.
Additionally, have you restarted nfcapd services, otherwise known as sources, and the httpd service since correcting the time? Might be possible that httpd or the collector services are still referencing the wrong time as they have not repolled the os for actual time.
Code: Select all
ls -la /etc/localtime
grep 'date.timezone' /etc/php.ini
php -r 'echo date("D M j G:i:s T Y")."\n";'
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.
-
- Posts: 952
- Joined: Mon Jun 10, 2013 10:39 am
- Location: Kenosha, WI
Re: Can't report less than 2 hours ago
I restarted the server after correcting the clock so I had to restart all the sources manually after that anyway.
Looks like some of those are set to Eastern. Holy smokes, who knew I had to correct the time zone in so many places? So far that's clock, date, and setting NTP that I've had to change...How do I go about editing those Eastern timezone settings?
Code: Select all
[root@lisl-ngna-01-pv ~]# ls -la /etc/localtime
lrwxrwxrwx 1 root root 35 Jan 9 2014 /etc/localtime -> /usr/share/zoneinfo/America/Chicago
[root@lisl-ngna-01-pv ~]# grep 'date.timezone' /etc/php.ini
; http://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone
date.timezone = US/Eastern
[root@lisl-ngna-01-pv ~]# php -r 'echo date("D M j G:i:s T Y")."\n";'
Fri Sep 19 15:32:12 EDT 2014
[root@lisl-ngna-01-pv ~]#
-
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Can't report less than 2 hours ago
You should just need to modify /etc/php.ini to the correct timezone and restart httpd. Give it a shot after that and see if those populate, that would make an interesting point for the 62 or so minute mark you found too.
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.
-
- Posts: 952
- Joined: Mon Jun 10, 2013 10:39 am
- Location: Kenosha, WI
Re: Can't report less than 2 hours ago
Success! Just tested with a past 30 minute and past 10 minute report and both worked great. Thanks for all the help gentlemen, and have a great weekend!
-
- Former Nagios Staff
- Posts: 13589
- Joined: Mon May 23, 2011 12:15 pm
Re: Can't report less than 2 hours ago
Great! You also have a great weekend! I am locking the post.
Be sure to check out our Knowledgebase for helpful articles and solutions!