Monitor uptime trought a perl script. This is just one way, there's many others and better way to do this
/usr/local/bin/uptime.pl
#!/usr/bin/perl
$uptime = `uptime`;
$uptime =~ /up (.*?) day/; $up = int($1);
print "$up\n"; print "$up\n"; #print "0\n";
/etc/mrtg.conf
monitor disk temperature. Needs hddtemp running as deamon and netcat. You will need to change the mawk print variable untill you get the right value
/usr/local/bin/disc.sh
Ping script i use to monitor packet loss and round trip time to a specific host.
/usr/local/bin/sunet.sh
#!/bin/sh PING="/bin/ping" ADDR="ping.sunet.se" DATA=`$PING -c10 -s500 $ADDR -q ` LOSS=`echo $DATA | awk '{print $18 }' | tr -d %` echo $LOSS if [ $LOSS = 100 ]; then echo 0 else echo $DATA | awk -F/ '{print $5 }' fi