import repository from arizona
[raven.git] / apps / logmon / do_logmon.sh
1 #!/bin/bash
2
3 DIR=/home/arizona_beta
4
5 if [ -e /vsys/rsyncnodelogs.in ]; then
6     echo 1 > /vsys/rsyncnodelogs.in
7     echo sleeping for 30s while we wait for the copy
8     sleep 30
9 fi
10
11 ./analyze.py internal /dev/null
12
13 if [ -e $DIR/nm ]; then
14     ./analyze.py nodemanager $DIR/nm/nm $DIR/nm/nm.?.gz
15 fi
16
17 if [ -e $DIR/nodemanager ]; then
18     ./analyze.py nodemanager $DIR/nodemanager/nodemanager $DIR/nodemanager/nodemanager.?.gz $DIR/nodemanager/nodemanager.func 
19 fi
20
21 if [ -e $DIR/messages ]; then
22     ./analyze.py syslog $DIR/messages/messages $DIR/messages/messages.?
23 fi