From f3b97c13366f816500cbdb0eebb6b2cba3a3ca2e Mon Sep 17 00:00:00 2001 From: phamt Date: Wed, 8 Feb 2012 16:01:32 +0000 Subject: [PATCH] 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 --- xCAT-UI/js/monitor/monitor.js | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/xCAT-UI/js/monitor/monitor.js b/xCAT-UI/js/monitor/monitor.js index c7b6daaf3..92c3a3681 100644 --- a/xCAT-UI/js/monitor/monitor.js +++ b/xCAT-UI/js/monitor/monitor.js @@ -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 + }); + } + }); } /**