Cacti / cacti

Cacti ™
http://www.cacti.net
GNU General Public License v2.0
1.61k stars 399 forks source link

Some graphs not displaying data for redhat/centos 7 machines #2928

Closed Givo29 closed 4 years ago

Givo29 commented 4 years ago

Describe the bug I have found that the interface traffic graphs are not displaying the traffic_out data for redhat/centos 7 machines.

Expected Behaviour The traffic_out data should be graphing on centos7 machines however it is only showing the inbound traffic for these machines.

Steps taken to resolve this along with more information about the issue can be found at #2641

cigamit commented 4 years ago

Yea, I just saw your issue. On your Traffic Out, the minimal heartbeat is set to 120, even though the step is 300 (5 minutes). Wished I had seen that before. Sorry about that. Actually, I'm not certain how that happened actually.

Was this system upgraded from a 0.8.x version?

To fix, you simply have to tune the RRDfiles using:

rrdtool tune filename --heartbeat traffic_out:600

Then, goto your database and run the following:

SELECT rrd_heartbeat, data_source_name, count(*) AS totals 
FROM data_template_rrd 
GROUP BY rrd_heartbeat, data_source_name;

If you find a bunch with 'traffic_out' that are set to 120, then you should update using the following:

UPDATE data_template_rrd 
SET rrd_heartbeat=600 
WHERE data_source_name='traffic_out' 
AND rrd_heartbeat=120;

Got it?

cigamit commented 4 years ago

Next we have to find out how this happened. Make sure you tell me if this is a new install or an upgrade. Also let me know if you've been changing data collection frequencies for some of your data sources.

Givo29 commented 4 years ago

Thanks, tuning the rrd files worked!

Regarding your questions:

cigamit commented 4 years ago

Okay, great. I'll close then. Thanks again for your patience.