Start or stop monitoring on both xCAT and remote nodes

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11514 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
phamt 2012-02-08 16:01:32 +00:00
parent 612ad8c52d
commit f3b97c1336

View File

@ -315,18 +315,32 @@ function toggleMonitor() {
if (status == 'Off') {
command = 'monstop' ;
}
// Start or stop monitoring on xCAT
$.ajax({
url : 'lib/cmd.php',
dataType : 'json',
data : {
cmd : command,
tgt : '',
args : name + ';-r',
msg : name + ' switched ' + status
args : name + '',
msg : ''
},
success : updateMonStatus
});
success : function(data) {
// Start or stop monitoring on remote nodes
$.ajax({
url : 'lib/cmd.php',
dataType : 'json',
data : {
cmd : command,
tgt : '',
args : name + ';-r',
msg : name + ' switched ' + status
},
success : updateMonStatus
});
}
});
}
/**