[hobbit] Hobbit 4.0.4 released - Alert Script Issue

Andy France Andy at zespri.com
Mon May 30 23:43:40 CEST 2005







Henrik Stoerner wrote on 29/05/2005 23:19:02:

> Version 4.0.4 is now available on SourceForge:
> https://sourceforge.net/project/showfiles.php?
> group_id=128058&release_id=330776

> This fixes the bugs reported since Hobbit 4.0.3 was released.

> Changes from 4.0.3 -> 4.0.4
> ---------------------------

> Bugfixes:
> * Nested macros in hobbit-alerts.cfg were not working.
> * Using TAB's in hobbit-alerts.cfg could confuse the alert module.
> * hobbitd_alert's --test option now determines the page-name for
> a host automatically. It will also now accept a time-parameter
> to simulate how alerts are processed at specific time-of-day.

Since updating to 4.0.4, I have had a couple of "reds" which have not
generated all of my alerts.

I have converted my hobbit-alerts.cfg file to use macros, and the
hobbitd_alert --test correctly expands all of the results, but only the
emails were executued and the scripts were not.

Relevant pieces from hobbit-alerts.cfg are:

  $MAIL_ANDY_STD=MAIL andy REPEAT=60m RECOVERED NOTICE
  $MAIL_GAYNA_STD=MAIL gayna REPEAT=60m RECOVERED
  $MAIL_INFORMIX_INF=MAIL informix REPEAT=60m RECOVERED
SERVICE=drstatus,informix
  $PAGE_SUPPORT_STD=SCRIPT /export/home/hobbit/bin/qpage support-pg
REPEAT=60m RECOVERED FORMAT=SMS COLOR=red
  $ETXT_ANDY_STD=SCRIPT /export/home/hobbit/bin/etxt andy-ph RECOVERED
FORMAT=SMS COLOR=red

  HOST=km-akl5,unakl5
        $MAIL_ANDY_STD
        $MAIL_GAYNA_STD
        $MAIL_INFORMIX_INF
        $PAGE_SUPPORT_STD
        $ETXT_ANDY_STD

And the test output shows:

  bash-3.00$ ~/server/bin/bbcmd hobbitd_alert --test unakl5 cpu | grep
alert
  2005-05-31 09:30:15 Using default environment file
/export/home/hobbit/server/etc/hobbitserver.cfg
  00024460 2005-05-31 09:30:15 send_alert unakl5:cpu state Paging
  00024460 2005-05-31 09:30:15 Mail alert with command '/opt/csw/bin/nail
-s "Hobbit [12345] unakl5:cpu CRITICAL (RED)" andy'
  00024460 2005-05-31 09:30:15 Mail alert with command '/opt/csw/bin/nail
-s "Hobbit [12345] unakl5:cpu CRITICAL (RED)" gayna'
  00024460 2005-05-31 09:30:15 Script alert with command
'/export/home/hobbit/bin/qpage' and recipient support-pg
  00024460 2005-05-31 09:30:15 Script alert with command
'/export/home/hobbit/bin/etxt' and recipient andy-ph

But, as mentioned, the qpage and etxt scripts did not get executed.

I can try rolling back to my previous patched 4.0.3 version if required -
but would obviously prefer to see if there is an issue with 4.0.4.

Thanks and regards,
Andy.

#####################################################################################

This email is intended for the person to whom it is addressed
only. If you are not the intended recipient, do not read, copy
or use the contents in any way. The opinions expressed may not
necessarily reflect those of ZESPRI Group of Companies ('ZESPRI').

While every effort has been made to verify the information
contained herein, ZESPRI does not make any representations 
as to the accuracy of the information or to the performance
of any data, information or the products mentioned herein.
ZESPRI will not accept liability for any losses, damage or
consequence, however, resulting directly or indirectly from
the use of this e-mail/attachments.
#####################################################################################



More information about the Xymon mailing list