*** Settings *** Documentation Check Windows operating systems in SNMP. Resource ${CURDIR}${/}..${/}..${/}..${/}resources/import.resource Suite Setup Ctn Generic Suite Setup Test Timeout 120s *** Variables *** ${CMD} ${CENTREON_PLUGINS} *** Test Cases *** uptime ${tc} [Tags] os Windows ${command} Catenate ... ${CMD} ... --plugin=os::windows::snmp::plugin ... --mode=uptime ... --hostname=${HOSTNAME} ... --snmp-version=${SNMPVERSION} ... --snmp-port=${SNMPPORT} ... --snmp-community=os/windows/snmp/windows_anon ... --snmp-timeout=1 ... ${extra_options} Ctn Run Command And Check Result As Strings ${command} ${expected_result} Examples: tc extra_options expected_result -- ... 1 --warning-uptime='2' WARNING: System uptime is: 18m 37s | 'uptime'=1117.00s;0:2;;0; ... 2 --warning-uptime='1' WARNING: System uptime is: 18m 37s | 'uptime'=1117.00s;0:1;;0; ... 3 --critical-uptime='2' CRITICAL: System uptime is: 18m 37s | 'uptime'=1117.00s;;0:2;0; ... 4 --add-sysdesc OK: System uptime is: 18m 37s, - | 'uptime'=1117.00s;;;0; ... 5 --critical-uptime='1' CRITICAL: System uptime is: 18m 37s | 'uptime'=1117.00s;;0:1;0; ... 6 --check-overload OK: System uptime is: 18m 37s | 'uptime'=1117.00s;;;0; ... 7 --reboot-window OK: System uptime is: 18m 37s | 'uptime'=1117.00s;;;0; ... 8 --unit='h' OK: System uptime is: 18m 37s | 'uptime'=0.31h;;;0; ... 9 --unit='m' OK: System uptime is: 18m 37s | 'uptime'=18.62m;;;0; ... 10 --unit='s' OK: System uptime is: 18m 37s | 'uptime'=1117.00s;;;0;