Great find Robert.  Now that my pingcheck is working with your fix I notice
that the script does not fill in the src field.  Here's what I get in the
"alert: Ping Failure!" email:

host: shaw.ca
date: Thu Jan  3 14:50:51 MST 2002
src :

"src : $HOSTNAME" is the culprit /etc/multicron-d, line 132).  It appears
that $HOSTNAME, defined in network.conf is not visible to the multicron-d
script.  I'm sure it's something to do with the last few lines (see below).
Not being up on unix scripting, I've no idea how to "include" another
scripts definitions.

Any ideas?

Cheers.

Paul
Calgary, Alberta, Canada

> The solution to this bug was to add PATH=$PATH:/usr/sbin to the
> multicron-p file. The end of the file should now look like:
>
>     [ ! -f /etc/lrp.conf ] && exit 1
>     . /etc/lrp.conf
>     PATH=$PATH:/usr/sbin
>     main
>
> The mailadmin() fx now works properly. If there is a more elegant
> solution please let me know.
> Thanks,
>   Robert Williams


_______________________________________________
Leaf-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user

Reply via email to