I will like to munin to graph after every two minutes to increase the granularity. There are some links pointing out that its somehow possible with munin 2.0 , any idea how?
4 Answers
I haven't tried it, but this question in the FAQ suggests you cannot:
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. Changing this (default) behaviour has been proposed in Ticket #5.
However, if you look at ticket #5, the last post (closing it) is:
current trunk fully supports custom update_rate, and increase resolution of .rrd files accordingly.
So, if you're using a fairly recent version of munin, it might be worth a try.
Increasing the resolution of Munin data capture is accomplished at the plugin level, not the munin core level. This means that it is not possible to simply change an entire installation to increase resolution. Instead, each plugin must be modified independently.
The two critical plugin config values that determine resolution are
graph_data_size
update_rate # in seconds
- graph_data_size determines the size and structure of the RRD file used to store captured data.
- update_rate indicates how frequently new data is expected.
Since cron has a lower bound of one minute as its tightest possible resolution, that's the easiest to achieve. Simply update the cron to run every minute and modify the plugin config to include these values
graph_data_size custom 1d, 1m for 1w, 5m for 1t, 15m for 1y
update_rate 60
Sub-minute resolution requires caching datapoints in between cron runs and embedding time data (seconds since epoch). I provide full details in these three posts:
http://software.danielwatrous.com/understanding-munin-plugins/
http://software.danielwatrous.com/increase-munin-resolution-to-one-minute/
http://software.danielwatrous.com/increase-munin-resolution-to-sub-minute/

- 3,467
- 2
- 36
- 48
-
despite reading all posts mentioned I stillI miss a complete munin.conf with some plugins configured for this! – charles.fg Feb 06 '17 at 00:41
-
@charles.fg there is no specific plugin configuration once you change the cron job and update_rate intervals, everything is shifted to the new schedule – Josip Rodin Jul 27 '17 at 07:31
-
1It should be noted that further interventions are necessary because of symptoms described at https://bugs.debian.org/786997 – Josip Rodin Jul 27 '17 at 07:35
Munin uses cron job to run itself every 5 minutes by default. You can change it in the crontab. On my CentOS system it is located in /etc/cron.d/munin and looks like this:
#
# cron-jobs for munin
#
MAILTO=root
*/5 * * * * /usr/bin/munin-cron
I have changed it in the past to
*/1 * * * * /usr/bin/munin-cron
However since using Amazon AWS's monitoring system, I don't need Munin that often and now keep it at 10 minutes on the servers where I use it.

- 4,913
- 1
- 49
- 58
zeeshan said:
Munin uses cron job to run itself every 5 minutes by default. You can change it in the crontab. On my CentOS system it is located in /etc/cron.d/munin and looks like this:
#
cron-jobs for munin
#
MAILTO=root
*/5 * * * * /usr/bin/munin-cron
I have changed it in the past to
*/1 * * * * /usr/bin/munin-cron
However since using Amazon AWS's monitoring system, I don't need Munin that often and now keep it at 10 minutes on the servers where I use it.
You are about munin-server, because munin-agent does not have cron jobs. Your graphs will not take a step to less than 5 min.
To change graph period ( step ) look here: http://munin-monitoring.org/wiki/faq#Q:CanImakeagraphshowvaluesperminuteinsteadofpersecond
Sample:
[server.example.com]
address 10.0.0.1
postfix_mailstats.graph_period second
to set graph period to seconds. But be sure, that you have changed /etc/cron.d/munin for minimal time interval like graph_period in /etc/munin/munin.conf

- 269
- 2
- 4