Hi Marc, Marc Powell wrote:
-----Original Message----- From: mario [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 06, 2007 9:45 AM To: Marc Powell Cc: [email protected] Subject: Re: [Nagios-users] Mail throughput pluginHi Marc, Marc Powell wrote:# This example will send eacht time this check is executed a new # mail to [EMAIL PROTECTED] using the SMTP-Host mailer. # Then it looks for any back-forwarded mails in the POP3 host # mypop. In this Configuration CRITICAL state will be reached if # more than 2 Mails are pending (meaning that they did not came # back till now) or if a mails got lost (meaning a mail, that was # send later came back prior to another mail). (...) Does this mean i need to configure my destination to bounce my emailback? No, the plugin will POP the account you specify to see if the messages arrived. I see that the plugin doesn't support SMTP Auth. Looking at http://search.cpan.org/~gbarr/libnet-1.20/Net/SMTP.pm, at first glance it would seem to be pretty straightforward to add a $smtp->auth(<username>,<password>) to the script around line 125 to support that. An attempted patch is attached. I don't have access to an SMTP Auth server to test so YMMV.
/usr/lib/nagios/plugins# patch -p 0 < patch (Stripping trailing CRs from patch.) patching file check_email_loop.pl Hunk #2 FAILED at 89. Hunk #4 succeeded at 251 with fuzz 2. 1 out of 4 hunks FAILED -- saving rejects to file check_email_loop.pl.rejThe check_email_loop.pl.rej and the patched check_email_loop script is attached.
Did the patch succeed or not? Thanks, Mario
check_email_loop.pl
Description: Perl program
check_email_loop.pl.rej
Description: application/reject
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Nagios-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
