From 2f4020a0b38c93e47d59bc7743d891f6029756a0 Mon Sep 17 00:00:00 2001 From: saiprakash Date: Fri, 24 Oct 2008 20:19:06 +0000 Subject: [PATCH] modified Ganglia plugin git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2388 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/monitoring/gangliamon.pm | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/xCAT-server/lib/xcat/monitoring/gangliamon.pm b/xCAT-server/lib/xcat/monitoring/gangliamon.pm index 4261a7544..623558f22 100755 --- a/xCAT-server/lib/xcat/monitoring/gangliamon.pm +++ b/xCAT-server/lib/xcat/monitoring/gangliamon.pm @@ -55,7 +55,7 @@ sub start my $localhost=hostname(); print "local host is $localhost \n"; print "starting gmond locally \n"; - my $res_gmond = `/etc/init.d/gmond restart 2>&1`; + my $res_gmond = `/etc/rc.d/init.d/gmond restart 2>&1`; print "res_gmond=$res_gmond\n"; print "the result gmond before is $? \n"; if ($?) @@ -76,7 +76,7 @@ sub start } print "starting gmetad locally \n"; - my $res_gmetad = `/etc/init.d/gmetad restart 2>&1`; + my $res_gmetad = `/etc/rc.d/init.d/gmetad restart 2>&1`; print "the result gmetad before is $? \n"; if ($?) { @@ -138,8 +138,8 @@ sub start print "children:@children\n"; my $rec = join(',',@children); print "the string is $rec"; - print "XCATBYPASS=Y $::XCATROOT/bin/xdsh $rec /etc/init.d/gmond restart 2>& \n"; - my $result=`XCATBYPASS=Y $::XCATROOT/bin/xdsh $rec /etc/init.d/gmond restart 2>&1`; + print "XCATBYPASS=Y $::XCATROOT/bin/xdsh $rec /etc/rc.d/init.d/gmond restart 2>& \n"; + my $result=`XCATBYPASS=Y $::XCATROOT/bin/xdsh $rec /etc/rc.d/init.d/gmond restart 2>&1`; if ($result) { if ($callback) @@ -994,7 +994,7 @@ sub stop my $localhost=hostname(); print "local host is $localhost \n"; print "stopping gmond locally \n"; - my $res_gmond = `/etc/init.d/gmond stop 2>&1`; + my $res_gmond = `/etc/rc.d/init.d/gmond stop 2>&1`; print "res_gmond=$res_gmond\n"; print "the result gmond before is $? \n"; if ($?) @@ -1015,7 +1015,7 @@ sub stop } print "stopping gmetad locally \n"; - my $res_gmetad = `/etc/init.d/gmetad stop 2>&1`; + my $res_gmetad = `/etc/rc.d/init.d/gmetad stop 2>&1`; print "the result gmetad before is $? \n"; if ($?) { @@ -1075,8 +1075,8 @@ sub stop print "children:@children\n"; my $rec = join(',',@children); print "the string is $rec"; - print "XCATBYPASS=Y $::XCATROOT/bin/xdsh $rec /etc/init.d/gmond stop 2>& \n"; - my $result=`XCATBYPASS=Y $::XCATROOT/bin/xdsh $rec /etc/init.d/gmond stop 2>&1`; + print "XCATBYPASS=Y $::XCATROOT/bin/xdsh $rec /etc/rc.d/init.d/gmond stop 2>& \n"; + my $result=`XCATBYPASS=Y $::XCATROOT/bin/xdsh $rec /etc/rc.d/init.d/gmond stop 2>&1`; if ($result) { if ($callback)