Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dba 598 metrics #567

Merged
merged 10 commits into from
Feb 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,47 @@ sqlnet_parameters:
SQLNET.ENCRYPTION_TYPES_SERVER: (AES256)
SQLNET.ALLOW_WEAK_CRYPTO: "FALSE"
SQLNET.IGNORE_ANO_ENCRYPTION_FOR_TCPS: "TRUE"
# The oracle_ru_patch is the Oracle Release update to use for *initial build* only.
# Subsequent patching will use the oracle_software variable defined for
# the primary database.
oracle_ru_patch: OCT2023
all_oem_metrics:
oracle_database:
all:
schedule:
db_alertlog_coll_12:
collectionStatus: enabled
input_file: |
START_RECORD 1
metric , db_alert_log
column , genericErrStack
key_columns , ;
warning_threshold , " "
critical_threshold ,ORA-0*[0-9]{1,6}
END_RECORD 1
custom_properties:
alert_log_filter_expression: '.*ORA-0*(54|235|1142|1146|609|12537|31934|16037)\D.*|.*ORA-609$|.*process J\d+.*ORA-1013$'
has:
all:
input_file: |
START_RECORD 1
metric , resource_status
column , crs_event_composite_status
key_columns , resource_ora.diskmon.type_ora.diskmon;
warning_threshold , undefined
critical_threshold , undefined
END_RECORD 1
START_RECORD 2
metric , resource_status
column , crs_event_composite_status
key_columns , resource_ora.ons.type_ora.ons;
warning_threshold , undefined
critical_threshold , undefined
END_RECORD 2
START_RECORD 3
metric , resource_status
column , crs_event_composite_status
key_columns , ;
warning_threshold , COMPLETE_INTERMEDIATE|PARTIALLY_UNKNOWN|PARTIALLY_OFFLINE|PARTIALLY_INTERMEDIATE
critical_threshold , COMPLETE_UNKNOWN|COMPLETE_OFFLINE|ADD|DOWN
END_RECORD 3
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,32 @@ database_locked_statistics:
table_names:
- DOC_MIGRATION_QUEUE_TAB: ALL
fsfo_mode: disabled
host_oem_metrics:
oracle_database:
all:
input_file: |
START_RECORD 1
metric , problemTbsp
column , pctUsed
key_columns , ;
warning_threshold , 81
critical_threshold , 90
END_RECORD 1
DMDNDA:
input_file: |
START_RECORD 1
metric , problemTbsp
column , pctUsed
key_columns , ;
warning_threshold , 81
critical_threshold , 90
END_RECORD 1
oracle_listener:
all:
input_file: |
START_RECORD 1
metric , Response
column , tnsPing
warning_threshold , 500
critical_threshold , 1200
END_RECORD 1
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,14 @@
database_standby_unique: DMDNDAS1
database_standby_sid: DMDNDAS1
active_data_guard: false
# We ignore the MOUNTED state for Standby Databases - this is not an error
host_oem_metrics:
oracle_database:
DMDNDAS1:
input_file: |
START_RECORD 1
metric , Response
column , State
warning_threshold ,THRESHOLD_UNSET
critical_threshold ,DOWN|UNKNOWN.*
END_RECORD 1
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ do
# Group targets do not have properties - exclude group targets
if [[ "${TARGET_TYPE}" != "group" ]]; then
# For unknown targets we default the Slack channel to one for OEM Alerts
set_target_properties "${TARGET_TYPE}" "${TARGET_NAME}" "hmpps-oem" "#hmpps-oem-internal-alerts"
set_target_properties "${TARGET_TYPE}" "${TARGET_NAME}" "hmpps-oem" "#hmpps-oem-alerts"
fi
fi
done
Expand Down
4 changes: 4 additions & 0 deletions ansible/roles/oracle-oms-setup/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ emcli: "{{ oem_mw_home }}/bin/emcli"
application_groups: ["delius", "nomis", "oasys", "corporate-staff-rostering", "hmpps-oem"]
emctl: "{{ oem_agent_base }}/agent_inst/bin/emctl"

# For targets without Diagnostics pack the following directory is used to
# install a shell script which can send notifications for incidents.
notification_script_directory: /home/oracle/admin/em

# Variables for OMS RU patching
oms_ru_patch: p35861059_135000_Generic.zip
oms_ru_patch_number: 35861059
Expand Down
Loading