| 1 |
*** Settings *** |
| 2 |
Documentation Network Teldat SNMP plugin |
| 3 |
|
| 4 |
Resource ${CURDIR}${/}..${/}..${/}..${/}resources/import.resource |
| 5 |
|
| 6 |
Test Timeout 120s |
| 7 |
|
| 8 |
|
| 9 |
*** Variables *** |
| 10 |
${CMD} ${CENTREON_PLUGINS} --plugin=network::teldat::snmp::plugin |
| 11 |
|
| 12 |
|
| 13 |
*** Test Cases *** |
| 14 |
Memory ${tc} |
| 15 |
[Tags] network teldat snmp |
| 16 |
${command} Catenate |
| 17 |
... ${CMD} |
| 18 |
... --mode=memory |
| 19 |
... --hostname=127.0.0.1 |
| 20 |
... --snmp-version=2c |
| 21 |
... --snmp-port=2024 |
| 22 |
... --snmp-community=network/teldat/snmp/teldat |
| 23 |
... --warning-usage=${warningusage} |
| 24 |
... --critical-usage=${criticalusage} |
| 25 |
... --warning-usage-free=${warningusagefree} |
| 26 |
... --critical-usage-free=${criticalusagefree} |
| 27 |
... --warning-usage-prct=${warningusageprct} |
| 28 |
... --critical-usage-prct=${criticalusageprct} |
| 29 |
|
| 30 |
Ctn Run Command And Check Result As Strings ${command} ${expected_result} |
| 31 |
|
| 32 |
|
| 33 |
Examples: tc warningusage criticalusage warningusagefree criticalusagefree warningusageprct criticalusageprct expected_result -- |
| 34 |
... 1 ${EMPTY} ${EMPTY} ${EMPTY} ${EMPTY} ${EMPTY} ${EMPTY} OK: Memory 'system' total: 256.00 MB used: 100.54 MB (39.27%) free: 155.46 MB (60.73%) | 'system#memory.usage.bytes'=105419600B;;;0;268435456 'system#memory.free.bytes'=163015856B;;;0;268435456 'system#memory.usage.percentage'=39.27%;;;0;100 |
| 35 |
... 2 100 ${EMPTY} ${EMPTY} ${EMPTY} ${EMPTY} ${EMPTY} WARNING: Memory 'system' total: 256.00 MB used: 100.54 MB (39.27%) free: 155.46 MB (60.73%) | 'system#memory.usage.bytes'=105419600B;0:100;;0;268435456 'system#memory.free.bytes'=163015856B;;;0;268435456 'system#memory.usage.percentage'=39.27%;;;0;100 |
| 36 |
... 3 ${EMPTY} 100 ${EMPTY} ${EMPTY} ${EMPTY} ${EMPTY} CRITICAL: Memory 'system' total: 256.00 MB used: 100.54 MB (39.27%) free: 155.46 MB (60.73%) | 'system#memory.usage.bytes'=105419600B;;0:100;0;268435456 'system#memory.free.bytes'=163015856B;;;0;268435456 'system#memory.usage.percentage'=39.27%;;;0;100 |
| 37 |
... 4 ${EMPTY} ${EMPTY} 100 ${EMPTY} ${EMPTY} ${EMPTY} WARNING: Memory 'system' total: 256.00 MB used: 100.54 MB (39.27%) free: 155.46 MB (60.73%) | 'system#memory.usage.bytes'=105419600B;;;0;268435456 'system#memory.free.bytes'=163015856B;0:100;;0;268435456 'system#memory.usage.percentage'=39.27%;;;0;100 |
| 38 |
... 5 ${EMPTY} ${EMPTY} ${EMPTY} 100 ${EMPTY} ${EMPTY} CRITICAL: Memory 'system' total: 256.00 MB used: 100.54 MB (39.27%) free: 155.46 MB (60.73%) | 'system#memory.usage.bytes'=105419600B;;;0;268435456 'system#memory.free.bytes'=163015856B;;0:100;0;268435456 'system#memory.usage.percentage'=39.27%;;;0;100 |
| 39 |
... 6 ${EMPTY} ${EMPTY} ${EMPTY} ${EMPTY} 30 ${EMPTY} WARNING: Memory 'system' total: 256.00 MB used: 100.54 MB (39.27%) free: 155.46 MB (60.73%) | 'system#memory.usage.bytes'=105419600B;;;0;268435456 'system#memory.free.bytes'=163015856B;;;0;268435456 'system#memory.usage.percentage'=39.27%;0:30;;0;100 |
| 40 |
... 7 ${EMPTY} ${EMPTY} ${EMPTY} ${EMPTY} ${EMPTY} 30 CRITICAL: Memory 'system' total: 256.00 MB used: 100.54 MB (39.27%) free: 155.46 MB (60.73%) | 'system#memory.usage.bytes'=105419600B;;;0;268435456 'system#memory.free.bytes'=163015856B;;;0;268435456 'system#memory.usage.percentage'=39.27%;;0:30;0;100 |