Ces deux scripts sont inutiles, on utilise en pratique ceux de munin
directement darcs-hash:20060420143535-72cb0-8e9ccf0953657a4737e0f1be20c2c125bdee40c7.gz
This commit is contained in:
parent
0374bf5d0a
commit
7b98b6ca73
2 changed files with 0 additions and 80 deletions
|
@ -1,59 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Plugin to monitor harddrive temperatures through SMART.
|
||||
#
|
||||
# client-conf.d/-options:
|
||||
#
|
||||
# drives -- List drives to monitor. E.g. "hda hdc".
|
||||
#
|
||||
# $Log: hddtemp,v $
|
||||
# Revision 1.1 2006-04-20 13:01:20 salles
|
||||
# On regroupe les plugins munin dans un répertoire commun à toutes les machines
|
||||
#
|
||||
# Revision 1.1 2004/10/08 14:59:48 salles
|
||||
# Ajout des scripts persos pour les graphes munins.
|
||||
# Apparition d'un graphe pour compter les blacklistés.
|
||||
#
|
||||
# Revision 1.2 2004/01/29 19:39:00 jimmyo
|
||||
# Generic plugins now use printf instead of echo -n, as this is more portable (SF#885564)
|
||||
#
|
||||
# Revision 1.1 2004/01/02 18:50:00 jimmyo
|
||||
# Renamed occurrances of lrrd -> munin
|
||||
#
|
||||
# Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo
|
||||
# Import of LRRD CVS tree after renaming to Munin
|
||||
#
|
||||
# Revision 1.2 2003/12/18 19:16:00 jimmyo
|
||||
# Changes from Alexandre
|
||||
#
|
||||
# Revision 1.1 2003/12/18 19:04:37 jimmyo
|
||||
# New plugin: Alexandre Dupouy contributed "hddtemp".
|
||||
#
|
||||
#
|
||||
#%# family=contrib
|
||||
|
||||
HDDTEMP=/usr/sbin/hddtemp
|
||||
|
||||
drives="sda sdb sdc sdd"
|
||||
|
||||
if [ "$1" = "autoconf" ]; then
|
||||
if [ -x "$HDDTEMP" ]; then
|
||||
echo yes
|
||||
exit 0
|
||||
else
|
||||
echo no
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$1" = "config" ]; then
|
||||
|
||||
echo 'graph_title HDD temperature'
|
||||
echo 'graph_args --base 1000 -l 0'
|
||||
echo 'graph_vlabel temp in °C'
|
||||
for a in $drives ; do echo $a.label $a "`$HDDTEMP -q /dev/$a | cut -f 2 -d ':' | cut -d ' ' -f3`" ; done
|
||||
exit 0
|
||||
fi
|
||||
|
||||
for a in $drives ; do printf "$a.value " ; echo "`$HDDTEMP -q /dev/$a | cut -f 3 -d ':' | cut -d ' ' -f2`" | awk -F \° '{print $1}' ; done
|
||||
|
21
munin/uptime
21
munin/uptime
|
@ -1,21 +0,0 @@
|
|||
#!/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