From d8dfab348692941f44712963a062c1489bd5dcaa Mon Sep 17 00:00:00 2001 From: wullub Date: Mon, 4 Dec 2023 15:46:26 +0000 Subject: [PATCH] oasys monitoring oasys monitoring --- ansible/group_vars/server_type_oasys_bip.yml | 8 ++++++++ ansible/group_vars/server_type_oasys_db.yml | 12 ++++++++++++ ansible/group_vars/server_type_oasys_web.yml | 8 ++++++++ 3 files changed, 28 insertions(+) diff --git a/ansible/group_vars/server_type_oasys_bip.yml b/ansible/group_vars/server_type_oasys_bip.yml index 461b70dad..18f22c29f 100644 --- a/ansible/group_vars/server_type_oasys_bip.yml +++ b/ansible/group_vars/server_type_oasys_bip.yml @@ -44,3 +44,11 @@ disks_mount: fstype: xfs image_builder_s3_bucket_name: devtest-oasys-20230411143832198800000001 + +collectd_monitored_services_servertype: + - metric_name: service_status_os + metric_dimension: chronyd + shell_cmd: "service chronyd status" + - metric_name: service_status_app + metric_dimension: managedserver-healthcheck + shell_cmd: "service wls_managedserver status" diff --git a/ansible/group_vars/server_type_oasys_db.yml b/ansible/group_vars/server_type_oasys_db.yml index 29a58b5d0..9ef3261d1 100644 --- a/ansible/group_vars/server_type_oasys_db.yml +++ b/ansible/group_vars/server_type_oasys_db.yml @@ -36,6 +36,7 @@ roles_list: - amazon-cloudwatch-agent - amazon-cloudwatch-agent-collectd - collectd-service-metrics + - collectd-connectivity-test - collectd-oracle-db-connected - collectd-textfile-monitoring @@ -87,3 +88,14 @@ database_home: /u01/app/oracle/product/19c/db_1 grid_home: /u01/app/oracle/product/19c/gridhome_1 assume_ec2_role_name_prefix: ec2-database-role + +collectd_monitored_services_servertype: + - metric_name: service_status_os + metric_dimension: chronyd + shell_cmd: "systemctl is-active chronyd" + - metric_name: service_status_app + metric_dimension: oracle-ohasd + shell_cmd: "systemctl is-active oracle-ohasd" + - metric_name: service_status_app + metric_dimension: oracleasm + shell_cmd: "systemctl is-active oracleasm" diff --git a/ansible/group_vars/server_type_oasys_web.yml b/ansible/group_vars/server_type_oasys_web.yml index a09fbe86a..68a0fc376 100644 --- a/ansible/group_vars/server_type_oasys_web.yml +++ b/ansible/group_vars/server_type_oasys_web.yml @@ -46,3 +46,11 @@ disks_mount: - ebs_device_name: /dev/sdc dir: /u02 fstype: xfs + +collectd_monitored_services_servertype: + - metric_name: service_status_os + metric_dimension: chronyd + shell_cmd: "service chronyd status" + - metric_name: service_status_app + metric_dimension: tomcat-healthcheck + shell_cmd: "service tomcat status" \ No newline at end of file