From 0c59f9f5c57ef640bce756d1e012845477ef3b65 Mon Sep 17 00:00:00 2001 From: Abdur Rehman Date: Thu, 19 Sep 2024 16:00:03 +0500 Subject: [PATCH] add df command and increase log size --- src/config_11g.json | 24 ++++++++++++++++++------ src/config_18c.json | 24 ++++++++++++++++++------ src/config_23ai.json | 24 ++++++++++++++++++------ src/config_cloud_db.json | 23 ++++++++++++++++++----- 4 files changed, 72 insertions(+), 23 deletions(-) diff --git a/src/config_11g.json b/src/config_11g.json index 38cf1fc..b4de83a 100644 --- a/src/config_11g.json +++ b/src/config_11g.json @@ -4,16 +4,20 @@ { "comm": "top -b -n 1", "tag": "top" + }, + { + "comm": "df -h", + "tag": "df" } ], "logs": [ { "log_file": "/opt/tomcat/logs/catalina.out", - "lines": 100 + "lines": 300 }, { "log_file": "/u01/app/oracle/diag/rdbms/xe/XE/trace/alert_XE.log", - "lines": 50 + "lines": 100 }, { "log_file": "/var/log/messages", @@ -22,15 +26,24 @@ ] }, "Server Unavailable": { - "commands": [], + "commands": [ + { + "comm": "top -b -n 1", + "tag": "top" + }, + { + "comm": "df -h", + "tag": "df" + } + ], "logs": [ { "log_file": "/opt/tomcat/logs/catalina.out", - "lines": 50 + "lines": 300 }, { "log_file": "/u01/app/oracle/diag/rdbms/xe/XE/trace/alert_XE.log", - "lines": 50 + "lines": 100 }, { "log_file": "/var/log/messages", @@ -38,5 +51,4 @@ } ] } - } \ No newline at end of file diff --git a/src/config_18c.json b/src/config_18c.json index d35e82b..f3e2b22 100644 --- a/src/config_18c.json +++ b/src/config_18c.json @@ -4,16 +4,20 @@ { "comm": "top -b -n 1", "tag": "top" + }, + { + "comm": "df -h", + "tag": "df" } ], "logs": [ { "log_file": "/opt/tomcat/logs/catalina.out", - "lines": 100 + "lines": 300 }, { "log_file": "/opt/oracle/diag/rdbms/xe/XE/trace/alert_XE.log", - "lines": 50 + "lines": 100 }, { "log_file": "/var/log/messages", @@ -22,15 +26,24 @@ ] }, "Server Unavailable": { - "commands": [], + "commands": [ + { + "comm": "top -b -n 1", + "tag": "top" + }, + { + "comm": "df -h", + "tag": "df" + } + ], "logs": [ { "log_file": "/opt/tomcat/logs/catalina.out", - "lines": 50 + "lines": 300 }, { "log_file": "/opt/oracle/diag/rdbms/xe/XE/trace/alert_XE.log", - "lines": 50 + "lines": 100 }, { "log_file": "/var/log/messages", @@ -38,5 +51,4 @@ } ] } - } \ No newline at end of file diff --git a/src/config_23ai.json b/src/config_23ai.json index 68f859d..0042fb0 100644 --- a/src/config_23ai.json +++ b/src/config_23ai.json @@ -4,16 +4,20 @@ { "comm": "top -b -n 1", "tag": "top" + }, + { + "comm": "df -h", + "tag": "df" } ], "logs": [ { "log_file": "/opt/tomcat/logs/catalina.out", - "lines": 100 + "lines": 300 }, { "log_file": "/opt/oracle/diag/rdbms/free/FREE/trace/alert_FREE.log", - "lines": 50 + "lines": 100 }, { "log_file": "/var/log/messages", @@ -22,15 +26,24 @@ ] }, "Server Unavailable": { - "commands": [], + "commands": [ + { + "comm": "top -b -n 1", + "tag": "top" + }, + { + "comm": "df -h", + "tag": "df" + } + ], "logs": [ { "log_file": "/opt/tomcat/logs/catalina.out", - "lines": 50 + "lines": 300 }, { "log_file": "/opt/oracle/diag/rdbms/free/FREE/trace/alert_FREE.log", - "lines": 50 + "lines": 100 }, { "log_file": "/var/log/messages", @@ -38,5 +51,4 @@ } ] } - } \ No newline at end of file diff --git a/src/config_cloud_db.json b/src/config_cloud_db.json index 13e01c9..8470367 100644 --- a/src/config_cloud_db.json +++ b/src/config_cloud_db.json @@ -4,16 +4,20 @@ { "comm": "top -b -n 1", "tag": "top" + }, + { + "comm": "df -h", + "tag": "df" } ], "logs": [ { "log_file": "/opt/tomcat/logs/catalina.out", - "lines": 100 + "lines": 300 }, { "log_file": "/u01/app/oracle/diag/rdbms/orcl_jnb1w9/ORCL/trace/alert_XE.log", - "lines": 50 + "lines": 100 }, { "log_file": "/var/log/messages", @@ -22,15 +26,24 @@ ] }, "Server Unavailable": { - "commands": [], + "commands": [ + { + "comm": "top -b -n 1", + "tag": "top" + }, + { + "comm": "df -h", + "tag": "df" + } + ], "logs": [ { "log_file": "/opt/tomcat/logs/catalina.out", - "lines": 50 + "lines": 300 }, { "log_file": "/u01/app/oracle/diag/rdbms/orcl_jnb1w9/ORCL/trace/alert_XE.log", - "lines": 50 + "lines": 100 }, { "log_file": "/var/log/messages",