Passive Service Checks from E-mail?

Stanley Hopcroft Stanley.Hopcroft at IPAustralia.Gov.AU
Sat Mar 8 10:52:37 CET 2003


Dear Sir,

I am writing to thank you for your letter and say,

On Sat, Mar 08, 2003 at 07:44:57AM +0100, Rasmus Plewe wrote:
> On Sat, Mar 08, 2003 at 11:10:35AM +1100, Stanley Hopcroft wrote:
> > On Fri, Mar 07, 2003 at 02:09:15PM -0800, Hiatt, William wrote:
> > 
> > > I need to monitor some backup jobs from Veritas BackupEXEC.
> > > Unfortunately, BackupEXEC doesn't send SNMP traps when a job is
> > > successful (Figure that out!). But, it can send an e-mail out when a job
> > > has failed or is successful. Does anyone know the best way to parse this
> > > e-mail, or is anybody doing something like this already? Just thought
> > > I'd check-in before I spent the time to write one myself.
> > 
> > 1 Having your MTA recognise that the letter (from Veritas) needs special
> > handling ie programmatic handling
> > 
> > 2 Writing the program that slurps the letter, spits out the headers, and
> > extracts the backup status from what's left, and submitting the properly
> > formatted check result.
> 
> Hmm, what are the disadvantages of simply using check_log(2.pl) on the
> mail file? 
> 

None whatever apart from,

1 =:) spoiling a good story

2 (I think) that the information provided by the mail log is <= 1 bit ie
mail has arrived or not.

Even traps (some of them) carry more information than that.

However, if you only want to act on the receipt of a letter - without
any more interpretation - your suggestion is much simpler and more
maintainable.

> 
> Rasmus
> 


Yours sincerely.


-- 
------------------------------------------------------------------------
Stanley Hopcroft
------------------------------------------------------------------------

'...No man is an island, entire of itself; every man is a piece of the
continent, a part of the main. If a clod be washed away by the sea,
Europe is the less, as well as if a promontory were, as well as if a
manor of thy friend's or of thine own were. Any man's death diminishes
me, because I am involved in mankind; and therefore never send to know
for whom the bell tolls; it tolls for thee...'

from Meditation 17, J Donne.


-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list