<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: [Nagios-users] notify with qmail and gentoo problem</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>BTW, sorry for replying to you directly, I should have checked the address. I assumed reply went to the list, should have done reply to all I suppose...</FONT></P>

<P><FONT SIZE=2>I haven't found anything interesting in the /var/log/qmail dir, but I found the following in messages:</FONT>
</P>

<P><FONT SIZE=2>Oct 25 05:40:21 mjollnir nagios: SERVICE NOTIFICATION: meinholz;frigga;www - TechRep HTTP;CRITICAL;notify-by-email;Connection refused by host</FONT></P>

<P><FONT SIZE=2>This is funny, because I am able to mail to all address in my contacts.cfg via mutt and also by echo'ing into /var/qmail/bin/qmail-inject like TEST.deliver says to, so I don't know what is refusing, unless the printf (in the notify_by_email) thing is being refused for some reason...</FONT></P>

<P><FONT SIZE=2>Is there a simple way to use printf to send an email from the command line to emulate what notify_by_email is actually doing? I could test that. I can't decipher what notify_by_email is actually doing and I'm obviously not a mail guru...</FONT></P>

<P><FONT SIZE=2>Since I got the following in nagios.log:</FONT>
</P>

<P><FONT SIZE=2>[1035474094] Warning: Attempting to execute the command "/usr/bin/printf "%b" "Service: NTP\nHost: odin\nAddress: 204.255.194.4\nState: OK\nInfo: OK: Time difference -0.033110 seconds\nDate: Thu Oct 24 11:41:34 EDT 2002" |  -s "RECOVERY: Odin Sun E3000/NTP is OK" meinholz@imcingular.com" resulted in a return code of 127.  Make sure the script or binary you are trying to execute actually exists...</FONT></P>

<P><FONT SIZE=2>It seems to be guessing that a script or binary is missing. I checked that /usr/bin/printf exists, is there anything else on my system that could be missing? I don't have a telnet client installed for instance...</FONT></P>

<P><FONT SIZE=2>Lloyd</FONT>
</P>
<BR>

<P><FONT SIZE=2>> -----Original Message-----</FONT>
<BR><FONT SIZE=2>> From: Darren Spruell [<A HREF="mailto:sancho@sancho2k.net">mailto:sancho@sancho2k.net</A>]</FONT>
<BR><FONT SIZE=2>> Sent: Thursday, October 24, 2002 10:16 PM</FONT>
<BR><FONT SIZE=2>> To: Lloyd Meinholz</FONT>
<BR><FONT SIZE=2>> Subject: Re: [Nagios-users] notify with qmail and gentoo problem</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> Lloyd Meinholz wrote:</FONT>
<BR><FONT SIZE=2>> [...]</FONT>
<BR><FONT SIZE=2>> > </FONT>
<BR><FONT SIZE=2>> > /usr/bin/printf does exist, I'm not sure what other script </FONT>
<BR><FONT SIZE=2>> or binary </FONT>
<BR><FONT SIZE=2>> > they are refering too.</FONT>
<BR><FONT SIZE=2>> > /usr/sbin/sendmail and /usr/lib/sendmail are symbolic links to </FONT>
<BR><FONT SIZE=2>> > /var/qmail/bin/sendmail. Other than that I don't know what is wrong.</FONT>
<BR><FONT SIZE=2>> > </FONT>
<BR><FONT SIZE=2>> > Thanks again for looking at this,</FONT>
<BR><FONT SIZE=2>> > </FONT>
<BR><FONT SIZE=2>> > Lloyd</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> What (if any) qmail errors are seen during this failed delivery?</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> --</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>>    +-------------------------------------------------------------+</FONT>
<BR><FONT SIZE=2>>    | Darren Spruell               GPG Public Key 1024D/43F439AE: |</FONT>
<BR><FONT SIZE=2>>    | sancho@sancho2k.net          1F9D 4BCE 4A49 C845 A817       |</FONT>
<BR><FONT SIZE=2>>    | <A HREF="http://www.sancho2k.net/" TARGET="_blank">http://www.sancho2k.net/</A>     18B3 D978 3565 43F4 39AE       |</FONT>
<BR><FONT SIZE=2>>    +-------------------------------------------------------------+</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> </FONT>
</P>

</BODY>
</HTML>