marsmail-0.2

This commit is contained in:
Mario Fetka
2011-11-13 00:46:51 +01:00
parent d665510635
commit b9586462cb
7 changed files with 92 additions and 225 deletions

4
monlan
View File

@@ -7,8 +7,6 @@
FLT=0
MLOG='/var/log/unitrace.log'
LLOG='/var/log/unilast.log'
MACHINE=lc.labinf.uaa.mx
PARTOFIP=148.211
if [ ! -f $MLOG ]; then
touch $MLOG
@@ -24,7 +22,7 @@ while /bin/true; do
echo "Last error: " > $LLOG
# check for nslookup failures
/usr/bin/nslookup $MACHINE | grep '$PARTOFIP' 2>&1 > /dev/null
/usr/bin/nslookup machineinyourdomain | grep 'partofip.i.e.235' 2>&1 > /dev/null
if [ $? -eq 1 ]; then
ER="Name lookups on our domain failed on $NOW. "
echo "$ER" >> $MLOG