[hobbit] Message alerts

Asif Iqbal iqbala-hobbit at qwestip.net
Sat Mar 19 20:02:53 CET 2005


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



More information about the Xymon mailing list