diff --git a/xCAT-server/lib/xcat/monitoring/samples/templatemon.pm b/xCAT-server/lib/xcat/monitoring/samples/templatemon.pm index 3beb64d28..176ef1af7 100644 --- a/xCAT-server/lib/xcat/monitoring/samples/templatemon.pm +++ b/xCAT-server/lib/xcat/monitoring/samples/templatemon.pm @@ -156,7 +156,7 @@ sub stopNodeStatusMon { to the xCAT cluster. It should add the nodes into the product for monitoring. Arguments: nodes --nodes to be added. It is a pointer to an array. If the next argument is - 1, each element is a ref to an array of [nodes, nodetype, status]. For example: + 1, each element is a ref to an array of [nodes, status]. For example: [['node1', 'active'], ['node2', 'booting']..]. if the next argument is 0, each element is a node name to be added. boolean -- 1, or 0. @@ -192,7 +192,7 @@ sub addNodes { from the xCAT cluster. It should remove the nodes from the product for monitoring. Arguments: nodes --nodes to be added. It is a pointer to an array. If the next argument is - 1, each element is a ref to an array of [nodes, nodetype, status]. For example: + 1, each element is a ref to an array of [nodes, status]. For example: [['node1', 'active'], ['node2', 'booting']..]. if the next argument is 0, each element is a node name to be added. boolean -- 1, or 0. diff --git a/xCAT-server/lib/xcat/monitoring/snmpmon.pm b/xCAT-server/lib/xcat/monitoring/snmpmon.pm index 3d23ea511..842739bce 100644 --- a/xCAT-server/lib/xcat/monitoring/snmpmon.pm +++ b/xCAT-server/lib/xcat/monitoring/snmpmon.pm @@ -38,11 +38,6 @@ use xCAT_monitoring::monitorctrl; sub start { #print "snmpmon::start called\n"; - $noderef=shift; - if ($noderef =~ /xCAT_monitoring::snmpmon/) { - $noderef=shift; - } - # do not turn it on on the service node #if (xCAT::Utils->isServiceNode()) { return (0, "");} @@ -530,7 +525,7 @@ sub stopNodeStatusMon { This function adds the nodes into the SNMP domain. Arguments: nodes --nodes to be added. It is a pointer to an array. If the next argument is - 1, each element is a ref to an array of [nodes, nodetype, status]. For example: + 1, each element is a ref to an array of [nodes, status]. For example: [['node1', 'active'], ['node2', 'booting']..]. if the next argument is 0, each element is a node name to be added. boolean -- 1, or 0. @@ -562,7 +557,7 @@ sub addNodes { This function removes the nodes from the SNMP domain. Arguments: nodes --nodes to be added. It is a pointer to an array. If the next argument is - 1, each element is a ref to an array of [nodes, nodetype, status]. For example: + 1, each element is a ref to an array of [nodes, status]. For example: [['node1', 'active'], ['node2', 'booting']..]. if the next argument is 0, each element is a node name to be added. boolean -- 1, or 0. diff --git a/xCAT-server/lib/xcat/monitoring/xcatmon.pm b/xCAT-server/lib/xcat/monitoring/xcatmon.pm index 5602ae676..c3c7b85a5 100644 --- a/xCAT-server/lib/xcat/monitoring/xcatmon.pm +++ b/xCAT-server/lib/xcat/monitoring/xcatmon.pm @@ -167,7 +167,7 @@ sub stopNodeStatusMon { to the xCAT cluster. It should add the nodes into the product for monitoring. Arguments: nodes --nodes to be added. It is a pointer to an array. If the next argument is - 1, each element is a ref to an array of [nodes, nodetype, status]. For example: + 1, each element is a ref to an array of [nodes, status]. For example: [['node1', 'active'], ['node2', 'booting']..]. if the next argument is 0, each element is a node name to be added. boolean -- 1, or 0. @@ -188,7 +188,7 @@ sub addNodes { from the xCAT cluster. It should remove the nodes from the product for monitoring. Arguments: nodes --nodes to be added. It is a pointer to an array. If the next argument is - 1, each element is a ref to an array of [nodes, nodetype, status]. For example: + 1, each element is a ref to an array of [nodes, status]. For example: [['node1', 'active'], ['node2', 'booting']..]. if the next argument is 0, each element is a node name to be added. boolean -- 1, or 0.