[Nagiosplug-devel] [ nagiosplug-New Plugins-1331956 ] pop3(s) email-matching plugin

SourceForge.net noreply at sourceforge.net
Wed Oct 19 08:07:11 CEST 2005


New Plugins item #1331956, was opened at 2005-10-19 10:04
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=541465&aid=1331956&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: Perl plugin
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: kkvenkit (kkvenkit)
Assigned to: Nobody/Anonymous (nobody)
Summary: pop3(s) email-matching plugin

Initial Comment:
A Perl plugin to match email in a pop3(s) account. This
was developed to monitor more than a dozen remote cron
jobs that email results to a common pop3s account.
Rather than manually verify an OK response for each
job, this plugin is used to check the pop3s account
once a day for an email that matches a specific
subject. The contents of the email are then searched
for specified ok-, warning-, and critical-resulting
content. This setup removes the manual checking of
results; nagios now notifies me if it does not find
positive results for all cron jobs.

The subject, ok-, warning-, and critical-resulting
patterns are Perl regular expressions. The host,
username, password, pop3 or pop3s values are arguments
to the plugin allowing the plugin to be re-used as many
times as required.

In addition to the standard ok/warning/critical result
message, the line in the email address following the
match is displayed. This allows contextual detail to be
reported within the nagios interface.

All the standard arguments are supported. Suggestions
to extend this plugin are encouraged.

A subsest of the plugin's help follows:

Usage: check_pop3_message.pl -H <host> -U <username> -P
<password> -s <subject pattern> -o <ok pattern> [ -S ]
[ -p <port> ] [ -w <warning pattern> ] [ -c <critical
pattern> ] [ -n ]

-H, --hostname=HOST
   Name or IP address of pop3(s) host
-U --username=USERNAME
   Username for pop3(s) account
-P --password=PASSWORD
   Password for pop3(s) account
-S --ssl
   Use SSL (aka pop3s)
-p --port=PORT
   Port of pop3(s) server (default: 110 for pop3, 995
for pop3s)
-s --subject=PATTERN
   Pattern to match in email's subject
-o --ok=PATTERN
   Pattern to match in email's body indicating OK status
-w --warning=PATTERN
   Pattern to match in email's body indicating WARNING
status
-c --critical==PATERN
   Pattern to match in email's body indicating CRITICAL
status
-n --nodelete
   Do not delete matched email (if it exists).
-v --verbose
   Output verbose output

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=541465&aid=1331956&group_id=29880




More information about the Devel mailing list