Skip to content

Commit

Permalink
Rename example host in oracle check to more informative name
Browse files Browse the repository at this point in the history
Change-Id: I92beba5f0a4c45d179208b597ca12a205da336b8
(cherry picked from commit f1d883e)
  • Loading branch information
Óscar Nájera committed Sep 11, 2019
1 parent eb13d46 commit 831876c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
34 changes: 17 additions & 17 deletions checks/oracle_crs_res
Expand Up @@ -27,29 +27,29 @@
# Original version by Thorsten Bruhns from OPITZ CONSULTING Deutschland GmbH

# <<<oracle_crs_res:sep(124)>>>
# ezszds8c|NAME=ora.DG_CLUSTER.dg
# ezszds8c|TYPE=ora.diskgroup.type
# ezszds8c|STATE=ONLINE on ezszds8c
# ezszds8c|TARGET=ONLINE
# ezszds8c|NAME=ora.I31_ARCH.dg
# ezszds8c|TYPE=ora.diskgroup.type
# ezszds8c|STATE=ONLINE on ezszds8c
# ezszds8c|TARGET=ONLINE
# ezszds8c|NAME=ora.I31_DATA.dg
# ezszds8c|TYPE=ora.diskgroup.type
# ezszds8c|STATE=ONLINE on ezszds8c
# ezszds8c|TARGET=ONLINE
# ezszds8c|NAME=ora.I31_MLOG.dg
# ezszds8c|TYPE=ora.diskgroup.type
# ezszds8c|STATE=ONLINE on ezszds8c
# ezszds8c|TARGET=ONLINE
# oracle_host|NAME=ora.DG_CLUSTER.dg
# oracle_host|TYPE=ora.diskgroup.type
# oracle_host|STATE=ONLINE on oracle_host
# oracle_host|TARGET=ONLINE
# oracle_host|NAME=ora.I31_ARCH.dg
# oracle_host|TYPE=ora.diskgroup.type
# oracle_host|STATE=ONLINE on oracle_host
# oracle_host|TARGET=ONLINE
# oracle_host|NAME=ora.I31_DATA.dg
# oracle_host|TYPE=ora.diskgroup.type
# oracle_host|STATE=ONLINE on oracle_host
# oracle_host|TARGET=ONLINE
# oracle_host|NAME=ora.I31_MLOG.dg
# oracle_host|TYPE=ora.diskgroup.type
# oracle_host|STATE=ONLINE on oracle_host
# oracle_host|TARGET=ONLINE
# ...usw...


# Parse output into dict of dicts of dicts:
# nodename -> ressource name -> entry
# ressource. Example:
# { 'ezszds8c' :
# { 'oracle_host' :
# { 'ora.I31_ARCH.dg' : {
# 'state': 'ONLINE on ezszds9c',
# 'target': 'ONLINE',
Expand Down
10 changes: 5 additions & 5 deletions tests/unit/checks/generictests/datasets/oracle_crs_res.py
Expand Up @@ -5,14 +5,14 @@
checkname = 'oracle_crs_res'


info = [['ezszds8c', 'NAME=ora.DG_CLUSTER.dg'],
['ezszds8c', 'TYPE=ora.diskgroup.type'],
['ezszds8c', 'STATE=ONLINE on ezszds8c'],
['ezszds8c', 'TARGET=ONLINE'],
info = [['oracle_host', 'NAME=ora.DG_CLUSTER.dg'],
['oracle_host', 'TYPE=ora.diskgroup.type'],
['oracle_host', 'STATE=ONLINE on oracle_host'],
['oracle_host', 'TARGET=ONLINE'],
]


discovery = {'': [('ora.DG_CLUSTER.dg', None)]}


checks = {'': [('ora.DG_CLUSTER.dg', {}, [(0, 'on ezszds8c: online', [])])]}
checks = {'': [('ora.DG_CLUSTER.dg', {}, [(0, 'on oracle_host: online', [])])]}

0 comments on commit 831876c

Please sign in to comment.