| 1 |
*** Settings *** |
| 2 |
Documentation Check EMC DataDomain in SNMP |
| 3 |
|
| 4 |
Resource ${CURDIR}${/}..${/}..${/}..${/}..${/}resources/import.resource |
| 5 |
|
| 6 |
Suite Setup Ctn Generic Suite Setup |
| 7 |
Test Timeout 120s |
| 8 |
|
| 9 |
|
| 10 |
*** Variables *** |
| 11 |
${CMD} ${CENTREON_PLUGINS} --plugin=storage::emc::datadomain::snmp::plugin |
| 12 |
|
| 13 |
|
| 14 |
*** Test Cases *** |
| 15 |
alerts ${tc} |
| 16 |
[Tags] snmp storage |
| 17 |
${command} Catenate |
| 18 |
... ${CMD} |
| 19 |
... --mode=alerts |
| 20 |
... --hostname=${HOSTNAME} |
| 21 |
... --snmp-version=${SNMPVERSION} |
| 22 |
... --snmp-port=${SNMPPORT} |
| 23 |
... --snmp-community=storage/emc/datadomain/snmp/slim-datadomain |
| 24 |
... --snmp-timeout=1 |
| 25 |
... ${extra_options} |
| 26 |
|
| 27 |
Ctn Run Command And Check Result As Strings ${command} ${expected_result} |
| 28 |
|
| 29 |
Examples: tc extra_options expected_result -- |
| 30 |
... 1 --truly-alert='\\\%{severity} =~ /emergency|alert|warning|critical/i' OK: current alerts: 0 | 'alerts.current.count'=0;;;0; |
| 31 |
... 2 --warning-alerts-current --critical-alerts-current OK: current alerts: 0 | 'alerts.current.count'=0;;;0; |
| 32 |
... 3 --display-alerts OK: current alerts: 0 | 'alerts.current.count'=0;;;0; |