munin_stats_plugins - Report the time it takes to run all munin plugins
In /etc/munin/plugin-conf.d/munin-node, because we invoke plugins with munin-run, some of which may need root privileges:
[munin_stats_plugins] user root
Put this in cron somewhere:
# Refresh the statistics MUNIN_STATS_PLUGINS_RELOAD=1 munin-run munin_stats_plugins
40 4 * * * root MUNIN_STATS_PLUGINS_RELOAD=1 munin-run munin_stats_plugins
Then run it:
# Get the statistics munin-run munin_stats_plugins
Runs all the munin plugins in /etc/munin/plugins and reports the time it takes to run each one with
system and Time::HiRes. Since running all the plugins again on each munin-update run would lead to epic recursive failure, you have to reload the statistics database yourself by reloading it in cron somewhere.
Ævar Arnfjörð Bjarmason <firstname.lastname@example.org>
This program is in the public domain.