From 4577de7bbc9562d5932fd05cbec6b7883cf892ca Mon Sep 17 00:00:00 2001 From: Nicolas Dandrimont Date: Thu, 19 Mar 2009 06:55:56 +0100 Subject: [PATCH] [munin/env] Plugin de debogage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tenter de comprendre pourquoi CransLdap croit que c'est moi qui lance les requêtes ldap... En fait munin exécute les plugins dans l'environnement qui a lancé l'init-script. La variable SUDO_USER est donc présente. darcs-hash:20090319055556-ffbb2-a961675ad8abe5dfb50b47273a5fba5966e87e96.gz --- munin/env | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 munin/env diff --git a/munin/env b/munin/env new file mode 100755 index 00000000..98391681 --- /dev/null +++ b/munin/env @@ -0,0 +1,17 @@ +#!/bin/bash + +if [[ $1 == "config" ]]; then + cat << 'EOC' +graph_title Dummy env plugin +graph_args --base 1000 -l 0 +graph_vlabel dummy / ${graph_period} +graph_info This graph is buggy... It returns the environment variables it has been launched with. +dummy.label dummy +dummy.type DERIVE +dummy.min 0 +dummy.max 100000 +dummy.info The number of dummy per second. +EOC +else + exec env +fi