mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-09-10 19:38:25 +02:00
30 lines
967 B
Plaintext
30 lines
967 B
Plaintext
*** Settings ***
|
|
Documentation Check udpcon table
|
|
|
|
Resource ${CURDIR}${/}..${/}..${/}..${/}resources/import.resource
|
|
Suite Setup Ctn Generic Suite Setup
|
|
Suite Teardown Ctn Generic Suite Teardown
|
|
Test Timeout 120s
|
|
|
|
|
|
*** Variables ***
|
|
${CMD} ${CENTREON_PLUGINS} --plugin=os::linux::snmp::plugin
|
|
|
|
|
|
*** Test Cases ***
|
|
udpcon ${tc}
|
|
[Tags] os linux
|
|
${command} Catenate
|
|
... ${CMD}
|
|
... --mode=udpcon
|
|
... --hostname=${HOSTNAME}
|
|
... --snmp-version=${SNMPVERSION}
|
|
... --snmp-port=${SNMPPORT}
|
|
... --snmp-community=os/linux/snmp/linux
|
|
... --snmp-timeout=1
|
|
... ${extra_options}
|
|
|
|
Ctn Run Command And Check Result As Strings ${command} ${expected_result}
|
|
|
|
Examples: tc extra_options expected_result --
|
|
... 1 ${EMPTY} OK: Total connections: 7 | 'service_total'=7;;;0; 'con_listen'=7;;;0; |