Cacti graphs not updating after upgrade
--step 60 -- is the amount of time in seconds we expect data to be updated into the database.You will see later that our update script is going to update the database with the results of the ping command every 60 seconds using a cron job.
Data is stored in a round-robin database (circular buffer) which allows the system storage footprint to remain constant over time.This script will make a rrd database called "latency_db.rrd".This is the file that will be updated and hold all of your data. The following scrollable window contains the command we used to make the rrd file.The "Ping an IP and graph it" tutorial is going to be our detailed introductory example.At each step we will explain what RRDtool is doing and what our script for that stage is trying to do.RRDtool is a graphing utility made by Tobi Oetiker and released under the terms of the GNU General Public License (GPL).
It is simply a program that takes data sets you collect and graphs them.
The y-axis is automatically scaled depending on the data collected and shows the latency in milliseconds (ms); the y-axis legend is printed on the left and the right sides.
The title is in black at the top and at the bottom in a watermark (light gray) is the date and time the graph was created.
The "update_rrd_database.sh" script will change to the working directory, "/tools/rrdtool/latency/".
Then, the get_data method will run and ping the ip defined in the hosttoping variable; gawk is used to separate out the data and collect it using regular expressions.
The back end of many popular graphing programs like Cacti, Smoke Ping, MRTG, Nagios, Zenoss, collectd, Astaro, Nmon and others are based on RRDtool.