Bandwidth usage table lags by >24 hours
-
- Posts: 256
- Joined: Wed May 25, 2011 10:51 am
- Location: Springfield, IL
Bandwidth usage table lags by >24 hours
You can see the Day 1 column is populated, but even though there is data for Day 2 as well as Day 3 (today) in the graph, this data is not represented in the text table. It seems this table constantly lags behind by the current day plus the previous day never being populated.
Is there a reason for this?
Is there any way to make this table accurately reflect the currently known data amounts?
You do not have the required permissions to view the files attached to this post.
Dev & Prod XI: Debian 12 - Nagios XI 2024R1.3
-
- Posts: 441
- Joined: Fri Mar 13, 2020 10:45 am
Re: Bandwidth usage table lags by >24 hours
Troubleshooting graphsNagios spools performance data into small files which get moved around and processed. Sometimes a problem can arise which stops the files from being processed and they begin to spool up.
Can you see whether some performance data has spooled up on that server?
Code: Select all
ls /usr/local/nagios/var/spool/perfdata/ | wc -l
ls /usr/local/nagios/var/spool/xidpe/ | wc -l
Code: Select all
find /usr/local/nagios/var/spool/perfdata/ -type f -delete
Code: Select all
/usr/local/nagios/etc/pnp/process_perfdata.cfg
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 256
- Joined: Wed May 25, 2011 10:51 am
- Location: Springfield, IL
Re: Bandwidth usage table lags by >24 hours
Nothing is backed up as far as perfdata goes. As you can see the perfdata graph is accurate and up to date.
You know what... now that I'm looking at more data, everything in the usage table (the text table) appears off a day compared to the perfdata graph itself. Assuming the graph is right, which I believe it is because it is showing up-to-current data... the data spikes clearly in the graph are NOT lining up to where the high numbers are in the text table. Everything is shifted a day behind in the table
This text table is inaccurate. It could be the php timezone shifting things off, or it might be a full 24 hours off, I am not positive, but something is causing the data in the table to be wrong when compared to the actual perfdata represented by the highchart.
Code: Select all
[root@nagios ~]# ls /usr/local/nagios/var/spool/perfdata/ | wc -l
0
[root@nagios ~]# ls /usr/local/nagios/var/spool/xidpe/ | wc -l
0
[root@nagios ~]# ll /usr/local/nagios/var/spool/perfdata/
total 0
This text table is inaccurate. It could be the php timezone shifting things off, or it might be a full 24 hours off, I am not positive, but something is causing the data in the table to be wrong when compared to the actual perfdata represented by the highchart.
You do not have the required permissions to view the files attached to this post.
Dev & Prod XI: Debian 12 - Nagios XI 2024R1.3
-
- Posts: 256
- Joined: Wed May 25, 2011 10:51 am
- Location: Springfield, IL
Re: Bandwidth usage table lags by >24 hours
With some more experimenting I believe that the php timezone offset is throwing the text table's calculations off. There should probably be a bug report filed for this as it appears that if php's current timezone is accounted for, data looks to shift to the correct days and even the previous day's data shows up in my table. (today's data does not, but I don't necessarily expect it to until the day is "complete")
Also, June is spelled wrong when the month array is set up:
Also, June is spelled wrong when the month array is set up:
Code: Select all
/* Convert a month number to a month name */
function monthname($no)
{
$names = array(1 => 'January', 'February', 'March', 'April', 'May', 'Junr', 'July', 'August', 'September', 'October', 'November', 'December');
return $names[$no];
} //function monthname($no)
You do not have the required permissions to view the files attached to this post.
Dev & Prod XI: Debian 12 - Nagios XI 2024R1.3
-
- Posts: 441
- Joined: Fri Mar 13, 2020 10:45 am
Re: Bandwidth usage table lags by >24 hours
Alright, I have submitted a bug report for this issue. I will pass that information along to our developers.
Forgive me if this is a bit obvious. But have you double checked that all of the time zone settings are correct on your XI instance?
Changing The System Time
Forgive me if this is a bit obvious. But have you double checked that all of the time zone settings are correct on your XI instance?
Changing The System Time
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 256
- Joined: Wed May 25, 2011 10:51 am
- Location: Springfield, IL
Re: Bandwidth usage table lags by >24 hours
Yes, I have double checked all of the various timezone settings and all are set and showing correctly for my timezone.
Dev & Prod XI: Debian 12 - Nagios XI 2024R1.3
-
- Posts: 441
- Joined: Fri Mar 13, 2020 10:45 am
Re: Bandwidth usage table lags by >24 hours
Thank you for confirming that.
Our developers confirmed that report is working as intended. The reason this data lags behind is that our software uses a round robin database to average this data over time, so that it does not become too large to manage.
RRDtool
Our developers confirmed that report is working as intended. The reason this data lags behind is that our software uses a round robin database to average this data over time, so that it does not become too large to manage.
RRDtool
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!