I've actually done that, though I no longer have access to the system where
it sits... You're right, it is easy. Set up an alias in /etc/aliases:
mail2xymon: "|/usr/local/bin/mail2xymon"
then run "newaliases" to 'compile' the db file for sendmail. The script can
be any language you're comfortable with, including Cobol or Fortran if
that's what floats your boat. All you need to know is that when it starts
up, the email appears on <stdin>. You get headers first, in no particular
order, probably including "From:", "To:", "Subject:" and "Date:". For
example:
Date: Thu, 19 Nov 2009 14:58:35 +0200
From: "Nikesh Maharaj" <user-000aaf9a8455@xymon.invalid>
To: <user-ae9b8668bcde@xymon.invalid>
Subject: [hobbit] Backup exec
A blank line separates the headers from the body of the email, which can
contain just about any form of text.
Ralph Mitchell
On Wed, Dec 16, 2009 at 4:24 PM, Matthew Moldvan <user-ffaad6c7b6c3@xymon.invalid> wrote:
If you're using Sendmail, you can setup an alias to receive those messages
and pipe them to a shell script. Based on your parsing of the mail message
in that shell script, you can send a subsequent status color to your Xymon
server. Sounds relatively easy ...
Matt Moldvan.
Unix System Administrator
Computer Science Corporation
General Dynamics Land Systems
XXXXX Mound Rd.
Sterling Heights, MI. 48310
Desk: (XXX) XXX-XXXX
Oracle IM: moldvanm
This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery.
NOTE: Regardless of content, this e-mail shall not operate to bind CSC to
any order or other contract unless pursuant to explicit written agreement or
government initiative expressly permitting the use of e-mail for such
purpose.
*Re: [hobbit] Backup exec*
*Josh Luthman * to: hobbit
11/19/2009 09:25 AM
*Please respond to hobbit*
I didn't get a list, just empty search results.
On 11/19/09, Asif Iqbal <user-6f4b51ac2a40@xymon.invalid> wrote:
On Thu, Nov 19, 2009 at 7:58 AM, Nikesh Maharaj <user-000aaf9a8455@xymon.invalid>
wrote:
Good afternoon all,
I am currently running BackupExec v12.5 . is there any way I can
amalgamate
the “successful emails” into Xymon?
http://www.deadcat.net/search.php?menuosfamily=0&menulicense=0&menusection=17&filtermdate=&filterdescription=backup+exec&menuNoPerPage=20&action=search&Filter=Filter
--
This message has been scanned for viruses and
dangerous content by *MailScanner* <<http://www.deadcat.net/search.php?menuosfamily=0&menulicense=0&menusection=17&filtermdate=&filterdescription=backup+exec&menuNoPerPage=20&action=search&Filter=Filter>http://www.mailscanner.info/>,
and is
believed to be clean.
--
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
--
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX
"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein
<http://www.mailscanner.info/>