From bae82255cf70c2fad6ca76ae2ffa1509db510f8a Mon Sep 17 00:00:00 2001 From: phamt Date: Fri, 7 Oct 2011 20:10:32 +0000 Subject: [PATCH] Install Ganglia automatically in self-service page. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10713 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-UI/xcat/plugins/webportal.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/xCAT-UI/xcat/plugins/webportal.pm b/xCAT-UI/xcat/plugins/webportal.pm index dd854fa64..e87aa2d3a 100644 --- a/xCAT-UI/xcat/plugins/webportal.pm +++ b/xCAT-UI/xcat/plugins/webportal.pm @@ -169,7 +169,7 @@ sub provzlinux { println( $callback, "$out" ); # Set nodetype definitions - $out = `chtab node=$node noderes.netboot=zvm nodetype.os=$os nodetype.arch=$arch nodetype.profile=$profile nodetype.comments="owner:$owner"`; + $out = `chtab node=$node noderes.netboot=zvm nodetype.nodetype=osi nodetype.provmethod=install nodetype.os=$os nodetype.arch=$arch nodetype.profile=$profile nodetype.comments="owner:$owner"`; # Update hosts table and DNS `makehosts`; @@ -275,10 +275,13 @@ sub provzlinux { return; } + # Configure Ganglia monitoring + $out = `moncfg gangliamon $node -r`; + # Show node information, e.g. IP, hostname, and root password $out = `lsdef $node | egrep "ip=|hostnames="`; my $rootpw = getsysrootpw(); - println( $callback, "Your virtual machine is ready. It may take a few minutes before you can logon using VNC. Below is your VM attributes." ); + println( $callback, "Your virtual machine is ready. It may take a few minutes before you can logon using VNC ($node:1). Below is your VM attributes." ); println( $callback, "$out" ); println( $callback, " rootpw = $rootpw" ); }