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