-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CTOR-934-plugin-network-3-com-snmp (#5217)
Refs: CTOR-934
- Loading branch information
1 parent
6515b55
commit f6cd371
Showing
4 changed files
with
38 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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;;;; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
2c | ||
3COM | ||
3CX | ||
--3cx-version | ||
--add-fc-fe-errors | ||
|