From 375d58876f6be8efedade166939a4158237f173e Mon Sep 17 00:00:00 2001 From: Abdur Rehman Date: Fri, 13 Sep 2024 12:53:12 +0500 Subject: [PATCH] update config files baed on oracle versions --- src/{config_new_ora.json => config_18c.json} | 0 src/{config_old_ora.json => config_23ai.json} | 4 +- src/config_cloud_db.json | 86 +++++++++++++++++++ 3 files changed, 88 insertions(+), 2 deletions(-) rename src/{config_new_ora.json => config_18c.json} (100%) rename src/{config_old_ora.json => config_23ai.json} (92%) create mode 100644 src/config_cloud_db.json diff --git a/src/config_new_ora.json b/src/config_18c.json similarity index 100% rename from src/config_new_ora.json rename to src/config_18c.json diff --git a/src/config_old_ora.json b/src/config_23ai.json similarity index 92% rename from src/config_old_ora.json rename to src/config_23ai.json index f437dfc..8276338 100644 --- a/src/config_old_ora.json +++ b/src/config_23ai.json @@ -12,7 +12,7 @@ "lines": 50 }, { - "log_file": "/opt/oracle/diag/rdbms/xe/XE/trace/alert_XE.log", + "log_file": "/opt/oracle/diag/rdbms/free/FREE/trace/alert_XE.log", "lines": 50 }, { @@ -29,7 +29,7 @@ "lines": 50 }, { - "log_file": "/opt/oracle/diag/rdbms/xe/XE/trace/alert_XE.log", + "log_file": "/opt/oracle/diag/rdbms/free/FREE/trace/alert_XE.log", "lines": 50 }, { diff --git a/src/config_cloud_db.json b/src/config_cloud_db.json new file mode 100644 index 0000000..c7c5910 --- /dev/null +++ b/src/config_cloud_db.json @@ -0,0 +1,86 @@ +{ + "Server Performance Problem": { + "commands": [ + { + "comm": "top -b -n 1", + "tag": "top" + } + ], + "logs": [ + { + "log_file": "/opt/tomcat/logs/catalina.out", + "lines": 50 + }, + { + "log_file": "/u01/app/oracle/diag/rdbms/orcl_jnb1w9/ORCL/trace/alert_XE.log", + "lines": 50 + }, + { + "log_file": "/var/log/messages", + "lines": 50 + } + ] + }, + "Server Unavailable": { + "commands": [], + "logs": [ + { + "log_file": "/opt/tomcat/logs/catalina.out", + "lines": 50 + }, + { + "log_file": "/u01/app/oracle/diag/rdbms/orcl_jnb1w9/ORCL/trace/alert_XE.log", + "lines": 50 + }, + { + "log_file": "/var/log/messages", + "lines": 50 + } + ] + }, + "Demo1": { + "commands": [], + "logs": [ + { + "log_file": "/home/arehman/Documents/Projects/Python/Maxapex/ticket_ai_flask_app/logs/*_error.log", + "lines": 50 + } + ] + }, + "Demo2": { + "commands": [], + "logs": [ + { + "log_file": "/home/arehman/Documents/Projects/Python/Maxapex/ticket_ai_flask_app/logs/a_error.log", + "lines": 50 + } + ] + }, + "Demo3": { + "commands": [ + { + "comm": "top -b -n 1", + "tag": "top" + } + ], + "logs": [] + }, + "Demo": { + "commands": [ + { + "comm": "top -b -n 1", + "tag": "top" + } + ], + "logs": [ + { + "log_file": "/home/arehman/Documents/Projects/Python/Maxapex/ticket_ai_flask_app/logs/a_error.log", + "lines": 50 + }, + { + "log_file": "/home/arehman/Documents/Projects/Python/Maxapex/ticket_ai_flask_app/logs/*_error.log", + "lines": 50 + } + ] + } +} \ No newline at end of file