#!/bin/sh

# Send email containg  system information
# Written by Georgi Chorbadzhiyski

PATH="/bin:/sbin:/usr/bin:/usr/sbin"

TO="root@top.bg"
HOST=`cat /etc/HOSTNAME`

(
cat - <<END
To: <$TO>
From: <root@$HOST>
Subject: cron: Host info - $HOST

$HOST (`uname -a`)

`uptime`

`df -h`

`w`

`last -15`

`netstat -ln`

END
) | /var/qmail/bin/qmail-inject
