[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [xymon] Hobbit-mailack
- To: xymon (at) xymon.com
- Subject: Re: [xymon] Hobbit-mailack
- From: Asif Iqbal <vadud3 (at) gmail.com>
- Date: Thu, 22 Jul 2010 11:37:42 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type; bh=HOL6bzkYBXsNhJz78ZbdyOmOi0E9xLojx+cLt5cK+dw=; b=quJMHSCwos7eaIuMISLM5lmq4N9Tg2xtr96LP8/N1s6v8cuw6GKZJpoauAeTWllCVq CKMwrXPOlwxxB2XbstTcc2zQPvzP8MNlH0vYTGW/2hHHEFIt9yhtJ3nXIig6eDAZrKG2 4ssp848YDEX8ZeIQfUp/Xhium8JuHeKi224xA=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=CL3BejjSJ/Mji3z/lhVUz2WJvLF6Rcouu213OBjXPDT8fvoL98k7ft1uzFhjby2x2b GP+o8ZTqKk6y7Ze1+zKJbrmvWmISkqdIYIfi8x+yzV2vpmS4PNrFov5p6yZ/7AT7o/6f JzU6QEA2xOb+EzJn8UiA0dC7SaXuvYYQyBphs=
- References: <AANLkTimhPmtfokvu-NbGbHiwpfK5e0e_J9kIwN1uttmM (at) mail.gmail.com>
On Thu, Jul 22, 2010 at 11:16 AM, Geoff Hallford
<geoff.hallford (at) gmail.com> wrote:
> Hi All,
>
> Does anyone know of a way to allow my custom email alerts to be used with
> hobbit-mailack? Currently, the only way to get Xymon 4.3.0-0 beta 2 to
> acknowledge an alert via email reply is for the subject line to start with
> "Hobbit [$ACKCODE]". My alerts start off with either "ALERT:" or
> "RECOVERED:" and not matter where I put the $ACKCODE, it only works if you
> do it as "Hobbit [$ACKCODE]".
You just have to modify few lines starting here, excerpted from
hobbitd/hobbit-mailack.c
98 /* Get the alert cookie */
99 subjexp = pcre_compile(".*(Hobbit|BB)[ -]*
\\[*(-*[0-9]+)[\\]!]*", PCRE_CASELESS, &errmsg, &errofs, NULL);
100 if (subjexp == NULL) {
101 dbgprintf("pcre compile failed - 1\n");
102 return 2;
103 }
So it is really pcre match. Then make clean; make and then save your
old hobbit-mailack and
replace it your new hobbit-mailack
>
> I think there should be something in the hobbitserver.cfg to allow people to
> change this, as we are supposed to be able to customize our alerting and
> this breaks mailack.
>
> Any thoughts?
>
> Thanks.
>
> P.S. I can't develop in C.
>
> Geoff.
>
--
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?