<div>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.  
</div>
<div><br> </div>
<div><span class="gmail_quote">On 11/23/05, <b class="gmail_sendername">Asif Iqbal</b> <<a href="mailto:iqbala-hobbit@qwestip.net">iqbala-hobbit@qwestip.net</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">OR you could use SCRIPT feature for alert and there you could have<br>something like this<br><br>echo "${BBALPHAMSG}" | mailx -s "[$ACKCODE] $BBHOSTSVC CRITICAL (RED)" $RCPT
<br><br>This way you are not getting rid of 'Hobbit' word from everywhere and<br>why would you do that anyway? It actually is easier to filter all the<br>email with 'Hobbit' and save it on a separate folder. And if you are a
<br>windows user, with Google Desktop, you can later search for all 'Hobbit' alerts<br>and specific hostname or may be service name in 1 hundredth of a sec.<br><br>I know NOTICE type alerts will still have the 'Hobbit' word if you go
<br>this way.<br><br>Thanks<br><br>On Wed, Nov 23, 2005 at 08:20:38AM, Bill Perez wrote:<br>> Thanks Henrik!<br>><br>> On 11/23/05, Henrik Stoerner <<a href="mailto:henrik@hswn.dk">henrik@hswn.dk</a>> wrote:
<br>> ><br>> > On Wed, Nov 23, 2005 at 07:13:00AM -0500, Bill Perez wrote:<br>> > > Thanks Thomas.<br>> > > I am trying to find out how to take the word 'Hobbit' out of the alert<br>> > > subject and didn't find any info on that in the Configuring Alerts page.
<br>> ><br>> > That's because it isn't configurable. You'll have to edit the<br>> > hobbit-4.1.2p1/hobbitd/do_alert.c file - look for the "message_subject"<br>> > routine. In there you'll find some code that goes like this:
<br>> ><br>> >        switch (alert->state) {<br>> >          case A_PAGING:<br>> >          case A_ACKED:<br>> >                subjfmt = (include_configid ? "Hobbit [%d] %s:%s %s<br>
> > [cfid:%d]" :  "Hobbit [%d] %s:%s %s");<br>> ><br>> > The "%s" and "%d" are placeholders for the hostname, testname etc. But<br>> > if you just want to delete the word "Hobbit", you can just delete it.
<br>> > Run "make", stop Hobbit, run "make install" and start Hobbit after the<br>> > change.<br>> ><br>> ><br>> > Regards,<br>> > Henrik<br>> ><br>> ><br>
> > To unsubscribe from the hobbit list, send an e-mail to<br>> > <a href="mailto:hobbit-unsubscribe@hswn.dk">hobbit-unsubscribe@hswn.dk</a><br>> ><br>> ><br>> ><br><br>--<br>Asif Iqbal<br>PGP Key: 0xE62693C5 KeyServer: 
<a href="http://pgp.mit.edu">pgp.mit.edu</a><br>"..there are two kinds of people: those who work and those who take the credit...try<br>to be in the first group;...less competition there."  - Indira Gandhi<br><br>
To unsubscribe from the hobbit list, send an e-mail to<br><a href="mailto:hobbit-unsubscribe@hswn.dk">hobbit-unsubscribe@hswn.dk</a><br><br><br></blockquote></div><br>