5

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?

cyberp
  • 61
  • 4
  • Hi cyberp, by any chance you know an answer on that question. I'm also interested. – dmytrivv Jul 27 '13 at 11:01
  • I know this is a very old question, but Is there a specific plugin you want to run less frequently? There are a few ways to avoid the trouble/impact you specify as trying to avoid. – CrackerJack9 Apr 27 '14 at 16:45

1 Answers1

1

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.

Community
  • 1
  • 1
Bruno Adelé
  • 1,087
  • 13
  • 16