On regroupe les plugins munin dans un rpertoire commun toutes les machines
darcs-hash:20060420130121-72cb0-50f87f8f01382a2ddc9afec1b1b6e02890d8d32c.gz
This commit is contained in:
parent
674ee00ed0
commit
f672fa493b
23 changed files with 1451 additions and 0 deletions
21
munin/uptime
Executable file
21
munin/uptime
Executable file
|
@ -0,0 +1,21 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Edité par mo² le 26 juillet 2004
|
||||
#
|
||||
|
||||
if [ "$1" = "autoconf" ]; then
|
||||
echo yes
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ "$1" = "config" ]; then
|
||||
|
||||
echo 'graph_title Uptime'
|
||||
echo 'graph_args --base 1000 -l 0 '
|
||||
echo 'graph_vlabel uptime in days'
|
||||
echo 'uptime.label uptime'
|
||||
echo 'uptime.draw AREA'
|
||||
exit 0
|
||||
fi
|
||||
|
||||
cat /proc/uptime | env LC_ALL=C awk '{printf "uptime.value %.2f\n",$1/86400}'
|
Loading…
Add table
Add a link
Reference in a new issue