SUMMARY: CheckSuite - daily sysadmin tasks

From: Roetman, Paul <PRoetman_at_CSXWT.com>
Date: Mon Nov 24 2003 - 18:25:42 EST
Original Post:

I am looking for some "simple" software to monitor daily sysadmin tasks, and
email when the thresholds get broken....found "CheckSuite" on gnu.org - it's
nearly perfect, but tailored to Linux... Has anyone ported this to Solaris?
Or have similar software? Is there any interest in porting this to Solaris?
It is currently written in Perl, so only the OS commands need to be
modified...

Thanks to 

  Christopher Saul
  Mitchell L Bruntel
  Joe Fletcher
  Christopher Saul 
  Bevan Broun
  dspezialie@xxxxxx.com.au
  Bertrand Hutin

The list of suggestions:

  nagios                  www.nagios.org <www.nagios.org> 
  Big Brother             www.bb4.com <www.bb4.com> 
  Sun Management Centre   Sun Distribution disks
  Logwatch                http://wwwlogwatch.org <http://wwwlogwatch.org> 
  Cronlister		  see code below

I will install and try both nagios and SMC, but will steer clear of Big
Brother (free license is for non-commercial use only). 

Logwatch is great for monitoring logs, but other tests cannot be developed
for it....So this package does not quite fit the bill...

And last but not least, I will review Cronlister! Although I only have a
small number of systems...so it could be a little overkill!

I also found there is a whole swag of tools out there for monitoring
Networks, but that is beyond the scope of what I am trying here!

Thanks everyone

Paul




Cronlister:

It runs as root (becasue of PW /crontab checks)
# --cronlister cron job
# /bin/ksh
# Last revised 03/25/03
# 8/20/03 to auto-create subdir/monyr and put THERE!
# no more moving monthly. PAIN.
# new permanent home is /var/adm/cron-reports/MMM/yy/sys/filename,etc
# MUST run as root for proper permisssions for delete, list,etc # will look
at cron listing for given system # "Constanats" # sys, date,time # out/error
files # Declare: curdate=`date +%m%d%y` tardir=`date +%b%y` #
maindir=/var/adm/cron-reports maindir=/var/adm/cron-reports # tardir= NEW
target directory sys=`uuname -l` # output goes into /var/adm
of=$maindir/$tardir/$sys.cronlist.$curdate
# Now do sudo check on this system
sulog=/tmp/sudolog.log
grep sudo /var/adm/* > $sulog 2>>$sulog
if [ ! -d $maindir/$tardir ]
        then mkdir $maindir/$tardir
                # make the directory
                echo "A directory called " $maindir/$tardir  " was just
created" >$of ; fi # ok dest dir now exists!

if [ -f $of ]
        then rm -f $of
        echo "Removing previous report run of day" >$of ;
fi
# First check if dest directory exists
# next define, get userlist
ul=/tmp/$sys-usrlist
# first check if file exists if so, delete, otherwise just create if [ -f
$ul ]; then
        rm -f $ul;
        cut -f1 -d: /etc/passwd >$ul;
else
        cut -f1 -d: /etc/passwd >$ul;
fi

# Now user list created, next"
# Creae RPT HEader here
usrhed="User: "
usrfoot="########"
hed="!!!!!!!!!!!!!!! User Cron Listing Created  !!!!!!!!!!!!!!! " # this is
report heading:
        echo $hed  >> $of  2>>$of
        echo $usrfoot " on system"  $sys " at " `date` >> $of  2>>$of for i
in `cat $ul` do
        echo $usrhed $i >> $of  2>>$of
        echo $i "'s pasword status: " `passwd -s $i` >> $of  2>>$of
        crontab -l $i  >> $of 2>> $of
        echo $usrfoot  >> $of 2>> $of
done;
ls -la $of
cat $of
echo " NOW add sulog report here "
echo $usrfoot
echo " SULOG for " $curdate
cat /var/adm/sulog
echo $usrfoot
echo " LAST log  " $curdate
last -30
echo $usrfoot
echo "sudo checkup here"
cat $sulog
echo $usrfoot
#--end of -cronlister
I have it in my root crontab as :
 02 05 * * * /export/home/xxxxx/cronlister
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Mon Nov 24 18:30:40 2003

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:24 EST