diff options
author | James Meyer <james.meyer@operamail.com> | 2010-10-23 18:17:40 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2010-10-23 18:19:39 (GMT) |
commit | adbcf19958300e9b6598990184c8815b945ba0ee (patch) | |
tree | f4283c850ac0ac202c17e78a637ee7ca8147621b /abs/mv-core/hobbitmon/hobbit_notify.sh | |
parent | 61a68250df10d29b624650948484898334ff22d0 (diff) | |
download | linhes_pkgbuild-adbcf19958300e9b6598990184c8815b945ba0ee.zip linhes_pkgbuild-adbcf19958300e9b6598990184c8815b945ba0ee.tar.gz linhes_pkgbuild-adbcf19958300e9b6598990184c8815b945ba0ee.tar.bz2 |
Removed old core and extra from repo. Renamed -testing to core/extra. This will setup the base for the testing branch.
Diffstat (limited to 'abs/mv-core/hobbitmon/hobbit_notify.sh')
-rwxr-xr-x | abs/mv-core/hobbitmon/hobbit_notify.sh | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/abs/mv-core/hobbitmon/hobbit_notify.sh b/abs/mv-core/hobbitmon/hobbit_notify.sh deleted file mode 100755 index 7569e2a..0000000 --- a/abs/mv-core/hobbitmon/hobbit_notify.sh +++ /dev/null @@ -1,48 +0,0 @@ -#!/bin/bash -# -# BBCOLORLEVEL - The color of the alert: "red", "yellow" or "purple" -# BBALPHAMSG - The full text of the status log triggering the alert -# ACKCODE - The "cookie" that can be used to acknowledge the alert -# RCPT - The recipient, from the SCRIPT entry -# BBHOSTNAME - The name of the host that the alert is about -# MACHIP - The IP-address of the host that has a problem -# BBSVCNAME - The name of the service that the alert is about -# BBSVCNUM - The numeric code for the service. From SVCCODES definition. -# BBHOSTSVC - HOSTNAME.SERVICE that the alert is about. -# BBHOSTSVCCOMMAS - As BBHOSTSVC, but dots in the hostname replaced with commas -# BBNUMERIC - A 22-digit number made by BBSVCNUM, MACHIP and ACKCODE. -# RECOVERED - Is "1" if the service has recovered. -# DOWNSECS - Number of seconds the service has been down. -# DOWNSECSMSG - When recovered, holds the text "Event duration : N" where -echo $BBCOLORLEVEL > /tmp/hobbitout -echo $BBALPHAMSG >>/tmp/hobbitout -echo $RCPT >>/tmp/hobbitout -echo $BBHOSTNAME >>/tmp/hobbitout -echo $BBSVCNAME >>/tmp/hobbitout -echo $BBHOSTSVC >>/tmp/hobbitout - -#BBCOLORLEVEL=red -#BBCOLORLEVEL=yellow -#BBALPHAMSG="vmtest:disk red [751147]" -#BBHOSTNAME="vmtest" -#BBSVCNAME="disk" -#BBHOSTSVC="vmtest.disk" - -if [ x$BBSVCNAME = xdisk ] -then - case $BBCOLORLEVEL in - red ) - /usr/bin/notify.py ALT "$BBHOSTNAME disk is full" - ;; - yellow ) - - /usr/bin/notify.py PHN "$BBHOSTNAME disk almost full " - ;; - esac -fi - - - - - - |