diff --git a/src/network/3com/snmp/plugin.pm b/src/network/3com/snmp/plugin.pm index 2ae90ce22f..6144cc205e 100644 --- a/src/network/3com/snmp/plugin.pm +++ b/src/network/3com/snmp/plugin.pm @@ -16,7 +16,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# + package network::3com::snmp::plugin; @@ -47,6 +47,7 @@ __END__ =head1 PLUGIN DESCRIPTION -Check 3com equipment (old legacy. Maybe you should use 'network::h3c' plugin) in SNMP. +Monitors 3COM devices using the SNMP protocol. +These devices are not are not available for sale any more. You should probably use the 'network::h3c' plugin instead. =cut diff --git a/tests/network/3com/snmp/3com-hardware-fake.snmpwalk b/tests/network/3com/snmp/3com-hardware-fake.snmpwalk new file mode 100644 index 0000000000..70a88c65ad --- /dev/null +++ b/tests/network/3com/snmp/3com-hardware-fake.snmpwalk @@ -0,0 +1,4 @@ +.1.3.6.1.4.1.43.45.1.2.23.1.9.1.1.1.1.65536 = INTEGER: 65536 +.1.3.6.1.4.1.43.45.1.2.23.1.9.1.1.1.1.196611 = INTEGER: 196611 +.1.3.6.1.4.1.43.45.1.2.23.1.9.1.1.1.2.65536 = INTEGER: 1 +.1.3.6.1.4.1.43.45.1.2.23.1.9.1.1.1.2.196611 = INTEGER: 2 \ No newline at end of file diff --git a/tests/network/3com/snmp/hardware.robot b/tests/network/3com/snmp/hardware.robot new file mode 100644 index 0000000000..7225e3b9a1 --- /dev/null +++ b/tests/network/3com/snmp/hardware.robot @@ -0,0 +1,30 @@ +*** Settings *** +Documentation Check 3com equipment (old legacy. Maybe you should use 'network::h3c'plugin) in SNMP. + +Resource ${CURDIR}${/}..${/}..${/}..${/}resources/import.resource + +Test Timeout 120s + + +*** Variables *** +${CMD} ${CENTREON_PLUGINS} --plugin=network::3com::snmp::plugin + + +*** Test Cases *** +hardware ${tc} + [Tags] network citrix snmp + ${command} Catenate + ... ${CMD} + ... --mode=hardware + ... --hostname=${HOSTNAME} + ... --snmp-port=${SNMPPORT} + ... --snmp-community=network/3com/snmp/3com-hardware-fake + ... ${extra_options} + + Ctn Run Command And Check Result As Strings ${command} ${expected_result} + + Examples: tc extra_options expected_result -- + ... 1 --verbose CRITICAL: Fan '196611' status is deactive | 'count_fan'=2;;;; ${SPACE} Checking power supplies ${SPACE}Checking fans ${SPACE}Fan '65536' status is 'active' [instance: 65536] ${SPACE}Fan '196611' status is 'deactive' [instance: 196611] + ... 2 --absent-problem=fan,2 CRITICAL: Fan '196611' status is deactive | 'count_fan'=2;;;; + ... 3 --no-component CRITICAL: Fan '196611' status is deactive | 'count_fan'=2;;;; + ... 4 --threshold-overload='' CRITICAL: Fan '196611' status is deactive | 'count_fan'=2;;;; \ No newline at end of file diff --git a/tests/resources/spellcheck/stopwords.txt b/tests/resources/spellcheck/stopwords.txt index 3014e2de6e..dec2236406 100644 --- a/tests/resources/spellcheck/stopwords.txt +++ b/tests/resources/spellcheck/stopwords.txt @@ -1,4 +1,5 @@ 2c +3COM 3CX --3cx-version --add-fc-fe-errors