My favorites | Sign in
Project Logo
                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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")
}'

Show details Hide details

Change log

r4 by luis.peralta on Nov 05, 2008   Diff
apache log client contributed by pablo
Go to: 
Project members, sign in to write a code review

Older revisions

All revisions of this file

File info

Size: 374 bytes, 20 lines

File properties

svn:executable
*
Hosted by Google Code