Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'd like to reset all graphs for a certain host in Munin. Anyone who knows how I can do this?

share|improve this question

4 Answers 4

up vote 26 down vote accepted

Munin data is stored in Round Robin Database files (.rrd). These are stored under /var/lib/munin.

Each host and hostgroup will have it's own subdirectory under /var/lib/munin

Delete the .rrd files under the hostname in question, and your data will be zeroed out. Graphs will be re-generated after a few minutes.

share|improve this answer

Or alternatively if you just want to fix the data in the RRD files (for example spike on the network graph on the server reboot), just run:

rrddtool dump /var/lib/munin/xy/z.rrd >z.xml

edit the data in xml file (fix big values, but remember they are in scientific notation) and then just re-create the RRD file:

rrdtool restore z.xml x.rrd

and overwrite the original RRD with this new one. Using this, you can fix the values and still preserve your old data.

EDIT: You can find detailed description and howto here: http://munin-monitoring.org/wiki/SpikeRemoval

share|improve this answer

Yes, delete all the *.rrd files in the folder where munin generates the graphs (where the .html files are). /var/lib/munin/xyz/. It's defined in your munin.conf (dbdir).

The rrd files are regenerated on the next run.

share|improve this answer

You should also remove the html files that have been created. They are usually located under /var/www/munin/. In that directory, you will find your hostgroup directories. delete the .png files and the .html file of the graph you want to reset.

share|improve this answer
    
The files might indeed be anywhere, if you installed from source, they are likely to be in /opt/munin/www/docs/<hostgroup>/<hostname>. You especially might want to delete the web files (and the directory) if you have messed with the node's plugins and your new definitions refuse to appear in the host's web page. –  the-wabbit Jul 3 at 7:44

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.