Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 407421 - net-analyzer/nagios-plugins-1.4.15 script contrib/ doesn't work
Summary: net-analyzer/nagios-plugins-1.4.15 script contrib/ doesn'...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sysadmin Bugs
Depends on:
Reported: 2012-03-08 14:34 UTC by Marcin Mirosław
Modified: 2015-08-31 14:39 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Mirosław 2012-03-08 14:34:54 UTC
# perl /usr/lib64/nagios/plugins/contrib/ 
syntax error at /usr/lib64/nagios/plugins/contrib/ line 47, near "'3')"
Execution of /usr/lib64/nagios/plugins/contrib/ aborted due to compilation errors.

so script is unusable.

Reproducible: Always
Comment 1 Marcin Mirosław 2012-03-08 14:38:09 UTC
New version of script (available at ) behavies better:

$ perl 
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 
another mail.

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                                                                                                      
   -lostcrit=num      CRITICAL                                                                                                                                        
   -pendwarn=num      WARNING-state if more than num pending emails                                                                                                   
   -pendcrit=num      CRITICAL                                                                                                                                        
   -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)

Example: -poph=host -pa=pw -popu=popts -smtph=host -lostc=0 -pendc=2

Copyleft 19.10.2000, Benjamin Schmid / 2003 Michael Markstaller,
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.
Comment 2 Michael Orlitzky gentoo-dev 2015-08-31 14:39:51 UTC
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.