[hobbit] Question on Alert Notifications

Asif Iqbal iqbala-hobbit at qwestip.net
Wed Nov 23 20:31:00 CET 2005


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



More information about the Xymon mailing list