[Nagiosplug-devel] Bugs in contrib/check_email_loop.pl
Ton Voon
ton.voon at altinity.com
Thu Jul 13 11:05:03 CEST 2006
Andreas,
Thank you for your patch. However, we are not maintaining plugins in
the contrib section - these will be removed in a future release.
On Nagiosexchange, there is a link for check_email_loop by Benjamin
Schmid: http://www.nagiosexchange.org/Networking.53.0.html?
&tx_netnagext_pi1[p_view]=328. I've copied him into this email.
Perhaps you two would like to get together to update the plugin?
Ton
On 12 Jul 2006, at 23:54, Andreas de Pretis wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> I attached a patch diffed against contrib/check_email_loop.pl from the
> daily snapshot (HEAD-200607121152). It fixes a syntax error, a typo
> and
> a minor warning with some regexps.
>
> Regards,
> Andreas de Pretis
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.2 (MingW32)
>
> iD8DBQFEtX28GFoAHJp0DTURAhaLAKDKWvF56HxyuTkqB3mDOKD4hsM3YQCgtAah
> 3I1GFd3FmnDr4QE2LHlArXs=
> =RtR5
> -----END PGP SIGNATURE-----
>
>
> This message has been scanned for viruses by MailController -
> www.MailController.altohiway.com
> --- /usr/lib/nagios/plugins/check_email_loop 2006-07-11
> 18:39:04.599062688 +0200
> +++ nagios-plugins-HEAD-200607121152/contrib/check_email_loop.pl
> 2005-11-30 00:21:06.000000000 +0100
> @@ -43,7 +43,7 @@
> my $TIMEOUT = 120;
> my %ERRORS = ('OK' , '0',
> 'WARNING', '1',
> - 'CRITICAL', '2',
> + 'CRITICAL', '2');
> 'UNKNOWN' , '3');
>
> my $state = "UNKNOWN";
> @@ -176,7 +176,7 @@
> my @msgsubject = grep /^Subject/, @msglines;
> chomp @msgsubject;
> # Scan Subject if email is an Email-Ping. In fact we match and
> delete also successfully retrieved messages here again.
> - if (!defined $keeporphaned && $msgsubject[0] && $msgsubject[0]
> =~ /E-Mail Ping \[/) {
> + if (!defined $keeporphaned && $msgsubject[0] =~ /E-Mail Ping \[/) {
> $pop->delete($msgcount); # remove E-Mail from POP3 server
> }
>
> @@ -245,7 +245,7 @@
> print " -popuser=text Username of the POP3-account\n";
> print " -passwd=text Password for the POP3-user\n";
> print " -poptimeout=num Timeout in seconds for the POP3-
> server\n";
> - print " -smtphost=text IP or name of the SMTP host\n";
> + print " -smtphost=text IP oder name of the SMTP host\n";
> print " -smtptimeout=num Timeout in seconds for the SMTP-
> server\n";
> print " -statfile=text File to save ids of messages
> ($statfile)\n";
> print " -interval=num Time (in minutes) that must pass by
> before sending\n";
> @@ -290,7 +290,7 @@
> $id =~ s/^LI/ID/; # evtl. remove lost mail mark
> @tmp = grep /E-Mail Ping \[/, @$mailref;
> chomp @tmp;
> - if ($tmp[0] && $tmp[0] =~ /$id/)
> + if (($tmp[0] =~ /$id/))
> { $match = 1; }
>
> # Sender:
>
> ----------------------------------------------------------------------
> ---
> 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 Plugin Development Mailing List Nagiosplug-
> devel at lists.sourceforge.net
> Unsubscribe at https://lists.sourceforge.net/lists/listinfo/
> nagiosplug-devel
> ::: Please include plugins version (-v) and OS when reporting any
> issue.
> ::: Messages without supporting info will risk being sent to /dev/null
http://www.altinity.com
T: +44 (0)870 787 9243
F: +44 (0)845 280 1725
Skype: tonvoon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20060713/ead4f241/attachment.html>
More information about the Devel
mailing list