fork of the original source from Google Code SVN

This commit is contained in:
ewall
2010-09-01 16:59:28 -04:00
commit 76b5ea9416
6 changed files with 510 additions and 0 deletions

20
contrib/access-log-client Normal file
View File

@@ -0,0 +1,20 @@
#!/bin/bash
# ibuddy access log client
# contributed by pablo muñoz-chapuli
#
HOST=nowhere.com
APACHE_LOG=/var/log/apache2/access.log
tail -f $APACHE_LOG | awk '
/ 200 / {
system("echo MACRO_GREEN|nc -u -q 0 $HOST 8888")
}
/ 404 / {
system("echo MACRO_RED|nc -u -q 0 $HOST 8888")
}
/ 500 / {
system("echo MACRO_BEAT2|nc -u -q 0 $HOST 8888")
}'