# perl /usr/lib64/nagios/plugins/contrib/check_email_loop.pl
syntax error at /usr/lib64/nagios/plugins/contrib/check_email_loop.pl line 47, near "'3')"
Execution of /usr/lib64/nagios/plugins/contrib/check_email_loop.pl aborted due to compilation errors.
so script is unusable.
New version of script (available at http://exchange.nagios.org/directory/Plugins/Email-and-Groupware/check_email_loop/details ) behavies better:
$ perl check_email_loop_v1.3.1.pl
check_email_loop 1.5 Nagios Plugin - Real check of a E-Mail system
ERROR: Missing or wrong arguments!
This script sends a mail with a specific id in the subject via an given
smtp-server to a given email-adress. When the script is run again, it checks
for this Email (with its unique id) on a given pop3 account and sends
The following options are available:
-from=text email adress of send (for mail returnr on errors)
-to=text email adress to which the mails should send to
-pophost=text IP or name of the POP3-host to be checked
-popuser=text Username of the POP3-account
-passwd=text Password for the POP3-user
-poptimeout=num Timeout in seconds for the POP3-server
-smtphost=text IP oder name of the SMTP host
-smtpuser=text name of the SMTP user
-smtppasswd=text password of the SMTP user
-smtpport=text IP oder name of the SMTP host
-smtptimeout=num Timeout in seconds for the SMTP-server
-usesmtpssl Set this to login with ssl enabled on smtp server
-usesmtptls Set this to login with tls enabled on smtp server
-statfile=text File to save ids of messages (check_email_loop)
-interval=num Time (in minutes) that must pass by before sending
another Ping-mail (give a new try);
-lostwarn=num WARNING-state if more than num lost emails
-pendwarn=num WARNING-state if more than num pending emails
-maxmsg=num WARNING if more than num emails on POP3 (default 50)
-forgetafter=num Forget Pending and Lost emails after num days
-keeporphaned Set this to NOT delete orphaned E-Mail Ping msg from POP3
-trashall Set this to DELETE all E-Mail msg on server
-usessl Set this to login with ssl enabled on server
-debug send SMTP tranaction info to stderr
Options may abbreviated!
LOST mails are mails, being sent before the last mail arrived back.
PENDING mails are those, which are not. (supposed to be on the way)
check_email_loop_v1.3.1.pl -poph=host -pa=pw -popu=popts -smtph=host -firstname.lastname@example.org
-email@example.com -lostc=0 -pendc=2
Copyleft 19.10.2000, Benjamin Schmid / 2003 Michael Markstaller, firstname.lastname@example.org
This script comes with ABSOLUTELY NO WARRANTY
This programm is licensed under the terms of the GNU General Public License
And needs dev-perl/Mail-POP3Client to work.
The 1.4.x series of nagios-plugins is gone from the tree, and this plugin isn't present in the newer 2.x series.