summaryrefslogtreecommitdiffstats
path: root/abs/core
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2014-01-22 20:43:05 (GMT)
committerBritney Fransen <brfransen@gmail.com>2014-01-22 20:43:05 (GMT)
commit28f520da7edd5e40c254c8db73a8ffe7accfda05 (patch)
tree2f7df71dc09005d7047b153fa1dfa19e144db593 /abs/core
parent3aa2501acb56f292240c46e40c0f2fe49b1e3921 (diff)
downloadlinhes_pkgbuild-28f520da7edd5e40c254c8db73a8ffe7accfda05.zip
linhes_pkgbuild-28f520da7edd5e40c254c8db73a8ffe7accfda05.tar.gz
linhes_pkgbuild-28f520da7edd5e40c254c8db73a8ffe7accfda05.tar.bz2
xymon: login_notify.sh: remove old alerts that didn't get removed. closes #955
Diffstat (limited to 'abs/core')
-rwxr-xr-xabs/core/xymon/PKGBUILD4
-rw-r--r--abs/core/xymon/login_notify.sh6
2 files changed, 5 insertions, 5 deletions
diff --git a/abs/core/xymon/PKGBUILD b/abs/core/xymon/PKGBUILD
index 8163f32..7293814 100755
--- a/abs/core/xymon/PKGBUILD
+++ b/abs/core/xymon/PKGBUILD
@@ -1,7 +1,7 @@
pkgbase=xymon
pkgname=(xymonserver xymonclient)
pkgver=4.3.5
-pkgrel=55
+pkgrel=56
pkgdesc="Hobbit is a system for monitoring servers and networks. "
license="GPL"
arch=('i686' 'x86_64')
@@ -148,7 +148,7 @@ md5sums=('31923ec126fe1c264fceb459d2175161'
'0469d775db9fdd18ea95dd41937ada82'
'0757294eec13771f8e63da23cf066796'
'270e13da6cbc9d49079d994edaa71e64'
- '4bc37b700146e4f4206a729c835903b0'
+ '22d4c9065fd959efe82f121dcb511305'
'9af2ad60ac4c3cb653754618f603e311'
'b8eb10070f2ad6a245d3da15091694ba'
'b4e8641e97e6b689dbc634af785e6799'
diff --git a/abs/core/xymon/login_notify.sh b/abs/core/xymon/login_notify.sh
index 8c17342..be81fea 100644
--- a/abs/core/xymon/login_notify.sh
+++ b/abs/core/xymon/login_notify.sh
@@ -57,8 +57,8 @@ else
echo "HOST: $BBHOSTNAME" >> $NOTICE_DIR/$BBHOSTSVC
echo "ACKCODE: $ACKCODE" >> $NOTICE_DIR/$BBHOSTSVC
echo "COLOR: $BBCOLORLEVEL" >> $NOTICE_DIR/$BBHOSTSVC
- echo "MSG $BBALPHAMSG" >> $NOTICE_DIR/$BBHOSTSVC
+ echo "MSG $BBALPHAMSG" >> $NOTICE_DIR/$BBHOSTSVC
fi
-
-
+#remove old alerts that didn't recover
+find $NOTICE_DIR -mmin +4 -type f -exec rm -f {} \;