[hobbit] Message alerts

Kevin.Hanrahan at novainfo.com Kevin.Hanrahan at novainfo.com
Sat Mar 19 23:25:22 CET 2005


Nice idea...I will try it. Thanks

KEvin

-----Original Message-----
From: Asif Iqbal [mailto:iqbala-hobbit at qwestip.net] 
Sent: Saturday, March 19, 2005 2:03 PM
To: 'hobbit at hswn.dk'
Subject: Re: [hobbit] Message alerts


On Sat, Mar 19, 2005 at 12:03:51PM, Kevin Hanrahan wrote:
> I hate the Windows event log! Is ther a way to centralize the "ignore 
> message" function in Hobbit? We get hammered with event log messages 
> about

I am not sure if I understood your email but how about something like this

cat script.sh

  #!/bin/sh

  PATTERN_FILE=${BBSERVERROOT}/server/etc/patterns

  echo "${BBALPHAMSG}" | $EGREP -f $PATTERN_FILE > /dev/null 2>&1

  [ "$?" -ne 0 ] && {
  echo "${BBALPHAMSG}" | /bin/mailx -s "BB [$ACKCODE] $BBHOSTSVC is RED"
$RCPT
  }

  exit 0


PATTERN file could be list of patterns--that can be put each on a separate
line--that you don't want to be paged for.

Then SCRIPT /path/to/script.sh user at here.com FORMAT=TEXT COLOR=red 
on your hobbit-alerts.cfg should may work.

Again, I am answering based on what I assume you like to do. I might be
totally wrong about your intension

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

To unsubscribe from the hobbit list, send an e-mail to
hobbit-unsubscribe at hswn.dk


Note:  The information contained in this email and in any attachments is
intended only for the person or entity to which it is addressed and may
contain confidential and/or privileged material.  Any review,
retransmission, dissemination or other use of, or taking of any action in
reliance upon, this information by persons or entities other than the
intended recipient is prohibited.  The recipient should check this email and
any attachments for the presence of viruses.  Sender accepts no liability
for any damages caused by any virus transmitted by this email. If you have
received this email in error, please notify us immediately by replying to
the message and delete the email from your computer.  This e-mail is and any
response to it will be unencrypted and, therefore, potentially unsecure.
Thank you.  NOVA Information Systems, Inc.



More information about the Xymon mailing list