Xymon Mailing List Archive search

hobbit-mailack

9 messages in this thread

list Asif Iqbal · Mon, 28 Mar 2005 00:37:57 -0500 ·
Hi

I am loving the hobbit-mailack. It works very well. I just like to
request a 'notify' feature to the SYNOPSIS 

hobbit-mailack --env=FILENAME [--debug]

Something like 

hobbit-mailack --env=FILENAME [--debug] --notify <user-33c05d841751@xymon.invalid> <user-cb52ae67588b@xymon.invalid>

That way when I delay an alert everyone else who were also getting
alerts will have an option to be notified about this action 

So if I send an email as a reply to an alert

	delay 1h msg I am working on it now

All admins/users who were receiving the alert should get an email

	hostname:service has been delayed 1h

	Delayed by: <users info who delayed it>
	Reason: I am working on it now

Just my feedback for a future feature :-)

-- 
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
"..there are two kinds of people: those who work and those who take the credit...try
 to be in the first group;...less competition there."  - Indira Gandhi
list Terry Barnes · Mon, 28 Mar 2005 02:20:41 -0500 ·
user-c8222abeff59@xymon.invalid 3/28/05 12:37:57 AM >>>
quoted from Asif Iqbal
Hi

I am loving the hobbit-mailack. It works very well. I just like to
request a 'notify' feature to the SYNOPSIS 
Arg - that is a feature I have been missing in Hobbit that was great in
Big Brother. So - is there a mail-ack capability in Hobbit. I have
scoured the docs I have and have not seen anything about it. If it
exists - please point me to something that lets me know how to set it
up.

Also, I did an ack from Hobbit's administration - acknowledge alert
page. Did not appear to have done anything. In data/acks there is data
in the notificatrions .log but acklog is 0 bytes. I have replied to alet
emails, and used the webpage ack, but nothing seems to happen.

Thanks for any help


Terry Barnes
Siemens Com @ HFHS
XXX-XXX-XXXX (Office)
XXX-XXX-XXXX (Cellular)
XXX-XXX-XXXX (Fax)
user-34ea5ff61ded@xymon.invalid (Text Pager)
user-0e29285d9a67@xymon.invalid


CONFIDENTIALITY NOTICE: This email contains information from the sender that may be CONFIDENTIAL, LEGALLY PRIVILEGED, PROPRIETARY or otherwise protected from disclosure. This email is intended for use only by the person or entity to whom it is addressed.  If you are not the intended recipient, any use, disclosure, copying, distribution, printing, or any action taken in reliance on the contents of this email, is strictly prohibited. If you received this email in error, please contact the sending party by replying in an email to the sender, delete the email from your computer system and shred any paper copies of the email you printed.

Note to Patients: There are a number of risks you should consider before using e-mail to communicate with us. These risks are described in our Privacy Policy at http://henryford.com.  Review that policy carefully before continuing to communicate with us by e-mail. For greater Internet security, our policy describes the Henry Ford MyHealth electronic communication process - you may register at http://henryford.com.  If you do not believe that our policy gives you the privacy and security protection you need, do not send e-mail or Internet communications to us.
list Kevin Grady · Mon, 28 Mar 2005 05:47:04 -0500 ·
Depending on what RC you are runnning, I believe hobbit-mailack was
added in RC5, you can just man hobbit-mailack for setup instructions.
quoted from Terry Barnes


On Mon, 28 Mar 2005 02:20:41 -0500, Terry Barnes <user-0e29285d9a67@xymon.invalid> wrote:
user-c8222abeff59@xymon.invalid 3/28/05 12:37:57 AM >>>
Hi

I am loving the hobbit-mailack. It works very well. I just like to
request a 'notify' feature to the SYNOPSIS
Arg - that is a feature I have been missing in Hobbit that was great in
Big Brother. So - is there a mail-ack capability in Hobbit. I have
scoured the docs I have and have not seen anything about it. If it
exists - please point me to something that lets me know how to set it
up.

Also, I did an ack from Hobbit's administration - acknowledge alert
page. Did not appear to have done anything. In data/acks there is data
in the notificatrions .log but acklog is 0 bytes. I have replied to alet
emails, and used the webpage ack, but nothing seems to happen.

Thanks for any help

Terry Barnes
Siemens Com @ HFHS
XXX-XXX-XXXX (Office)
XXX-XXX-XXXX (Cellular)
XXX-XXX-XXXX (Fax)
user-34ea5ff61ded@xymon.invalid (Text Pager)
user-0e29285d9a67@xymon.invalid

CONFIDENTIALITY NOTICE: This email contains information from the sender that may be CONFIDENTIAL, LEGALLY PRIVILEGED, PROPRIETARY or otherwise protected from disclosure. This email is intended for use only by the person or entity to whom it is addressed.  If you are not the intended recipient, any use, disclosure, copying, distribution, printing, or any action taken in reliance on the contents of this email, is strictly prohibited. If you received this email in error, please contact the sending party by replying in an email to the sender, delete the email from your computer system and shred any paper copies of the email you printed.

Note to Patients: There are a number of risks you should consider before using e-mail to communicate with us. These risks are described in our Privacy Policy at http://henryford.com.  Review that policy carefully before continuing to communicate with us by e-mail. For greater Internet security, our policy describes the Henry Ford MyHealth electronic communication process - you may register at http://henryford.com.  If you do not believe that our policy gives you the privacy and security protection you need, do not send e-mail or Internet communications to us.

