updating graphs

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
elinagios
Posts: 146
Joined: Thu Feb 16, 2017 3:45 am

updating graphs

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: updating graphs

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked