mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 03:12:30 +00:00 
			
		
		
		
	Configure ganglia in gangliastart().
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10753 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -436,7 +436,7 @@ sub web_gangliaconf() { | ||||
| 	 | ||||
| 	# Run the ganglia configuration script on node | ||||
| 	if ($nr) { | ||||
| 		$output = `moncfg gangliamon $nr -r`;	 | ||||
| 		$output = `moncfg gangliamon $nr -r`; | ||||
| 	} else { | ||||
| 		# If no node range is given, then assume all nodes | ||||
| 			 | ||||
| @@ -466,14 +466,23 @@ sub web_gangliastart() { | ||||
| 	my $info; | ||||
| 	my $output; | ||||
| 	 | ||||
| 	# Add gangliamon to the monitoring table (if not already) | ||||
| 	$output = `monadd gangliamon`; | ||||
| 	 | ||||
| 	# Start the gmond daemon on node | ||||
| 	if ($nr) { | ||||
| 		$output = `monstart gangliamon $nr -r`;	 | ||||
| 		$output = `moncfg gangliamon $nr -r`; | ||||
| 		$output .= `monstart gangliamon $nr -r`;	 | ||||
| 	} else { | ||||
| 		# If no node range is given, then assume all nodes | ||||
| 			 | ||||
| 		 | ||||
| 		# Handle localhost (this needs to be 1st) | ||||
| 		$output = `monstart gangliamon`; | ||||
| 		$output = `moncfg gangliamon`; | ||||
| 		# Handle remote nodes | ||||
| 		$output .= `moncfg gangliamon -r`; | ||||
| 		 | ||||
| 		# Handle localhost (this needs to be 1st) | ||||
| 		$output .= `monstart gangliamon`; | ||||
| 		# Handle remote nodes | ||||
| 		$output .= `monstart gangliamon -r`; | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user