| 1 |
*** Settings *** |
| 2 |
Documentation Check Windows operating systems 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} |
| 12 |
|
| 13 |
*** Test Cases *** |
| 14 |
memory ${tc} |
| 15 |
[Tags] os Windows |
| 16 |
${command} Catenate |
| 17 |
... ${CMD} |
| 18 |
... --plugin=os::windows::snmp::plugin |
| 19 |
... --mode=memory |
| 20 |
... --hostname=${HOSTNAME} |
| 21 |
... --snmp-version=${SNMPVERSION} |
| 22 |
... --snmp-port=${SNMPPORT} |
| 23 |
... --snmp-community=os/windows/snmp/windows_anon |
| 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 --verbose OK: Ram Total: 4.00GB Used: 557.94MB (13.62%) Free: 3.45GB (86.38%) | 'used'=585039872B;;;0;4294377472 |
| 31 |
... 2 --warning-memory='80' OK: Ram Total: 4.00GB Used: 557.94MB (13.62%) Free: 3.45GB (86.38%) | 'used'=585039872B;0:3435501977;;0;4294377472 |
| 32 |
... 3 --units OK: Ram Total: 4.00GB Used: 557.94MB (13.62%) Free: 3.45GB (86.38%) | 'used'=585039872B;;;0;4294377472 |
| 33 |
... 4 --free OK: Ram Total: 4.00GB Used: 557.94MB (13.62%) Free: 3.45GB (86.38%) | 'memory.free.bytes'=3709337600B;;;0;4294377472 |
| 34 |
... 5 --critical-memory='90' --warning-memory='80' OK: Ram Total: 4.00GB Used: 557.94MB (13.62%) Free: 3.45GB (86.38%) | 'used'=585039872B;0:3435501977;0:3864939724;0;4294377472 |
| 35 |
... 6 --critical-memory='0' CRITICAL: Ram Total: 4.00GB Used: 557.94MB (13.62%) Free: 3.45GB (86.38%) | 'used'=585039872B;;0:0;0;4294377472 |
| 36 |
... 7 --warning-memory='0' WARNING: Ram Total: 4.00GB Used: 557.94MB (13.62%) Free: 3.45GB (86.38%) | 'used'=585039872B;0:0;;0;4294377472 |