[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Antiright-devel] antiright/ACE-desktop system.antiright ACE_host...
From: |
Jeffrey Bedard |
Subject: |
[Antiright-devel] antiright/ACE-desktop system.antiright ACE_host... |
Date: |
Sun, 22 Jul 2007 06:39:35 +0000 |
CVSROOT: /sources/antiright
Module name: antiright
Changes by: Jeffrey Bedard <jefbed> 07/07/22 06:39:35
Modified files:
ACE-desktop : system.antiright
Added files:
ACE-desktop : ACE_host_monitor.sh
Log message:
Added a multiple host monitoring system based on ssh.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/antiright/ACE-desktop/system.antiright?cvsroot=antiright&r1=1.13&r2=1.14
http://cvs.savannah.gnu.org/viewcvs/antiright/ACE-desktop/ACE_host_monitor.sh?cvsroot=antiright&rev=1.1
Patches:
Index: system.antiright
===================================================================
RCS file: /sources/antiright/antiright/ACE-desktop/system.antiright,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -b -r1.13 -r1.14
--- system.antiright 21 Jul 2007 16:16:39 -0000 1.13
+++ system.antiright 22 Jul 2007 06:39:35 -0000 1.14
@@ -43,4 +43,4 @@
Terminal: gshterm
roff_flags: -me
roff_file: ~/default.roff
-
+hosts_to_monitor: echo localhost heap compaq
Index: ACE_host_monitor.sh
===================================================================
RCS file: ACE_host_monitor.sh
diff -N ACE_host_monitor.sh
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ ACE_host_monitor.sh 22 Jul 2007 06:39:35 -0000 1.1
@@ -0,0 +1,43 @@
+#!/bin/sh
+# AntiRight (c) 2007 Jeffrey Bedard address@hidden
+
+# This file is part of AntiRight.
+
+# AntiRight is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of
+# the License, or (at your option) any later version. AntiRight
+# is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details. You should have
+# received a copy of the GNU General Public License along with
+# AntiRight; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+
+Main()
+{
+ local HOSTS="$(ACE hosts_to_monitor)"
+ local COMMAND="gtkshell -or 8 -og +0+0 -ou 15000"
+ local LOG_LINES=4
+ local LOG_FILE=/var/log/messages
+
+ if [ "$SSH_AGENT_PID" = "" ]; then
+ eval `ssh-agent`
+ ssh-add
+ fi
+ if [ "$1" = "--auth" ]; then
+ ssh-add
+ fi
+
+ for HOST in $HOSTS; do
+ local SSH_CMD="ssh $HOST /usr/bin/uptime && ssh $HOST\
+ /usr/bin/tail -n $LOG_LINES $LOG_FILE"
+ COMMAND="$COMMAND -al $HOST -aul \"$SSH_CMD\""
+ done
+ nice -n 20 sh -c "$COMMAND" &
+}
+#----
+
+Main $@
+
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Antiright-devel] antiright/ACE-desktop system.antiright ACE_host...,
Jeffrey Bedard <=