-
Notifications
You must be signed in to change notification settings - Fork 279
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(informix-snmp): consider log files in backedUpButNeeded state as …
…free space in log-file-usage mode (#5352) (#4943) Co-authored-by: gmolina <[email protected]> Refs: CTOR-1220
- Loading branch information
1 parent
f5f2103
commit 54c92ee
Showing
4 changed files
with
418 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
*** Settings *** | ||
Documentation List informix instances. | ||
Resource ${CURDIR}${/}..${/}..${/}..${/}resources/import.resource | ||
|
||
Test Timeout 120s | ||
|
||
*** Variables *** | ||
${CMD} ${CENTREON_PLUGINS} --plugin=database::informix::snmp::plugin | ||
|
||
*** Test Cases *** | ||
list-instances ${tc} | ||
[Tags] database informix | ||
${command} Catenate | ||
... ${CMD} | ||
... --mode=list-instances | ||
... --hostname=${HOSTNAME} | ||
... --snmp-version=${SNMPVERSION} | ||
... --snmp-port=${SNMPPORT} | ||
... --snmp-community=database/informix/snmp/slim_informix-log | ||
... --snmp-timeout=1 | ||
... ${extra_options} | ||
|
||
Ctn Run Command And Check Result As Strings ${command} ${expected_result} | ||
|
||
Examples: tc extra_options expected_result -- | ||
... 1 --verbose List instances: [instance = default] | ||
... 2 --filter-instance='instance' List instances: [instance = default] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
*** Settings *** | ||
Documentation Check log files usage. | ||
Resource ${CURDIR}${/}..${/}..${/}..${/}resources/import.resource | ||
|
||
Test Timeout 120s | ||
|
||
*** Variables *** | ||
${CMD} ${CENTREON_PLUGINS} --plugin=database::informix::snmp::plugin | ||
|
||
*** Test Cases *** | ||
logfile-usage ${tc} | ||
[Tags] database informix | ||
${command} Catenate | ||
... ${CMD} | ||
... --mode=logfile-usage | ||
... --hostname=${HOSTNAME} | ||
... --snmp-version=${SNMPVERSION} | ||
... --snmp-port=${SNMPPORT} | ||
... --snmp-community=database/informix/snmp/slim_informix-log | ||
... --snmp-timeout=1 | ||
... ${extra_options} | ||
|
||
Ctn Run Command And Check Result As Strings ${command} ${expected_result} | ||
|
||
Examples: tc extra_options expected_result -- | ||
... 1 --verbose OK: All dbspace log files usage are ok | 'used_default.linies'=0.00%;;;0;100 'used_default.logical_log'=0.73%;;;0;100 'used_default.rootdbs'=0.00%;;;0;100 Dbspace 'default.linies' Log Files Used: 0.00% Dbspace 'default.logical_log' Log Files Used: 0.73% Dbspace 'default.rootdbs' Log Files Used: 0.00% | ||
... 2 --filter-name='default.linies' OK: Dbspace 'default.linies' Log Files Used: 0.00% | 'used'=0.00%;;;0;100 | ||
... 3 --warning-usage=80:90 WARNING: Dbspace 'default.linies' Log Files Used: 0.00% - Dbspace 'default.logical_log' Log Files Used: 0.73% - Dbspace 'default.rootdbs' Log Files Used: 0.00% | 'used_default.linies'=0.00%;80:90;;0;100 'used_default.logical_log'=0.73%;80:90;;0;100 'used_default.rootdbs'=0.00%;80:90;;0;100 | ||
... 4 --critical-usage=80:90 CRITICAL: Dbspace 'default.linies' Log Files Used: 0.00% - Dbspace 'default.logical_log' Log Files Used: 0.73% - Dbspace 'default.rootdbs' Log Files Used: 0.00% | 'used_default.linies'=0.00%;;80:90;0;100 'used_default.logical_log'=0.73%;;80:90;0;100 'used_default.rootdbs'=0.00%;;80:90;0;100 |
Oops, something went wrong.