un plugin munin ?
authorWilly MANGA <willy.manga@auf.org>
Thu, 9 May 2013 10:21:46 +0000 (11:21 +0100)
committerWilly MANGA <willy.manga@auf.org>
Thu, 9 May 2013 10:21:46 +0000 (11:21 +0100)
scripts/munin-plugins/plugin101/README [new file with mode: 0644]
scripts/munin-plugins/plugin101/loadAvg [new file with mode: 0644]

diff --git a/scripts/munin-plugins/plugin101/README b/scripts/munin-plugins/plugin101/README
new file mode 100644 (file)
index 0000000..ea7714a
--- /dev/null
@@ -0,0 +1,3 @@
+Plugin tiré du site de munin pour expliquer comment ça fonctionne.
+
+URL http://munin-monitoring.org/wiki/HowToWritePlugins
diff --git a/scripts/munin-plugins/plugin101/loadAvg b/scripts/munin-plugins/plugin101/loadAvg
new file mode 100644 (file)
index 0000000..6a4019e
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+case $1 in
+   config)
+        cat <<'EOM'
+graph_title Load average
+graph_vlabel load
+load.label load
+EOM
+        exit 0;;
+esac
+
+echo -n "load.value "
+cut -d' ' -f2  /proc/loadavg