Browse Source

monitor script now also watches rabbit.log

Ask Solem 16 years ago
parent
commit
6a548c761b
1 changed files with 10 additions and 0 deletions
  1. 10 0
      contrib/mac/watch-workers.applescript

+ 10 - 0
contrib/mac/watch-workers.applescript

@@ -1,3 +1,4 @@
+set broker to "h8.opera.com"
 set workers to {"h8.opera.com", "h9.opera.com", "h10.opera.com"}
 tell application "iTerm"
     activate
@@ -16,6 +17,15 @@ tell application "iTerm"
                 write text "ssh root@" & workerhost & " 'tail -f /var/log/celeryd.log'"
             end tell
         end repeat
+        set rabbit to (make new session at the end of sessions)
+        tell rabbit
+            set name to "rabbit.log"
+            set foreground color to "white"
+            set background color to "black"
+            set transparency to 0.1
+            exec command "/bin/sh -i"
+            write text "ssh root@" & broker & " 'tail -f /var/log/rabbitmq/rabbit.log'"
+        end tell
         tell the first session
             activate
         end tell