Hi, I was wondering if there was a way to modify the 'hobbit' name of the alert notifications and also if there was a way to modify the subject of the alerts in the email notifications. Thanks, Billie
The hobbit name is taken from your user entry so if you modify this to your liking this is what will be presented in the mails. For any modification of the e-mail contents its very well explained at the page "Configuring alerts" under the Help menu.
/Thomas
Bill Perez wrote:
Hi,
I was wondering if there was a way to modify the 'hobbit' name of the alert notifications and also if there was a way to modify the subject of the alerts in the email notifications.
Thanks, Billie
Thanks Thomas. I am trying to find out how to take the word 'Hobbit' out of the alert subject and didn't find any info on that in the Configuring Alerts page. I also searched the archives but didn't find anything there either, sorry if I'm just missing it. Could someone let me know how to modify the subject of all alerts and remove the word 'Hobbit' - this is because on our blackberrys we'll be able to see more of the description of what server is alerting and recovered.
Thanks much
On 11/11/05, Thomas <tlp-hobbit at holme-pedersen.dk> wrote:
The hobbit name is taken from your user entry so if you modify this to your liking this is what will be presented in the mails. For any modification of the e-mail contents its very well explained at the page "Configuring alerts" under the Help menu.
/Thomas
Bill Perez wrote:
Hi,
I was wondering if there was a way to modify the 'hobbit' name of the alert notifications and also if there was a way to modify the subject of the alerts in the email notifications.
Thanks, Billie
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
On Wed, Nov 23, 2005 at 07:13:00AM -0500, Bill Perez wrote:
Thanks Thomas. I am trying to find out how to take the word 'Hobbit' out of the alert subject and didn't find any info on that in the Configuring Alerts page.
That's because it isn't configurable. You'll have to edit the hobbit-4.1.2p1/hobbitd/do_alert.c file - look for the "message_subject" routine. In there you'll find some code that goes like this:
switch (alert->state) {
case A_PAGING:
case A_ACKED:
subjfmt = (include_configid ? "Hobbit [%d] %s:%s %s [cfid:%d]" : "Hobbit [%d] %s:%s %s");
The "%s" and "%d" are placeholders for the hostname, testname etc. But if you just want to delete the word "Hobbit", you can just delete it. Run "make", stop Hobbit, run "make install" and start Hobbit after the change.
Regards, Henrik
Thanks Henrik!
On 11/23/05, Henrik Stoerner <henrik at hswn.dk> wrote:
On Wed, Nov 23, 2005 at 07:13:00AM -0500, Bill Perez wrote:
Thanks Thomas. I am trying to find out how to take the word 'Hobbit' out of the alert subject and didn't find any info on that in the Configuring Alerts page.
That's because it isn't configurable. You'll have to edit the hobbit-4.1.2p1/hobbitd/do_alert.c file - look for the "message_subject" routine. In there you'll find some code that goes like this:
switch (alert->state) { case A_PAGING: case A_ACKED: subjfmt = (include_configid ? "Hobbit [%d] %s:%s %s[cfid:%d]" : "Hobbit [%d] %s:%s %s");
The "%s" and "%d" are placeholders for the hostname, testname etc. But if you just want to delete the word "Hobbit", you can just delete it. Run "make", stop Hobbit, run "make install" and start Hobbit after the change.
Regards, Henrik
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
OR you could use SCRIPT feature for alert and there you could have something like this
echo "${BBALPHAMSG}" | mailx -s "[$ACKCODE] $BBHOSTSVC CRITICAL (RED)" $RCPT
This way you are not getting rid of 'Hobbit' word from everywhere and why would you do that anyway? It actually is easier to filter all the email with 'Hobbit' and save it on a separate folder. And if you are a windows user, with Google Desktop, you can later search for all 'Hobbit' alerts and specific hostname or may be service name in 1 hundredth of a sec.
I know NOTICE type alerts will still have the 'Hobbit' word if you go this way.
Thanks
On Wed, Nov 23, 2005 at 08:20:38AM, Bill Perez wrote:
Thanks Henrik!
On 11/23/05, Henrik Stoerner <henrik at hswn.dk> wrote:
On Wed, Nov 23, 2005 at 07:13:00AM -0500, Bill Perez wrote:
Thanks Thomas. I am trying to find out how to take the word 'Hobbit' out of the alert subject and didn't find any info on that in the Configuring Alerts page.
That's because it isn't configurable. You'll have to edit the hobbit-4.1.2p1/hobbitd/do_alert.c file - look for the "message_subject" routine. In there you'll find some code that goes like this:
switch (alert->state) { case A_PAGING: case A_ACKED: subjfmt = (include_configid ? "Hobbit [%d] %s:%s %s[cfid:%d]" : "Hobbit [%d] %s:%s %s");
The "%s" and "%d" are placeholders for the hostname, testname etc. But if you just want to delete the word "Hobbit", you can just delete it. Run "make", stop Hobbit, run "make install" and start Hobbit after the change.
Regards, Henrik
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- 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
Thanks Asif. The only reason for removing the word Hobbit is that we all have blackberries and when reading an alert via blackberry, 'Hobbit' takes up 1/2 of the subject line and it would be more benefical for us to see the code\server name. It will also be easier to see on the blackberry which server has recovered if that server name is first in the subject line.
On 11/23/05, Asif Iqbal <iqbala-hobbit at qwestip.net> wrote:
OR you could use SCRIPT feature for alert and there you could have something like this
echo "${BBALPHAMSG}" | mailx -s "[$ACKCODE] $BBHOSTSVC CRITICAL (RED)" $RCPT
This way you are not getting rid of 'Hobbit' word from everywhere and why would you do that anyway? It actually is easier to filter all the email with 'Hobbit' and save it on a separate folder. And if you are a windows user, with Google Desktop, you can later search for all 'Hobbit' alerts and specific hostname or may be service name in 1 hundredth of a sec.
I know NOTICE type alerts will still have the 'Hobbit' word if you go this way.
Thanks
On Wed, Nov 23, 2005 at 08:20:38AM, Bill Perez wrote:
Thanks Henrik!
On 11/23/05, Henrik Stoerner <henrik at hswn.dk> wrote:
On Wed, Nov 23, 2005 at 07:13:00AM -0500, Bill Perez wrote:
Thanks Thomas. I am trying to find out how to take the word 'Hobbit' out of the
alert
subject and didn't find any info on that in the Configuring Alerts page.
That's because it isn't configurable. You'll have to edit the hobbit-4.1.2p1/hobbitd/do_alert.c file - look for the "message_subject" routine. In there you'll find some code that goes like this:
switch (alert->state) { case A_PAGING: case A_ACKED: subjfmt = (include_configid ? "Hobbit [%d] %s:%s %s[cfid:%d]" : "Hobbit [%d] %s:%s %s");
The "%s" and "%d" are placeholders for the hostname, testname etc. But if you just want to delete the word "Hobbit", you can just delete it. Run "make", stop Hobbit, run "make install" and start Hobbit after the change.
Regards, Henrik
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- 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
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
On Wed, Nov 23, 2005 at 02:12:47PM, Bill Perez wrote:
Thanks Asif. The only reason for removing the word Hobbit is that we all have blackberries and when reading an alert via blackberry, 'Hobbit' takes up 1/2 of the subject line and it would be more benefical for us to see the code\server name. It will also be easier to see on the blackberry which server has recovered if that server name is first in the subject line.
Well I am glad you mention blackberry. In that case you rather use SCRIPT with FORMAT=sms and it will not have any subject at all. Perfect for blackberry unless you like to delay from blackberry. In that case I think SCRIPT with FORMAT=plain would be best. So that way users who receive email will still see ususal alerts with 'Hobbit' and blackberry users will receive alerts without 'Hobbit'. I am assuming you have a separate MAIL line for blackberry users.
Thanks
On 11/23/05, Asif Iqbal <iqbala-hobbit at qwestip.net> wrote:
OR you could use SCRIPT feature for alert and there you could have something like this
echo "${BBALPHAMSG}" | mailx -s "[$ACKCODE] $BBHOSTSVC CRITICAL (RED)" $RCPT
This way you are not getting rid of 'Hobbit' word from everywhere and why would you do that anyway? It actually is easier to filter all the email with 'Hobbit' and save it on a separate folder. And if you are a windows user, with Google Desktop, you can later search for all 'Hobbit' alerts and specific hostname or may be service name in 1 hundredth of a sec.
I know NOTICE type alerts will still have the 'Hobbit' word if you go this way.
Thanks
On Wed, Nov 23, 2005 at 08:20:38AM, Bill Perez wrote:
Thanks Henrik!
On 11/23/05, Henrik Stoerner <henrik at hswn.dk> wrote:
On Wed, Nov 23, 2005 at 07:13:00AM -0500, Bill Perez wrote:
Thanks Thomas. I am trying to find out how to take the word 'Hobbit' out of the
alert
subject and didn't find any info on that in the Configuring Alerts page.
That's because it isn't configurable. You'll have to edit the hobbit-4.1.2p1/hobbitd/do_alert.c file - look for the "message_subject" routine. In there you'll find some code that goes like this:
switch (alert->state) { case A_PAGING: case A_ACKED: subjfmt = (include_configid ? "Hobbit [%d] %s:%s %s[cfid:%d]" : "Hobbit [%d] %s:%s %s");
The "%s" and "%d" are placeholders for the hostname, testname etc. But if you just want to delete the word "Hobbit", you can just delete it. Run "make", stop Hobbit, run "make install" and start Hobbit after the change.
Regards, Henrik
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- 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
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- 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
Would you please let us know how to edit Sender entry. It's "Hobbit <hobbit at name.domain.com>" in my environment.
On Wed, 23 Nov 2005 13:24:06 +0100 henrik at hswn.dk (Henrik Stoerner) wrote:
On Wed, Nov 23, 2005 at 07:13:00AM -0500, Bill Perez wrote:
Thanks Thomas. I am trying to find out how to take the word 'Hobbit' out of the alert subject and didn't find any info on that in the Configuring Alerts page.
That's because it isn't configurable. You'll have to edit the hobbit-4.1.2p1/hobbitd/do_alert.c file - look for the "message_subject" routine. In there you'll find some code that goes like this:
switch (alert->state) { case A_PAGING: case A_ACKED: subjfmt = (include_configid ? "Hobbit [%d] %s:%s %s [cfid:%d]" : "Hobbit [%d] %s:%s %s");The "%s" and "%d" are placeholders for the hostname, testname etc. But if you just want to delete the word "Hobbit", you can just delete it. Run "make", stop Hobbit, run "make install" and start Hobbit after the change.
Regards, Henrik
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
On Wed, Nov 30, 2005 at 01:54:17PM +0900, Takeshi Nishioka wrote:
Would you please let us know how to edit Sender entry. It's "Hobbit <hobbit at name.domain.com>" in my environment.
Hobbit just runs your systems "mail" utility to send mail. How that decides what to put in the From: header is outside Hobbit's control - typically it picks the "Full name" part of the hobbit users' entry in the /etc/passwd field, and adds the originating e-mail address <hobbit at your.domain>.
Henrik
participants (5)
-
billieperez@gmail.com
-
henrik@hswn.dk
-
iqbala-hobbit@qwestip.net
-
nishioka@rightnow.mitsui.co.jp
-
tlp-hobbit@holme-pedersen.dk