list Asif Iqbal · Tue, 5 Apr 2005 23:40:45 -0400 ·
quoted from Asif Iqbal
On Mon, Mar 28, 2005 at 12:37:57AM, Asif Iqbal wrote:
Hi

I am loving the hobbit-mailack. It works very well. I just like to
request a 'notify' feature to the SYNOPSIS 
hobbit-mailack --env=FILENAME [--debug]

Something like 
hobbit-mailack --env=FILENAME [--debug] --notify <user-33c05d841751@xymon.invalid> <user-cb52ae67588b@xymon.invalid>

That way when I delay an alert everyone else who were also getting
alerts will have an option to be notified about this action 
So if I send an email as a reply to an alert

	delay 1h msg I am working on it now

All admins/users who were receiving the alert should get an email

	hostname:service has been delayed 1h

	Delayed by: <users info who delayed it>
	Reason: I am working on it now

Just my feedback for a future feature :-)
Also, can hobbit-mailack be enriched with new features like able to
receive bb commands? Sometime I like to disable an alert instead of
delaying since the ACKCODE is keep changing.

Thanks
quoted from Asif Iqbal

-- 
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
"..there are two kinds of people: those who work and those who take the credit...try
 to be in the first group;...less competition there."  - Indira Gandhi
list Asif Iqbal · Tue, 28 Jun 2005 10:11:05 -0400 ·
quoted from Asif Iqbal
On Mon, Mar 28, 2005 at 12:37:57AM, Asif Iqbal wrote:
Hi

I am loving the hobbit-mailack. It works very well. I just like to
request a 'notify' feature to the SYNOPSIS 
hobbit-mailack --env=FILENAME [--debug]

Something like 
hobbit-mailack --env=FILENAME [--debug] --notify <user-33c05d841751@xymon.invalid> <user-cb52ae67588b@xymon.invalid>

That way when I delay an alert everyone else who were also getting
alerts will have an option to be notified about this action 
So if I send an email as a reply to an alert

	delay 1h msg I am working on it now

All admins/users who were receiving the alert should get an email

	hostname:service has been delayed 1h

	Delayed by: <users info who delayed it>
	Reason: I am working on it now

Just my feedback for a future feature :-)
Still like to see this feature. Lot of times a team member delay a
service and I/We--the rest of the team members--have no knowledge of it
until we are told OR check the hobbit web page.
quoted from Asif Iqbal

Thanks

-- 
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
"..there are two kinds of people: those who work and those who take the credit...try
 to be in the first group;...less competition there."  - Indira Gandhi
list Henrik Størner · Tue, 12 Jul 2005 22:12:45 +0200 ·
quoted from Asif Iqbal
On Tue, Jun 28, 2005 at 10:11:05AM -0400, Asif Iqbal wrote:
On Mon, Mar 28, 2005 at 12:37:57AM, Asif Iqbal wrote:
Hi
I am loving the hobbit-mailack. It works very well. I just like to
request a 'notify' feature to the SYNOPSIS > > hobbit-mailack --env=FILENAME [--debug]
Something like > > hobbit-mailack --env=FILENAME [--debug] --notify <user-33c05d841751@xymon.invalid> <user-cb52ae67588b@xymon.invalid>
That way when I delay an alert everyone else who were also getting
alerts will have an option to be notified about this action > > So if I send an email as a reply to an alert
	delay 1h msg I am working on it now
All admins/users who were receiving the alert should get an email
	hostname:service has been delayed 1h
	Delayed by: <users info who delayed it>
	Reason: I am working on it now
Just my feedback for a future feature :-)
Still like to see this feature. Lot of times a team member delay a
service and I/We--the rest of the team members--have no knowledge of it
until we are told OR check the hobbit web page.
I'll keep it in mind for the planned alert rewrite, but right now I
think your easiest solution is to just change the procmail or whatever
tool you use to invoke hobbit-mailack, and have it generate those mails
instead. Since you suggested sending to a fixed list of recipients,
that shouldn't be too hard.


Regards,
Henrik
list Geoff Hallford · Thu, 22 Jul 2010 11:16:43 -0400 ·
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]".

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.
list Asif Iqbal · Thu, 22 Jul 2010 11:37:42 -0400 ·
On Thu, Jul 22, 2010 at 11:16 AM, Geoff Hallford
quoted from Geoff Hallford
<user-dc9e7f30b1e2@xymon.invalid> 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
quoted from Geoff Hallford
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?
list Geoff Hallford · Thu, 22 Jul 2010 13:53:32 -0400 ·
Thank you very much. I don't want to really mess with the code itself. I
fixed it by filtering it through sed in my procmailrc file. For anyone else
that is interested, here is the scenario:

My alert subject: "ALERT: [$ACKCODE] $BBHOSTNAME - $SERVICE"
Hobbit expects: "Hobbit [$ACKCODE] ......"

The contents of my ~/.procmailrc file to make hobbit-mailack accept the
acknowledgement (until the code is changed):

DEFAULT=$HOME/Mailbox
LOGFILE=$HOME/procmail.log
:0
| sed -e s/"ALERT: "/"Hobbit "/ | $HOME/server/bin/hobbit-mailack
--env=$HOME/server/etc/hobbitserver.cfg
quoted from Asif Iqbal


On Thu, Jul 22, 2010 at 11:37 AM, Asif Iqbal <user-6f4b51ac2a40@xymon.invalid> wrote:
On Thu, Jul 22, 2010 at 11:16 AM, Geoff Hallford
<user-dc9e7f30b1e2@xymon.invalid> 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?