Alert mails with the Ack-Code
list Vernon Everett
Hi all
Is there an easy way to send alerts without the ACK-CODE?
By "easy", I mean not hacking the source code, and not redirecting all mails through a custom script.
Cheers
V
NOTICE: This email and any attachments are confidential. They may contain legally privileged information or copyright material. You must not read, copy, use or disclose them without authorisation. If you are not an intended recipient, please contact us at once by return email and then delete both messages and all attachments.
list Henrik Størner
In <user-9a87762a7cf0@xymon.invalid> "Everett, Vernon" <user-9da1a1882f49@xymon.invalid> writes:
Is there an easy way to send alerts without the ACK-CODE? By "easy", I mean not hacking the source code, and not redirecting all mail= s through a custom script.
Um, yes - the bb-ack webpage does that, if you add "--no-pin" to CGI_ACK_OPTS in hobbitcgi.cfg. But I think that's the default already. Henrik
list Vernon Everett
Hi Henrik
Thanks for the reply.
Yes, this is the default, and is set that way on our server.
However, looking at my post again, I realise I did not adequately clarify what I was looking for.
When an alert goes out in an email, the subject is normally something like this
Hobbit [70385] hostname:testname CRITICAL (RED) We want to be rid of the ACK-CODE in the subject, so we end up with something 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.
Regards
Vernon
▸
-----Original Message-----
From: Henrik Størner [mailto:user-ce4a2c883f75@xymon.invalid] Sent: Thursday, 22 October 2009 4:20 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Alert mails with the Ack-Code
In <user-9a87762a7cf0@xymon.invalid> "Everett, Vernon" <user-9da1a1882f49@xymon.invalid> writes:
Is there an easy way to send alerts without the ACK-CODE? By "easy", I mean not hacking the source code, and not redirecting all mail= s through a custom script.
Um, yes - the bb-ack webpage does that, if you add "--no-pin" to CGI_ACK_OPTS in hobbitcgi.cfg. But I think that's the default already. Henrik NOTICE: This email and any attachments are confidential. They may contain legally privileged information or copyright material. You must not read, copy, use or disclose them without authorisation. If you are not an intended recipient, please contact us at once by return email and then delete both messages and all attachments.
list Alan Sparks
Unfortunately, that is burned into hobbitd/do_alert.c as fixed and unconditional. You'd either have to modify the source and rebuild, or use a SCRIPT to get what your want (and the latter is probably an easier solution). -Alan
▸
Everett, Vernon wrote:Hi Henrik Thanks for the reply. Yes, this is the default, and is set that way on our server. However, looking at my post again, I realise I did not adequately clarify what I was looking for. When an alert goes out in an email, the subject is normally something like this Hobbit [70385] hostname:testname CRITICAL (RED) We want to be rid of the ACK-CODE in the subject, so we end up with something 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. Regards Vernon -----Original Message----- From: Henrik Størner [mailto:user-ce4a2c883f75@xymon.invalid] Sent: Thursday, 22 October 2009 4:20 AM To: user-ae9b8668bcde@xymon.invalid Subject: Re: [hobbit] Alert mails with the Ack-Code In <user-9a87762a7cf0@xymon.invalid> "Everett, Vernon" <user-9da1a1882f49@xymon.invalid> writes:Is there an easy way to send alerts without the ACK-CODE? By "easy", I mean not hacking the source code, and not redirecting all mail= s through a custom script.Um, yes - the bb-ack webpage does that, if you add "--no-pin" to CGI_ACK_OPTS in hobbitcgi.cfg. But I think that's the default already. Henrik NOTICE: This email and any attachments are confidential. They may contain legally privileged information or copyright material. You must not read, copy, use or disclose them without authorisation. If you are not an intended recipient, please contact us at once by return email and then delete both messages and all attachments.
list Vernon Everett
Just to make my life a misery, we have had a change of heart. After explaining what the Ack-Code is, people have decided they like it, but want the corresponding Ack-Code to appear on the recovered message subject line. Any easy way to do that? I have meddled with the scripts, an removing the Ack-Code was far simpler than I thought (Script available for those who want it) But the Ack-Code is -1 on a recovered message. Regards Vernon
▸
-----Original Message-----
From: Alan Sparks [mailto:user-8f2174fd8b66@xymon.invalid] Sent: Tuesday, 27 October 2009 4:48 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Alert mails with the Ack-Code
Unfortunately, that is burned into hobbitd/do_alert.c as fixed and unconditional. You'd either have to modify the source and rebuild, or use a SCRIPT to get what your want (and the latter is probably an easier solution).
-Alan
Everett, Vernon wrote:Hi Henrik Thanks for the reply. Yes, this is the default, and is set that way on our server. However, looking at my post again, I realise I did not adequately clarify what I was looking for. When an alert goes out in an email, the subject is normally something like this Hobbit [70385] hostname:testname CRITICAL (RED) We want to be rid of the ACK-CODE in the subject, so we end up with something 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. Regards Vernon -----Original Message----- From: Henrik Størner [mailto:user-ce4a2c883f75@xymon.invalid] Sent: Thursday, 22 October 2009 4:20 AM To: user-ae9b8668bcde@xymon.invalid Subject: Re: [hobbit] Alert mails with the Ack-Code In <user-9a87762a7cf0@xymon.invalid> "Everett, Vernon" <user-9da1a1882f49@xymon.invalid> writes:Is there an easy way to send alerts without the ACK-CODE? By "easy", I mean not hacking the source code, and not redirecting all mail= s through a custom script.Um, yes - the bb-ack webpage does that, if you add "--no-pin" to CGI_ACK_OPTS in hobbitcgi.cfg. But I think that's the default already. Henrik NOTICE: This email and any attachments are confidential. They may contain legally privileged information or copyright material. You must not read, copy, use or disclose them without authorisation. If you are not an intended recipient, please contact us at once by return email and then delete both messages and all attachments.
NOTICE: This email and any attachments are confidential. They may contain legally privileged information or copyright material. You must not read, copy, use or disclose them without authorisation. If you are not an intended recipient, please contact us at once by return email and then delete both messages and all attachments.
list Henrik Størner
▸
In <user-f83ecc7e1da9@xymon.invalid> "Everett, Vernon" <user-9da1a1882f49@xymon.invalid> 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