Hobbit alerts with qmail failing
list Asif Iqbal
Hi All
Anyone running qmail on hobbit server? I am not receiving alerts but
web page get updated fine. Here are the related info on my setup
MAIL="sendmail -f user-c208d0fd1334@xymon.invalid"
HOST=%jump(.*)|rusty(.*)
MAIL user-62c2e1cb12b4@xymon.invalid
1.2.0.195 rusty.host.com # ssh
echo this is a test email | sendmail -f user-c208d0fd1334@xymon.invalid (works).
/var/log/qmail/current shows the email too.
The following command does not generate an email
bb 127.0.0.1 "status rusty.home.com.conn red `date` this is a test alert"
I see the web page got updated with red alert. But
/var/log/qmail/current does not show any email generated either.
Is the "MAIL" variable defined wrong then?
--
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
list Asif Iqbal
▸
On 7/7/06, Asif Iqbal <user-6f4b51ac2a40@xymon.invalid> wrote:
Hi All Anyone running qmail on hobbit server? I am not receiving alerts but web page get updated fine. Here are the related info on my setup MAIL="sendmail -f user-c208d0fd1334@xymon.invalid"
I went ahead and unlink /usr/lib/sendmail from qmail's sendmail and linked it back to the sendmail's original binary. Then redefined MAIL to "mailx -r user-c208d0fd1334@xymon.invalid -s" to restore the original behavior and at the same time restricted qmail's smtpd with tcpserver. I know some people suggest to use postfix for all, but that would be off topic for this particular goal.
▸
HOST=%jump(.*)|rusty(.*)
MAIL user-62c2e1cb12b4@xymon.invalid
1.2.0.195 rusty.host.com # ssh
echo this is a test email | sendmail -f user-c208d0fd1334@xymon.invalid (works).
/var/log/qmail/current shows the email too.
The following command does not generate an email
bb 127.0.0.1 "status rusty.home.com.conn red `date` this is a test alert"
I see the web page got updated with red alert. But
/var/log/qmail/current does not show any email generated either.
Is the "MAIL" variable defined wrong then?
--
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
-- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
list Arnoud Post
Henrik,
I just did a clean install of the beta version (4.2-beta-20060605), and I noticed a few mistakes in the runclient.sh script.
The "status" part misses a few $MACHINEDOTS in the pid lines. This results in "Hobbit is not running" messages.
============== Corrected lines: ============
"status")
if test -s $HOBBITCLIENTHOME/logs/clientlaunch.$MACHINEDOTS.pid
then
kill -0 `cat $HOBBITCLIENTHOME/logs/clientlaunch.$MACHINEDOTS.pid`
if test $? -eq 0
thenCHINEDOTS
echo "Hobbit client (clientlaunch) running with PID `cat $HOBBITCLIENTHOME/logs/clientlaunch.$MACHINEDOTS.pid`"
else
echo "Hobbit client not running, removing stale PID file"
rm -f $HOBBITCLIENTHOME/logs/clientlaunch.$MACHINEDOTS.pid
fi
else
echo "Hobbit client (clientlaunch) does not appear to be running"
fi
;;
===========================================
Best regards,
Arnoud Post
The Netherlands