[Logcheck-devel] Update for Solaris 8/9 logcheck.sh

Todd Troxell ttroxell at debian.org
Mon Aug 9 20:36:14 UTC 2004


On Fri, Aug 06, 2004 at 12:44:20PM -0400, Gordon Thagard wrote:
> Hello,
> 
> it seems that Solaris 8 and 9 don't provide a proper /usr/bin/mail 
> command. The silly thing doesn't support the "-s" option so the 
> logcheck.sh fails with a "mail: Null names are not allowed" whenever I 
> tried to run it. After reading the manpage for mail I realized the 
> problem. This led me to rewriting the script and I was hoping you might 
> add my changes to the src/logcheck-1.1.1/systems/sun/logcheck.sh script. 
> Below is the result of my very minor improvement:
> 
> -------------------------- cut here -----------------------------
> # If there are results, mail them to sysadmin
> 
> if [ "$ATTACK" -eq 1 ]; then
>       echo "Subject: $HOSTNAME $DATE ACTIVE SYSTEM ATTACK!" > 
> $TMPDIR/check.tmp
>       cat $TMPDIR/checkreport.$$ >> $TMPDIR/check.tmp
>       cat $TMPDIR/check.tmp | $MAIL $SYSADMIN
> elif [ "$FOUND" -eq 1 ]; then
>       echo "Subject: $HOSTNAME $DATE system check" > $TMPDIR/check.tmp
>       cat $TMPDIR/checkreport.$$ >> $TMPDIR/check.tmp
>       cat $TMPDIR/check.tmp | $MAIL $SYSADMIN
> fi
> 
> # Clean Up
> rm -f $TMPDIR/check.$$ $TMPDIR/checkoutput.$$ $TMPDIR/checkreport.$$ 
> $TMPDIR/check.tmp
> -------------------------- cut here -----------------------------
> 
> I hope your will accept my little contribution to the project. Thanks 
> for your time.

Gordon,

I am not sure what to do with this as it's a patch against 1.1.1/Solaris, and
this project is currently Debian-native (and much evolved from 1.1.1)

I'd suggest mailing this to Sean Boran <sean at boran.com> who seems to be
maintaining an old tree on Solaris.

Cheers,

-- 
[   Todd J. Troxell                                         ,''`.
      Student, Debian GNU/Linux Developer, SysAdmin, Geek  : :' :
      http://debian.org || http://rapidpacket.com/~xtat    `. `' 
                                                             `-     ]




More information about the Logcheck-devel mailing list