From 7c2453afb697a53c40d74d44df4fedcbd93d45d2 Mon Sep 17 00:00:00 2001 From: linggao Date: Thu, 29 Nov 2007 20:01:00 +0000 Subject: [PATCH] monor change on node status monitoring git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@100 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server-2.0/usr/lib/xcat/monitoring/xcatmon.pm | 6 ++---- xCAT-server-2.0/usr/sbin/xcatnodemon | 3 ++- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/xCAT-server-2.0/usr/lib/xcat/monitoring/xcatmon.pm b/xCAT-server-2.0/usr/lib/xcat/monitoring/xcatmon.pm index 8bba5555f..8e7390d1a 100644 --- a/xCAT-server-2.0/usr/lib/xcat/monitoring/xcatmon.pm +++ b/xCAT-server-2.0/usr/lib/xcat/monitoring/xcatmon.pm @@ -8,16 +8,14 @@ package xCAT_monitoring::xcatmon; use xCAT::GlobalDef; use xCAT::Utils; -#caches the current node status. (serve1=>{active=>[node1,node3...], unreachable=>[node2, node4..]},....) - -$flag; 1; #------------------------------------------------------------------------------- =head1 xCAT_monitoring:xcatmon =head2 Package Description This is a xCAT monitoring plugin. The only thing that this plug-in does is - the node monitoring. + the node monitoring. To activate it simply do the following command: + chtab pname=xCAT monitoring.nodestatmon=Y =cut #------------------------------------------------------------------------------- diff --git a/xCAT-server-2.0/usr/sbin/xcatnodemon b/xCAT-server-2.0/usr/sbin/xcatnodemon index ae4c442c2..8cba57a5e 100755 --- a/xCAT-server-2.0/usr/sbin/xcatnodemon +++ b/xCAT-server-2.0/usr/sbin/xcatnodemon @@ -7,7 +7,8 @@ use xCAT::GlobalDef; require("/usr/lib/xcat/monitoring/monitorctrl.pm"); ################################################################# # This script is used as a cron job by the xCAT monitoring plug-in -# to monitor the node status +# to monitor the node status. To activate it, simply do +# chtab pname=xCAT monitoring.nodestatmon=Y ################################################################## ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)=localtime(time);