[Nagiosplug-devel] [ nagiosplug-Patches-1765101 ] Fix false CRIT when mail system is too fast
SourceForge.net
noreply at sourceforge.net
Wed Aug 1 08:24:06 CEST 2007
Patches item #1765101, was opened at 2007-08-01 01:24
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=1765101&group_id=29880
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Bugfix
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Casey Zacek (czacek)
Assigned to: Nobody/Anonymous (nobody)
Summary: Fix false CRIT when mail system is too fast
Initial Comment:
Patch against Plugin Version (-V output): 1.1
Plugin Name: contrib/check_email_loop.pl
Example Plugin Commandline: check_email_loop.pl -from=user at domain.com -to=user at domain.com -pophost=mail.domain.com -popuser=user at domain.com -passwd=SUP3R_T3ST3R -poptimeout=30 -smtphost=smtp.domain.com -smtptimeout=30 -statfile=/var/log/nagios/email_loop.log -lostw=1 -lostc=2 -pendw=1 -pendc=2
Tested on operating system: Debian GNU/Linux 4.0
Tested on architecture: i686 & amd64
Tested with compiler: n/a
When POPping messages, the plugin does not look for the message that was *just* sent. It only looks for those that were sent prior to this iteration. With the newish "delete orphans" behavior, the super-new messages are considered orphans, and they are deleted. This patch changes the behavior such that all messages are considered equal when POPping, since that happens after sending.
I also added a few more "if $debug" warning lines, and added "Debug => $debug" option to the Net::POP3 constructor call.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=1765101&group_id=29880
More information about the Devel
mailing list