The default update interval in Munin is 5 minutes which is OK for most purposes.
For some cases though 5 minutes is too frequent, useless and sometimes increases load of the servers being watched. For example, I want to graph database sizes once every day and I have plugins written for that. But sampling every 5 minutes could be costly in terms of performance.
So, is it possible to configure Munin for specific graphs to update every day or every hour instead of every 5 minutes?
You can change the interval for all graphs see the munin FAQ
Munin runs at an interval of every five minutes (*/5) on debian systems by default. Is it possible to change this interval to an arbitrary value?
Just edit /etc/cron.d/munin.
However, this won't change Munin's (or rather RRD's) granularity; all RRD files are constructed to create 5 minutes averages, and no matter how often you update the RRD files the output won't be (much) different.
But I think you do not want it ? :)
I think you can optimize your script, you can store the result in a file and for each call you can verify if the file modify date is the same of the current date. If not, just call the database for retrieve the database size and all others time you return the content file. It should consume less resource.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With