mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-09-02 23:48:24 +02:00
35 lines
1.5 KiB
Plaintext
35 lines
1.5 KiB
Plaintext
*** Settings ***
|
|
Resource ${CURDIR}${/}..${/}..${/}..${/}resources/import.resource
|
|
|
|
Suite Setup Ctn Generic Suite Setup
|
|
Test Timeout 120s
|
|
|
|
|
|
*** Variables ***
|
|
${CMD} ${CENTREON_PLUGINS} --plugin=os::aix::snmp::plugin
|
|
|
|
|
|
*** Test Cases ***
|
|
interfaces ${tc}
|
|
[Tags] os aix
|
|
${command} Catenate
|
|
... ${CMD}
|
|
... --mode=interfaces
|
|
... --hostname=${HOSTNAME}
|
|
... --snmp-version=${SNMPVERSION}
|
|
... --snmp-port=${SNMPPORT}
|
|
... --snmp-community=os/aix/snmp/slim_os-aix
|
|
... --snmp-timeout=5
|
|
... ${extra_options}
|
|
|
|
# first run to build cache
|
|
Run ${command}
|
|
|
|
Ctn Run Command And Check Result As Strings ${command} ${expected_result}
|
|
|
|
Examples: tc extra_options expected_result --
|
|
... 1 ${EMPTY} OK: Interface 'en0' Status : up (admin: up)
|
|
... 2 --warning-status='\\\%{admstatus}' WARNING: Interface 'en0' Status : up (admin: up)
|
|
... 3 --critical-status='\\\%{admstatus}' CRITICAL: Interface 'en0' Status : up (admin: up)
|
|
... 4 --display-transform-src='en0' --display-transform-dst='test' OK: Interface 'test' Status : up (admin: up)
|
|
... 5 --interface=1 OK: Interface 'en0' Status : up (admin: up) |