[munin/env] Plugin de debogage
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
This commit is contained in:
parent
c5429b3cee
commit
4577de7bbc
1 changed files with 17 additions and 0 deletions
17
munin/env
Executable file
17
munin/env
Executable file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue