Page 1 of 1

updating graphs

Posted: Tue May 29, 2018 7:46 pm
by elinagios
Hello

im using a script that is monitoring linux server load, showing each core load separetly and drawing a graph based on each cpu. After adding extra cpus to the monitored server, the graph is not updating itself anymore. Seems it doesnt know how to update itself from 4 cpus to 8.
Is it possible to update it somehow or need to clean old rrd and xml files and start from 0? Not to keen to loose that performance data.

Re: updating graphs

Posted: Wed May 30, 2018 8:30 am
by scottwilkerson
If the number of datasources your plugin returns in perfdata changes, the RRD that stores your data needs to be re-built..

We have a doc for doing this
https://support.nagios.com/kb/article.php?id=497

Of if you do not care about historical data for this service you can delete the RRD from
/usr/local/nagios/share/perfdata/HOSTNAME/SERVICENAME.rrd

Once you delete it, it will be recreated withe the correct amount of datapoints