MUNIN-RUN(1p)
π MUNIN-RUN π
okay bestie, welcome to munin-run β it's a page from the User Contributed Perl Documentation (section 1p, for the record π), and it's literally the little command-line bestie that runs your Munin plugins for you. let's get into it π«Ά
β¨ NAME β¨
munin-run β a program to run Munin plugins from the command line π
πΈ SYNOPSIS πΈ
munin-run [options] <plugin> [ config | autoconf | snmpconf | suggest ]
π¦ DESCRIPTION π¦
so munin-run is a script that runs Munin plugins straight from the command-line. it's so useful when you're debugging plugins, because it runs them in the exact same conditions as they get run under munin-node. same vibe, same energy, no surprises π
π OPTIONS π
--config <configfile>β use<file>as the configuration file. default is[/etc/munin/munin-node.conf]--servicedir <dir>β use<dir>as the plugin dir. default is[/etc/munin/plugins/]--sconfdir <dir>β use<dir>as the plugin configuration dir. default is[/etc/munin/plugin-conf.d/]--sconffile <file>β use<file>as the plugin configuration. this one overridessconfdir. default is[undefined]--paranoiaβ only run plugins that are owned by root, and check permissions. default is[disabled]--ignore-systemd-propertiesβ don't try to detect and enforce the locally configured hardening flags of themunin-nodeservice unit. this detection is skipped anyway if systemd isn't enabled. ngl those hardening flags can cause subtile surprises π β for example,ProtectHome=yesstops thedfplugin from figuring out the state of thehomepartition. default is[disabled]--helpβ view this help message π--debugβ print debug messages. debug messages go to STDOUT and are prefixed with#(this makes it easier for other parts of munin to use munin-run and still have--debugturned on). only errors go to STDERR.--pidebugβ plugin debug. sets the environment variableMUNIN_DEBUGto1so plugins can enable debugging. default is[disabled]--versionβ show version information β¨
π NOTES FOR SYSTEMD USERS π
the munin-node service is usually started by systemd via a munin-node.service definition. some distributions turn on hardening settings in this service file to restrict the allowed set of activities for the munin-node process. and likeβ¦ that can cause surprising differences between what munin-run gives you and what the real munin-node service gives you π
a popular example of this kind of surprising restriction is ProtectHome=yes combined with the df plugin. the restriction silently stops the plugin from determining the status of mountpoints below /home. like it just won't tell you. rude.
munin-run tries to mimic this behavior of munin-node automatically. so running munin-run df should give you the same output as:
echo fetch df | nc localhost munin
if you wanna debug potential issues with systemd restrictions, you may wanna use the parameters --ignore-systemd-properties and --debug. permanent overrides of systemd properties can be configured locally via:
systemctl edit munin-node
and see man systemd.exec for the documentation of systemd's properties π
π FILES π
/etc/munin/munin-node.conf
/etc/munin/plugins/*
/etc/munin/plugin-conf.d/*
/var/run/munin/munin-node.pid
/var/log/munin/munin-node.log
β VERSION β
this is munin-run (munin-node) v2.0.76 π
π AUTHORS π
Audun Ytterdal, Jimmy Olsen, Tore Anderson, Nicolai Langfeldt, Lars Kruse. legends, honestly π«Ά
π COPYRIGHT π
Copyright (C) 2002-2009 Audun Ytterdal, Jimmy Olsen, Tore Anderson, Nicolai Langfeldt / Linpro AS. Copyright (C) 2020 Lars Kruse
this program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 dated June, 1991.
this program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. see the GNU General Public License for more details.
you should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
ngl bestie, that's the whole page π go debug something and slay π
okay that's a wrap!! this was perl v5.40.1, dated 2025-05-20 β munin-run page, out πβ¨
π¦ where this page comes from
- ubuntu resolute: munin-node 2.0.76-5ubuntu1 Β· GPL-2.0-only
- ubuntu stonking: munin-node 2.0.76-5ubuntu1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms