| 1 |
*** Settings *** |
| 2 |
Documentation Network citrix netscaler health |
| 3 |
|
| 4 |
Resource ${CURDIR}${/}..${/}..${/}..${/}..${/}..${/}..${/}resources/import.resource |
| 5 |
|
| 6 |
Test Timeout 120s |
| 7 |
|
| 8 |
|
| 9 |
*** Variables *** |
| 10 |
${CMD} ${CENTREON_PLUGINS} --plugin=network::citrix::netscaler::snmp::plugin |
| 11 |
|
| 12 |
|
| 13 |
*** Test Cases *** |
| 14 |
check psu components ${tc}/2 |
| 15 |
[Documentation] mib don't seem set on the meaning of .1.3.6.1.4.1.5951.4.1.1.41.7.1.2, some client report 0 = normal and other 0 = not supported. |
| 16 |
[Tags] network citrix snmp |
| 17 |
${command} Catenate |
| 18 |
... ${CMD} |
| 19 |
... --mode=health |
| 20 |
... --hostname=${HOSTNAME} |
| 21 |
... --snmp-port=${SNMPPORT} |
| 22 |
... --snmp-community='network/citrix/netscaler/snmp/mode/components/${community}' |
| 23 |
... --component=psu |
| 24 |
... --alternative-status-mapping='${alternative_status_mapping}' |
| 25 |
|
| 26 |
Ctn Run Command And Check Result As Strings ${command} ${expected_result} |
| 27 |
|
| 28 |
Examples: tc alternative_status_mapping community expected_result -- |
| 29 |
... 1 true psu-citrix-v13 OK: All 4 components are ok [4/4 psus]. | 'count_psu'=4;;;; |
| 30 |
... 2 ${EMPTY} psu-citrix-v13 UNKNOWN: Power supply '1' status is 'not supported' - Power supply '2' status is 'not supported' - Power supply '3' status is 'not supported' - Power supply '4' status is 'not supported' | 'count_psu'=4;;;; |