added rvitals

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10638 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
cjhardee 2011-09-26 16:51:19 +00:00
parent 6ac9136b7e
commit 72cdbc272b

View File

@ -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