Home
www.foxure.com
  • About me
  • Guestbook
  • Howtos
  • Projects
  • Documention
Home

Howtos

Install debian on WGT634U

Why debian?

 

  • Read more

Uptime monitoring with MRTG

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

  • Add new comment
  • Read more

Disc temperature monitoring with MRTG

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

  • Add new comment
  • Read more

Ping monitoring with MRTG

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

/etc/mrtg.conf

  • Add new comment
  • Read more
Syndicate content

Home

  • About me
  • Guestbook
  • Howtos
    • Ping monitoring with MRTG
    • Disc temperature monitoring with MRTG
    • Install debian on WGT634U
    • Uptime monitoring with MRTG
  • Projects
    • Homer Simpson Engraving
    • LED lighted nestingbox
    • Linux on WGT634U
    • Nintendo Computer Case
    • Parallelport LEDs
  • Documention
    • Motorola/Kreatel- STB