[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] Alert mails with the Ack-Code
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] Alert mails with the Ack-Code
- From: Henrik "Størner" <henrik (at) hswn.dk>
- Date: Wed, 4 Nov 2009 09:49:32 +0000 (UTC)
- Newsgroups: lists.hobbit
- Organization: Linux Users Inc.
- References: <hbnqdb$peh$1 (at) voodoo.hswn.dk> <98C4017C3754A34C9D7F4AEC3FF648BA03436B443E (at) permls101.wde.woodside.com.au>
- User-agent: nn/6.7.3
In <98C4017C3754A34C9D7F4AEC3FF648BA03436B443E (at) permls101.wde.woodside.com.au> "Everett, Vernon" <Vernon.Everett (at) woodside.com.au> writes:
>When an alert goes out in an email, the subject is normally something like =
>this
> Hobbit [70385] hostname:testname CRITICAL (RED)=20
>We want to be rid of the ACK-CODE in the subject, so we end up with somethi=
>ng like this
> Hobbit hostname:testname CRITICAL (RED)
>(I am assuming that is the ACK-CODE?)
>I know I can simply parse or recreate the alerts using a custom script, but=
> I was hoping for something a little more elegant, and hopefully simpler.
I'm afraid the subject-contents is hardcoded into the Xymon alert module.
(It's in hobbitd/do_alert.c, the "message_subject()" routine, in case you
would like to tweak it yourself).
Regards,
Henrik