From 72cdbc272b2ad73a471f5901f796a7117870e2cf Mon Sep 17 00:00:00 2001 From: cjhardee Date: Mon, 26 Sep 2011 16:51:19 +0000 Subject: [PATCH] added rvitals git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10638 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/xCAT-wsapi/xcatws.cgi | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/xCAT-server/xCAT-wsapi/xcatws.cgi b/xCAT-server/xCAT-wsapi/xcatws.cgi index 7f3eb87f5..cfd876f39 100755 --- a/xCAT-server/xCAT-wsapi/xcatws.cgi +++ b/xCAT-server/xCAT-wsapi/xcatws.cgi @@ -481,16 +481,13 @@ sub monitorsHandler{ } elsif(isPost()){ $request->{command} = 'monadd'; - push @args, $q->param('name'); if($q->param('nodeStatMon')){ push @args, '-n'; } #get the plug-in specific settings array - for ($q->param){ - if($_ ne /name/ && $_ ne /nodeStatMon/){ - push @args, '-s'; - push @args, "$_=".$q->param($_); - } + foreach ($q->param('pluginSetting')){ + push @args, '-s'; + push @args, $_; } } elsif(isDelete()){ @@ -655,6 +652,15 @@ sub nodesHandler{ $request->{command} = 'nodels'; push @args, 'nodepos'; } + elsif($subResource =~ "vitals"){ + $request->{command} = 'rvitals'; + if(defined $q->param('field')){ + push @args, $q->param('field'); + } + else{ + push @args, 'all'; + } + } else{ $request->{command} = 'nodels'; #if the table or field is specified in the URI