diff --git a/database.py b/database.py index 44bf59c..4e50482 100755 --- a/database.py +++ b/database.py @@ -84,6 +84,16 @@ def initialize_database(): ) """) + # Table for ufw logs + cursor.execute(""" + CREATE TABLE IF NOT EXISTS ufw_logs ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + monitoring_data_id INTEGER, + log_line TEXT, + FOREIGN KEY (monitoring_data_id) REFERENCES monitoring_data (id) + ) + """) + conn.commit() conn.close() logger.info("Database initialized successfully.") @@ -136,6 +146,12 @@ def store_data(new_data): cursor.execute("INSERT INTO syslog (monitoring_data_id, log_data) VALUES (?, ?)", (monitoring_data_id, json.dumps(log))) + # Insert into ufw_logs + if 'ufw_logs' in new_data: + for line in new_data['ufw_logs']: + cursor.execute("INSERT INTO ufw_logs (monitoring_data_id, log_line) VALUES (?, ?)", + (monitoring_data_id, line)) + conn.commit() conn.close() except sqlite3.Error as e: @@ -233,6 +249,7 @@ def enforce_retention_policy(retention_days=7): cursor.execute(f"DELETE FROM nmap_scans WHERE monitoring_data_id IN ({placeholders})", old_ids) cursor.execute(f"DELETE FROM docker_status WHERE monitoring_data_id IN ({placeholders})", old_ids) cursor.execute(f"DELETE FROM syslog WHERE monitoring_data_id IN ({placeholders})", old_ids) + cursor.execute(f"DELETE FROM ufw_logs WHERE monitoring_data_id IN ({placeholders})", old_ids) # Delete from the main table cursor.execute(f"DELETE FROM monitoring_data WHERE id IN ({placeholders})", old_ids) diff --git a/monitor_agent.py b/monitor_agent.py index 459a844..01e8dba 100755 --- a/monitor_agent.py +++ b/monitor_agent.py @@ -42,9 +42,35 @@ logger.addHandler(console_handler) LOG_POSITION_FILE = 'log_position.txt' AUTH_LOG_POSITION_FILE = 'auth_log_position.txt' +UFW_LOG_POSITION_FILE = 'ufw_log_position.txt' # --- Data Ingestion & Parsing Functions --- +def get_ufw_logs(): + """Gets new lines from /var/log/ufw.log since the last check.""" + try: + last_position = 0 + if os.path.exists(UFW_LOG_POSITION_FILE): + with open(UFW_LOG_POSITION_FILE, 'r') as f: + last_position = int(f.read()) + + with open("/var/log/ufw.log", "r") as f: + f.seek(last_position) + log_lines = f.readlines() + current_position = f.tell() + + with open(UFW_LOG_POSITION_FILE, 'w') as f: + f.write(str(current_position)) + + return log_lines + except FileNotFoundError: + logger.error("/var/log/ufw.log not found.") + return [] + except Exception as e: + logger.error(f"Error reading ufw.log: {e}") + return [] + + def get_system_logs(): """Gets new lines from /var/log/syslog since the last check.""" try: @@ -293,6 +319,24 @@ def analyze_data_locally(data, baselines, known_issues, port_applications): "reason": f"Docker container '{container_name}' is not running. Current status: {status}" }) + # UFW log analysis + ufw_logs = data.get("ufw_logs", []) + if ufw_logs: + blocked_ips = {} + for log_line in ufw_logs: + if "[UFW BLOCK]" in log_line: + match = re.search(r"SRC=([\d\.]+)", log_line) + if match: + ip = match.group(1) + blocked_ips[ip] = blocked_ips.get(ip, 0) + 1 + + for ip, count in blocked_ips.items(): + if count > 10: + anomalies.append({ + "severity": "high", + "reason": f"High number of blocked connections ({count}) from IP address: {ip}" + }) + return anomalies # --- LLM Interaction Function --- @@ -434,6 +478,7 @@ def run_monitoring_cycle(nmap_scan_counter): gpu_temp = get_gpu_temperature(sensors_output) login_attempts = get_login_attempts() docker_container_status = get_docker_container_status() + ufw_logs = get_ufw_logs() nmap_results = None if nmap_scan_counter == 0: @@ -449,7 +494,8 @@ def run_monitoring_cycle(nmap_scan_counter): "cpu_temperature": cpu_temp, "gpu_temperature": gpu_temp, "login_attempts": login_attempts, - "docker_container_status": docker_container_status + "docker_container_status": docker_container_status, + "ufw_logs": ufw_logs } if nmap_results: diff --git a/monitoring_agent.log b/monitoring_agent.log deleted file mode 100755 index 72cbee8..0000000 --- a/monitoring_agent.log +++ /dev/null @@ -1,490 +0,0 @@ -2025-09-12 00:02:07,233 - INFO - Running monitoring cycle... -2025-09-12 00:07:12,174 - INFO - Running monitoring cycle... -2025-09-12 00:12:17,032 - INFO - Running monitoring cycle... -2025-09-12 00:18:53,063 - INFO - Running monitoring cycle... -2025-09-12 00:23:57,887 - INFO - Running monitoring cycle... -2025-09-12 00:29:02,786 - INFO - Running monitoring cycle... -2025-09-12 00:34:07,669 - INFO - Running monitoring cycle... -2025-09-12 00:44:42,844 - INFO - Running monitoring cycle... -2025-09-12 00:49:47,667 - INFO - Running monitoring cycle... -2025-09-12 00:54:52,487 - INFO - Running monitoring cycle... -2025-09-12 00:59:57,304 - INFO - Running monitoring cycle... -2025-09-12 01:06:20,667 - INFO - Running monitoring cycle... -2025-09-12 01:11:25,427 - INFO - Running monitoring cycle... -2025-09-12 01:16:30,332 - INFO - Running monitoring cycle... -2025-09-12 01:21:35,208 - INFO - Running monitoring cycle... -2025-09-12 01:30:34,459 - INFO - Running monitoring cycle... -2025-09-12 01:35:39,342 - INFO - Running monitoring cycle... -2025-09-12 01:40:44,246 - INFO - Running monitoring cycle... -2025-09-12 01:45:49,082 - INFO - Running monitoring cycle... -2025-09-12 01:53:47,081 - INFO - Running monitoring cycle... -2025-09-12 01:58:51,831 - INFO - Running monitoring cycle... -2025-09-12 02:03:56,619 - INFO - Running monitoring cycle... -2025-09-12 02:04:01,385 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 02:04:01,385 - INFO - Generating LLM report... -2025-09-12 02:04:05,936 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is currently stopped (exited), which may indicate a disruption to services relying on this container."} -2025-09-12 02:09:05,936 - INFO - Running monitoring cycle... -2025-09-12 02:11:47,874 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 02:11:47,874 - INFO - Generating LLM report... -2025-09-12 02:11:52,327 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing issues; it has exited unexpectedly."} -2025-09-12 02:16:52,328 - INFO - Running monitoring cycle... -2025-09-12 02:16:57,194 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 02:16:57,194 - INFO - Generating LLM report... -2025-09-12 02:17:01,709 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is currently stopped; it was previously running but has exited."} -2025-09-12 02:22:01,710 - INFO - Running monitoring cycle... -2025-09-12 02:22:06,609 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 02:22:06,610 - INFO - Generating LLM report... -2025-09-12 02:22:11,101 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is currently stopped (exited) instead of running."} -2025-09-12 02:27:11,101 - INFO - Running monitoring cycle... -2025-09-12 02:27:16,060 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 02:27:16,060 - INFO - Generating LLM report... -2025-09-12 02:27:20,470 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is failing because it has exited unexpectedly."} -2025-09-12 02:32:20,470 - INFO - Running monitoring cycle... -2025-09-12 02:34:40,545 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 02:34:40,545 - INFO - Generating LLM report... -2025-09-12 02:34:45,175 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is currently exited; it was previously running but has since stopped without explicit shutdown."} -2025-09-12 02:39:45,175 - INFO - Running monitoring cycle... -2025-09-12 02:39:49,974 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 02:39:49,974 - INFO - Generating LLM report... -2025-09-12 02:39:54,460 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing a high severity issue because it has exited unexpectedly."} -2025-09-12 02:44:54,460 - INFO - Running monitoring cycle... -2025-09-12 02:44:59,342 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 02:44:59,342 - INFO - Generating LLM report... -2025-09-12 02:45:03,803 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is currently stopped; it was previously running but has exited."} -2025-09-12 02:50:03,803 - INFO - Running monitoring cycle... -2025-09-12 02:50:08,634 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 02:50:08,634 - INFO - Generating LLM report... -2025-09-12 02:50:13,149 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is currently stopped; it has exited with no running status."} -2025-09-12 02:55:13,150 - INFO - Running monitoring cycle... -2025-09-12 02:58:28,102 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 02:58:28,102 - INFO - Generating LLM report... -2025-09-12 02:58:32,512 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is currently stopped due to exiting unexpectedly."} -2025-09-12 03:03:32,513 - INFO - Running monitoring cycle... -2025-09-12 03:03:37,383 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 03:03:37,383 - INFO - Generating LLM report... -2025-09-12 03:03:41,889 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing a high severity issue; it has exited unexpectedly."} -2025-09-12 03:08:41,890 - INFO - Running monitoring cycle... -2025-09-12 03:08:46,765 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 03:08:46,765 - INFO - Generating LLM report... -2025-09-12 03:08:51,248 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' has exited unexpectedly; it is currently stopped."} -2025-09-12 03:13:51,248 - INFO - Running monitoring cycle... -2025-09-12 03:13:56,144 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 03:13:56,144 - INFO - Generating LLM report... -2025-09-12 03:14:00,570 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is currently stopped; it exited unexpectedly."} -2025-09-12 03:19:00,571 - INFO - Running monitoring cycle... -2025-09-12 03:23:04,372 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 03:23:04,372 - INFO - Generating LLM report... -2025-09-12 03:23:08,884 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is currently stopped; it was previously running but has exited unexpectedly."} -2025-09-12 03:28:08,884 - INFO - Running monitoring cycle... -2025-09-12 03:28:13,722 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 03:28:13,722 - INFO - Generating LLM report... -2025-09-12 03:28:18,203 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing a critical issue: it has exited unexpectedly."} -2025-09-12 03:33:18,204 - INFO - Running monitoring cycle... -2025-09-12 03:33:23,095 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 03:33:23,095 - INFO - Generating LLM report... -2025-09-12 03:33:27,616 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing issues with high severity; it has exited without starting correctly."} -2025-09-12 03:38:27,617 - INFO - Running monitoring cycle... -2025-09-12 03:38:32,644 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 03:38:32,644 - INFO - Generating LLM report... -2025-09-12 03:38:37,060 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is currently stopped; it exited unexpectedly."} -2025-09-12 03:43:37,061 - INFO - Running monitoring cycle... -2025-09-12 03:51:49,657 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 03:51:49,657 - INFO - Generating LLM report... -2025-09-12 03:51:54,154 - INFO - LLM Response: {'severity': 'high', 'reason': "The Docker container 'minecraft' is currently stopped with a status of exited."} -2025-09-12 03:56:54,155 - INFO - Running monitoring cycle... -2025-09-12 03:56:59,076 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 03:56:59,076 - INFO - Generating LLM report... -2025-09-12 03:57:03,536 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing issues; it has exited without starting properly."} -2025-09-12 04:02:03,537 - INFO - Running monitoring cycle... -2025-09-12 04:02:08,329 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 04:02:08,329 - INFO - Generating LLM report... -2025-09-12 04:02:12,826 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing a high-severity issue because it has exited unexpectedly."} -2025-09-12 04:07:12,827 - INFO - Running monitoring cycle... -2025-09-12 04:07:17,757 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 04:07:17,758 - INFO - Generating LLM report... -2025-09-12 04:07:22,220 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is currently stopped (exited)."} -2025-09-12 04:12:22,221 - INFO - Running monitoring cycle... -2025-09-12 04:19:22,413 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 04:19:22,413 - INFO - Generating LLM report... -2025-09-12 04:19:26,858 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing issues; it has exited unexpectedly."} -2025-09-12 04:24:26,859 - INFO - Running monitoring cycle... -2025-09-12 04:24:31,609 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 04:24:31,609 - INFO - Generating LLM report... -2025-09-12 04:24:36,083 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is currently stopped due to exiting unexpectedly."} -2025-09-12 04:29:36,084 - INFO - Running monitoring cycle... -2025-09-12 04:29:41,061 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 04:29:41,061 - INFO - Generating LLM report... -2025-09-12 04:29:45,514 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is currently exited; it needs immediate attention to restart."} -2025-09-12 04:34:45,514 - INFO - Running monitoring cycle... -2025-09-12 04:34:50,362 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 04:34:50,362 - INFO - Generating LLM report... -2025-09-12 04:34:54,814 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is reported as exited but expected it to be running."} -2025-09-12 04:39:54,814 - INFO - Running monitoring cycle... -2025-09-12 04:44:59,386 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 04:44:59,386 - INFO - Generating LLM report... -2025-09-12 04:45:03,795 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing issues; it has exited unexpectedly."} -2025-09-12 04:50:03,795 - INFO - Running monitoring cycle... -2025-09-12 04:50:08,722 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 04:50:08,722 - INFO - Generating LLM report... -2025-09-12 04:50:13,211 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing a high-severity issue: it has exited unexpectedly."} -2025-09-12 04:55:13,211 - INFO - Running monitoring cycle... -2025-09-12 04:55:18,089 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 04:55:18,090 - INFO - Generating LLM report... -2025-09-12 04:55:22,537 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing issues; it has exited unexpectedly."} -2025-09-12 05:00:22,537 - INFO - Running monitoring cycle... -2025-09-12 05:00:27,447 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 05:00:27,447 - INFO - Generating LLM report... -2025-09-12 05:00:31,926 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is currently stopped; it has exited instead of running."} -2025-09-12 05:05:31,926 - INFO - Running monitoring cycle... -2025-09-12 05:09:15,095 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 05:09:15,095 - INFO - Generating LLM report... -2025-09-12 05:09:19,556 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing issues with its current status being exited."} -2025-09-12 05:14:19,556 - INFO - Running monitoring cycle... -2025-09-12 05:14:24,464 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 05:14:24,464 - INFO - Generating LLM report... -2025-09-12 05:14:28,923 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing issues; it has exited unexpectedly."} -2025-09-12 05:19:28,924 - INFO - Running monitoring cycle... -2025-09-12 05:19:33,672 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 05:19:33,672 - INFO - Generating LLM report... -2025-09-12 05:19:38,211 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing a high severity issue: it has exited unexpectedly without running."} -2025-09-12 05:24:38,212 - INFO - Running monitoring cycle... -2025-09-12 05:24:43,102 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 05:24:43,103 - INFO - Generating LLM report... -2025-09-12 05:24:47,548 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing issues; it has exited without running."} -2025-09-12 05:29:47,549 - INFO - Running monitoring cycle... -2025-09-12 05:32:13,078 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 05:32:13,078 - INFO - Generating LLM report... -2025-09-12 05:32:17,497 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing issues; it has exited unexpectedly."} -2025-09-12 05:37:17,498 - INFO - Running monitoring cycle... -2025-09-12 05:37:22,423 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 05:37:22,423 - INFO - Generating LLM report... -2025-09-12 05:37:26,944 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is currently stopped; it has exited without completing its intended run."} -2025-09-12 05:42:26,945 - INFO - Running monitoring cycle... -2025-09-12 05:42:31,776 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 05:42:31,776 - INFO - Generating LLM report... -2025-09-12 05:42:36,296 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing a critical issue by exiting unexpectedly without restarting."} -2025-09-12 05:47:36,297 - INFO - Running monitoring cycle... -2025-09-12 05:47:41,185 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 05:47:41,185 - INFO - Generating LLM report... -2025-09-12 05:47:45,543 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is failing with status exited"} -2025-09-12 05:52:45,544 - INFO - Running monitoring cycle... -2025-09-12 05:53:14,803 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 05:53:14,804 - INFO - Generating LLM report... -2025-09-12 05:53:19,294 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing a critical failure due to exiting unexpectedly."} -2025-09-12 05:58:19,295 - INFO - Running monitoring cycle... -2025-09-12 05:58:24,251 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 05:58:24,251 - INFO - Generating LLM report... -2025-09-12 05:58:28,744 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is currently stopped with a status indicating it has exited."} -2025-09-12 06:03:28,744 - INFO - Running monitoring cycle... -2025-09-12 06:03:33,617 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 06:03:33,617 - INFO - Generating LLM report... -2025-09-12 06:03:38,072 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing issues; it has exited unexpectedly."} -2025-09-12 06:08:38,073 - INFO - Running monitoring cycle... -2025-09-12 06:08:42,881 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 06:08:42,881 - INFO - Generating LLM report... -2025-09-12 06:08:47,293 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is currently stopped with status exited."} -2025-09-12 06:13:47,293 - INFO - Running monitoring cycle... -2025-09-12 06:14:25,448 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 06:14:25,448 - INFO - Generating LLM report... -2025-09-12 06:14:29,911 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing issues; it has exited unexpectedly."} -2025-09-12 06:19:29,912 - INFO - Running monitoring cycle... -2025-09-12 06:19:34,742 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 06:19:34,742 - INFO - Generating LLM report... -2025-09-12 06:19:39,220 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is currently exited; it needs immediate attention to restart."} -2025-09-12 06:24:39,221 - INFO - Running monitoring cycle... -2025-09-12 06:24:44,125 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 06:24:44,125 - INFO - Generating LLM report... -2025-09-12 06:24:48,621 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is currently exited; it was detected to be stopped unexpectedly."} -2025-09-12 06:29:48,621 - INFO - Running monitoring cycle... -2025-09-12 06:29:53,541 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 06:29:53,541 - INFO - Generating LLM report... -2025-09-12 06:29:58,080 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing a high-severity issue due to it currently being exited."} -2025-09-12 06:34:58,080 - INFO - Running monitoring cycle... -2025-09-12 06:35:47,204 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 06:35:47,204 - INFO - Generating LLM report... -2025-09-12 06:35:51,673 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is currently exited but was expected to be running."} -2025-09-12 06:40:51,674 - INFO - Running monitoring cycle... -2025-09-12 06:40:56,563 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 06:40:56,563 - INFO - Generating LLM report... -2025-09-12 06:41:01,050 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing a high severity issue because it has exited unexpectedly."} -2025-09-12 06:46:01,051 - INFO - Running monitoring cycle... -2025-09-12 06:46:05,905 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 06:46:05,905 - INFO - Generating LLM report... -2025-09-12 06:46:10,628 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing a high-severity issue due to it currently being non-operational; its status indicates that it's exited."} -2025-09-12 06:51:10,629 - INFO - Running monitoring cycle... -2025-09-12 06:51:15,476 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 06:51:15,476 - INFO - Generating LLM report... -2025-09-12 06:51:19,909 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is currently exited but expected to be running."} -2025-09-12 06:56:19,910 - INFO - Running monitoring cycle... -2025-09-12 06:57:25,718 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 06:57:25,718 - INFO - Generating LLM report... -2025-09-12 06:57:30,226 - INFO - LLM Response: {'severity': 'high', 'reason': "The Docker container named 'minecraft' is currently non-operational; it has exited instead of running."} -2025-09-12 07:02:30,227 - INFO - Running monitoring cycle... -2025-09-12 07:02:35,137 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 07:02:35,137 - INFO - Generating LLM report... -2025-09-12 07:02:39,698 - INFO - LLM Response: {'severity': 'high', 'reason': "The Docker container named 'minecraft' is currently stopped (exited), which may lead to service disruption."} -2025-09-12 07:07:39,698 - INFO - Running monitoring cycle... -2025-09-12 07:07:44,589 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 07:07:44,589 - INFO - Generating LLM report... -2025-09-12 07:07:49,112 - INFO - LLM Response: {'severity': 'high', 'reason': "The Docker container 'minecraft' is currently stopped; it was previously running but has exited."} -2025-09-12 07:12:49,112 - INFO - Running monitoring cycle... -2025-09-12 07:12:53,947 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 07:12:53,947 - INFO - Generating LLM report... -2025-09-12 07:12:58,546 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing a high severity issue because it has exited unexpectedly; currently non-operational."} -2025-09-12 07:17:58,547 - INFO - Running monitoring cycle... -2025-09-12 07:20:50,611 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 07:20:50,611 - INFO - Generating LLM report... -2025-09-12 07:20:55,052 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is currently stopped because it exited unexpectedly."} -2025-09-12 07:25:55,053 - INFO - Running monitoring cycle... -2025-09-12 07:25:59,895 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 07:25:59,896 - INFO - Generating LLM report... -2025-09-12 07:26:04,344 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing issues; it has exited unexpectedly."} -2025-09-12 07:31:04,345 - INFO - Running monitoring cycle... -2025-09-12 07:31:09,159 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 07:31:09,159 - INFO - Generating LLM report... -2025-09-12 07:31:13,578 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is currently exited; it needs restarting."} -2025-09-12 07:36:13,579 - INFO - Running monitoring cycle... -2025-09-12 07:36:18,454 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 07:36:18,454 - INFO - Generating LLM report... -2025-09-12 07:36:22,933 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is currently exited; it needs immediate attention to restart."} -2025-09-12 07:41:22,933 - INFO - Running monitoring cycle... -2025-09-12 07:44:12,622 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 07:44:12,622 - INFO - Generating LLM report... -2025-09-12 07:44:17,148 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing issues with high severity due to its current status being exited."} -2025-09-12 07:49:17,149 - INFO - Running monitoring cycle... -2025-09-12 07:49:21,950 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 07:49:21,950 - INFO - Generating LLM report... -2025-09-12 07:49:26,392 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing issues; it has exited without running."} -2025-09-12 07:54:26,392 - INFO - Running monitoring cycle... -2025-09-12 07:54:31,307 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 07:54:31,307 - INFO - Generating LLM report... -2025-09-12 07:54:35,821 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing issues; it was found to be exited instead of running."} -2025-09-12 07:59:35,821 - INFO - Running monitoring cycle... -2025-09-12 07:59:40,681 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-12 07:59:40,681 - INFO - Generating LLM report... -2025-09-12 07:59:45,238 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing a critical issue; it has exited unexpectedly without starting."} -2025-09-12 08:04:45,238 - INFO - Running monitoring cycle... -2025-09-12 08:24:22,347 - INFO - Running monitoring cycle... -2025-09-12 08:29:27,291 - INFO - Running monitoring cycle... -2025-09-12 08:34:32,159 - INFO - Running monitoring cycle... -2025-09-12 08:39:37,142 - INFO - Running monitoring cycle... -2025-09-12 08:45:23,127 - INFO - Running monitoring cycle... -2025-09-12 08:50:28,048 - INFO - Running monitoring cycle... -2025-09-12 08:55:32,932 - INFO - Running monitoring cycle... -2025-09-12 09:00:37,799 - INFO - Running monitoring cycle... -2025-09-12 09:06:45,829 - INFO - Running monitoring cycle... -2025-09-12 09:11:50,790 - INFO - Running monitoring cycle... -2025-09-12 09:16:55,672 - INFO - Running monitoring cycle... -2025-09-12 09:22:00,607 - INFO - Running monitoring cycle... -2025-09-12 09:30:21,087 - INFO - Running monitoring cycle... -2025-09-12 09:35:26,010 - INFO - Running monitoring cycle... -2025-09-12 09:40:30,893 - INFO - Running monitoring cycle... -2025-09-12 09:45:35,713 - INFO - Running monitoring cycle... -2025-09-12 09:54:49,782 - INFO - Running monitoring cycle... -2025-09-12 09:59:54,654 - INFO - Running monitoring cycle... -2025-09-12 10:04:59,526 - INFO - Running monitoring cycle... -2025-09-12 10:10:04,355 - INFO - Running monitoring cycle... -2025-09-12 10:15:58,367 - INFO - Running monitoring cycle... -2025-09-12 10:21:03,218 - INFO - Running monitoring cycle... -2025-09-12 10:26:08,137 - INFO - Running monitoring cycle... -2025-09-12 10:31:13,026 - INFO - Running monitoring cycle... -2025-09-12 10:37:45,263 - INFO - Running monitoring cycle... -2025-09-12 10:42:50,079 - INFO - Running monitoring cycle... -2025-09-12 10:47:54,937 - INFO - Running monitoring cycle... -2025-09-12 10:52:59,881 - INFO - Running monitoring cycle... -2025-09-12 10:59:40,135 - INFO - Running monitoring cycle... -2025-09-12 11:04:45,024 - INFO - Running monitoring cycle... -2025-09-12 11:09:49,901 - INFO - Running monitoring cycle... -2025-09-12 11:14:54,748 - INFO - Running monitoring cycle... -2025-09-12 11:30:57,855 - INFO - Running monitoring cycle... -2025-09-12 11:36:02,730 - INFO - Running monitoring cycle... -2025-09-12 11:41:07,667 - INFO - Running monitoring cycle... -2025-09-12 11:46:12,527 - INFO - Running monitoring cycle... -2025-09-12 11:54:48,348 - INFO - Running monitoring cycle... -2025-09-12 11:59:53,305 - INFO - Running monitoring cycle... -2025-09-12 12:04:58,162 - INFO - Running monitoring cycle... -2025-09-12 12:10:02,992 - INFO - Running monitoring cycle... -2025-09-12 12:17:16,290 - INFO - Running monitoring cycle... -2025-09-12 12:22:21,100 - INFO - Running monitoring cycle... -2025-09-12 12:27:25,961 - INFO - Running monitoring cycle... -2025-09-12 12:32:30,814 - INFO - Running monitoring cycle... -2025-09-12 12:43:43,957 - INFO - Running monitoring cycle... -2025-09-12 12:48:48,964 - INFO - Running monitoring cycle... -2025-09-12 12:53:53,788 - INFO - Running monitoring cycle... -2025-09-12 12:58:58,682 - INFO - Running monitoring cycle... -2025-09-12 13:06:56,955 - INFO - Running monitoring cycle... -2025-09-12 13:12:01,889 - INFO - Running monitoring cycle... -2025-09-12 13:17:06,774 - INFO - Running monitoring cycle... -2025-09-12 13:22:11,772 - INFO - Running monitoring cycle... -2025-09-12 13:30:05,946 - INFO - Running monitoring cycle... -2025-09-12 13:35:10,795 - INFO - Running monitoring cycle... -2025-09-12 13:40:15,678 - INFO - Running monitoring cycle... -2025-09-12 13:45:20,616 - INFO - Running monitoring cycle... -2025-09-12 13:52:13,434 - INFO - Running monitoring cycle... -2025-09-12 13:57:18,388 - INFO - Running monitoring cycle... -2025-09-12 14:02:23,320 - INFO - Running monitoring cycle... -2025-09-12 14:07:28,176 - INFO - Running monitoring cycle... -2025-09-12 14:13:41,468 - INFO - Running monitoring cycle... -2025-09-12 14:18:46,157 - INFO - Running monitoring cycle... -2025-09-12 14:23:50,981 - INFO - Running monitoring cycle... -2025-09-12 14:28:55,670 - INFO - Running monitoring cycle... -2025-09-12 14:54:04,883 - INFO - Running monitoring cycle... -2025-09-12 14:59:09,652 - INFO - Running monitoring cycle... -2025-09-12 15:04:14,391 - INFO - Running monitoring cycle... -2025-09-12 15:09:19,086 - INFO - Running monitoring cycle... -2025-09-12 15:16:29,324 - INFO - Running monitoring cycle... -2025-09-12 15:21:34,063 - INFO - Running monitoring cycle... -2025-09-12 15:26:38,810 - INFO - Running monitoring cycle... -2025-09-12 15:31:43,485 - INFO - Running monitoring cycle... -2025-09-12 15:39:02,531 - INFO - Running monitoring cycle... -2025-09-12 15:44:07,204 - INFO - Running monitoring cycle... -2025-09-12 15:49:11,921 - INFO - Running monitoring cycle... -2025-09-12 15:54:16,703 - INFO - Running monitoring cycle... -2025-09-12 16:01:58,838 - INFO - Running monitoring cycle... -2025-09-12 16:07:03,505 - INFO - Running monitoring cycle... -2025-09-12 16:12:08,232 - INFO - Running monitoring cycle... -2025-09-12 16:17:12,994 - INFO - Running monitoring cycle... -2025-09-12 16:28:25,339 - INFO - Running monitoring cycle... -2025-09-12 16:33:30,102 - INFO - Running monitoring cycle... -2025-09-12 16:38:34,809 - INFO - Running monitoring cycle... -2025-09-12 16:43:39,527 - INFO - Running monitoring cycle... -2025-09-12 16:49:22,706 - INFO - Running monitoring cycle... -2025-09-12 16:54:27,359 - INFO - Running monitoring cycle... -2025-09-12 16:59:32,103 - INFO - Running monitoring cycle... -2025-09-12 17:04:36,895 - INFO - Running monitoring cycle... -2025-09-12 17:10:03,830 - INFO - Running monitoring cycle... -2025-09-12 17:15:08,472 - INFO - Running monitoring cycle... -2025-09-12 17:20:13,197 - INFO - Running monitoring cycle... -2025-09-12 17:25:17,928 - INFO - Running monitoring cycle... -2025-09-12 17:30:52,655 - INFO - Running monitoring cycle... -2025-09-12 17:35:57,395 - INFO - Running monitoring cycle... -2025-09-12 17:41:02,116 - INFO - Running monitoring cycle... -2025-09-12 17:46:06,924 - INFO - Running monitoring cycle... -2025-09-12 17:52:28,360 - INFO - Running monitoring cycle... -2025-09-12 17:57:33,032 - INFO - Running monitoring cycle... -2025-09-12 18:02:37,752 - INFO - Running monitoring cycle... -2025-09-12 18:07:42,485 - INFO - Running monitoring cycle... -2025-09-12 18:13:27,733 - INFO - Running monitoring cycle... -2025-09-12 18:18:32,425 - INFO - Running monitoring cycle... -2025-09-12 18:23:37,143 - INFO - Running monitoring cycle... -2025-09-12 18:28:41,899 - INFO - Running monitoring cycle... -2025-09-12 18:30:18,814 - ERROR - Error sending daily recap: 400 - b'{"content": ["Must be 2000 or fewer in length."]}' -2025-09-12 18:35:18,815 - INFO - Running monitoring cycle... -2025-09-12 18:40:23,536 - INFO - Running monitoring cycle... -2025-09-12 18:45:28,248 - INFO - Running monitoring cycle... -2025-09-12 18:50:32,949 - INFO - Running monitoring cycle... -2025-09-12 18:56:56,215 - INFO - Running monitoring cycle... -2025-09-12 19:02:00,980 - INFO - Running monitoring cycle... -2025-09-12 19:07:05,702 - INFO - Running monitoring cycle... -2025-09-12 19:12:10,381 - INFO - Running monitoring cycle... -2025-09-12 19:17:59,488 - INFO - Running monitoring cycle... -2025-09-12 19:23:04,205 - INFO - Running monitoring cycle... -2025-09-12 19:28:08,950 - INFO - Running monitoring cycle... -2025-09-12 19:33:13,587 - INFO - Running monitoring cycle... -2025-09-12 19:38:45,647 - INFO - Running monitoring cycle... -2025-09-12 19:43:50,385 - INFO - Running monitoring cycle... -2025-09-12 19:48:55,156 - INFO - Running monitoring cycle... -2025-09-12 19:53:59,850 - INFO - Running monitoring cycle... -2025-09-12 19:59:59,903 - INFO - Running monitoring cycle... -2025-09-12 20:05:04,677 - INFO - Running monitoring cycle... -2025-09-12 20:10:09,457 - INFO - Running monitoring cycle... -2025-09-12 20:15:14,185 - INFO - Running monitoring cycle... -2025-09-12 20:15:59,125 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': '12 failed login attempts detected.'}] -2025-09-12 20:15:59,125 - INFO - Generating LLM report... -2025-09-12 20:16:03,979 - INFO - LLM Response: {'severity': 'high', 'reason': '12 failed login attempts detected.'} -2025-09-12 20:16:04,182 - ERROR - Error sending Discord alert: 400 - b'{"content": ["Must be 2000 or fewer in length."]}' -2025-09-12 20:16:14,484 - INFO - Google Home alert sent successfully. -2025-09-12 20:21:14,486 - INFO - Running monitoring cycle... -2025-09-12 20:21:19,217 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': '10 failed login attempts detected.'}] -2025-09-12 20:21:19,217 - INFO - Generating LLM report... -2025-09-12 20:21:23,419 - INFO - LLM Response: {'severity': 'high', 'reason': '10 failed login attempts detected.'} -2025-09-12 20:21:23,635 - ERROR - Error sending Discord alert: 400 - b'{"content": ["Must be 2000 or fewer in length."]}' -2025-09-12 20:21:29,224 - INFO - Google Home alert sent successfully. -2025-09-12 20:26:29,226 - INFO - Running monitoring cycle... -2025-09-12 20:26:33,927 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': '5 failed login attempts detected.'}] -2025-09-12 20:26:33,927 - INFO - Generating LLM report... -2025-09-12 20:26:38,229 - INFO - LLM Response: {'severity': 'high', 'reason': '5 failed login attempts detected.'} -2025-09-12 20:26:38,622 - INFO - Discord alert sent successfully. -2025-09-12 20:26:44,529 - INFO - Google Home alert sent successfully. -2025-09-12 20:31:44,531 - INFO - Running monitoring cycle... -2025-09-12 20:31:49,259 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': '1 failed login attempts detected.'}] -2025-09-12 20:31:49,260 - INFO - Generating LLM report... -2025-09-12 20:31:53,512 - INFO - LLM Response: {'severity': 'high', 'reason': '1 failed login attempts detected.'} -2025-09-12 20:31:53,877 - INFO - Discord alert sent successfully. -2025-09-12 20:31:59,801 - INFO - Google Home alert sent successfully. -2025-09-12 20:36:59,802 - INFO - Running monitoring cycle... -2025-09-12 20:42:23,711 - INFO - Running monitoring cycle... -2025-09-12 20:47:28,363 - INFO - Running monitoring cycle... -2025-09-12 20:52:33,143 - INFO - Running monitoring cycle... -2025-09-12 20:57:37,939 - INFO - Running monitoring cycle... -2025-09-12 21:12:37,687 - INFO - Running monitoring cycle... -2025-09-12 21:17:42,406 - INFO - Running monitoring cycle... -2025-09-12 21:17:47,113 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': '4 failed login attempts detected.'}] -2025-09-12 21:17:47,113 - INFO - Generating LLM report... -2025-09-12 21:17:51,403 - INFO - LLM Response: {'severity': 'high', 'reason': '4 failed login attempts detected.'} -2025-09-12 21:17:51,630 - INFO - Discord alert sent successfully. -2025-09-12 21:17:57,201 - INFO - Google Home alert sent successfully. -2025-09-12 21:22:57,202 - INFO - Running monitoring cycle... -2025-09-12 21:23:01,964 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': '9 failed login attempts detected.'}] -2025-09-12 21:23:01,964 - INFO - Generating LLM report... -2025-09-12 21:23:06,262 - INFO - LLM Response: {'severity': 'high', 'reason': '9 failed login attempts detected.'} -2025-09-12 21:23:06,466 - ERROR - Error sending Discord alert: 400 - b'{"content": ["Must be 2000 or fewer in length."]}' -2025-09-12 21:23:12,211 - INFO - Google Home alert sent successfully. -2025-09-12 21:28:12,213 - INFO - Running monitoring cycle... -2025-09-12 21:29:10,470 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': '1 failed login attempts detected.'}] -2025-09-12 21:29:10,470 - INFO - Generating LLM report... -2025-09-12 21:29:14,755 - INFO - LLM Response: {'severity': 'high', 'reason': '1 failed login attempts detected.'} -2025-09-12 21:29:14,913 - ERROR - Error sending Discord alert: 400 - b'{"content": ["Must be 2000 or fewer in length."]}' -2025-09-12 21:29:20,673 - INFO - Google Home alert sent successfully. -2025-09-12 21:34:20,674 - INFO - Running monitoring cycle... -2025-09-12 21:39:25,458 - INFO - Running monitoring cycle... -2025-09-12 21:44:30,160 - INFO - Running monitoring cycle... -2025-09-12 21:49:34,941 - INFO - Running monitoring cycle... -2025-09-12 22:00:20,283 - INFO - Running monitoring cycle... -2025-09-12 22:05:24,993 - INFO - Running monitoring cycle... -2025-09-12 22:10:29,713 - INFO - Running monitoring cycle... -2025-09-12 22:15:34,394 - INFO - Running monitoring cycle... -2025-09-12 22:21:05,150 - INFO - Running monitoring cycle... -2025-09-12 22:26:09,884 - INFO - Running monitoring cycle... -2025-09-12 22:31:14,630 - INFO - Running monitoring cycle... -2025-09-12 22:36:19,321 - INFO - Running monitoring cycle... -2025-09-12 22:41:55,894 - INFO - Running monitoring cycle... -2025-09-12 22:42:00,637 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': '4 failed login attempts detected.'}] -2025-09-12 22:42:00,637 - INFO - Generating LLM report... -2025-09-12 22:42:04,917 - INFO - LLM Response: {'severity': 'high', 'reason': '4 failed login attempts detected.'} -2025-09-12 22:42:05,121 - INFO - Discord alert sent successfully. -2025-09-12 22:42:10,800 - INFO - Google Home alert sent successfully. -2025-09-12 22:47:10,800 - INFO - Running monitoring cycle... -2025-09-12 22:47:15,520 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': '12 failed login attempts detected.'}] -2025-09-12 22:47:15,520 - INFO - Generating LLM report... -2025-09-12 22:47:19,813 - INFO - LLM Response: {'severity': 'high', 'reason': '12 failed login attempts detected.'} -2025-09-12 22:47:19,966 - ERROR - Error sending Discord alert: 400 - b'{"content": ["Must be 2000 or fewer in length."]}' -2025-09-12 22:47:25,585 - INFO - Google Home alert sent successfully. -2025-09-12 22:52:25,586 - INFO - Running monitoring cycle... -2025-09-12 22:57:30,347 - INFO - Running monitoring cycle... -2025-09-12 23:02:55,959 - INFO - Running monitoring cycle... -2025-09-12 23:08:00,626 - INFO - Running monitoring cycle... -2025-09-12 23:08:05,349 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': '6 failed login attempts detected.'}] -2025-09-12 23:08:05,349 - INFO - Generating LLM report... -2025-09-12 23:08:09,786 - INFO - LLM Response: {'severity': 'high', 'reason': 'High risk of unauthorized access attempt due to multiple failed login attempts detected.'} -2025-09-12 23:08:10,166 - INFO - Discord alert sent successfully. -2025-09-12 23:08:15,837 - INFO - Google Home alert sent successfully. -2025-09-12 23:13:15,838 - INFO - Running monitoring cycle... -2025-09-12 23:13:20,621 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': '5 failed login attempts detected.'}] -2025-09-12 23:13:20,621 - INFO - Generating LLM report... -2025-09-12 23:13:24,932 - INFO - LLM Response: {'severity': 'high', 'reason': '5 failed login attempts detected.'} -2025-09-12 23:13:25,152 - INFO - Discord alert sent successfully. -2025-09-12 23:13:30,816 - INFO - Google Home alert sent successfully. -2025-09-12 23:18:30,817 - INFO - Running monitoring cycle... -2025-09-12 23:19:10,831 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': '5 failed login attempts detected.'}] -2025-09-12 23:19:10,831 - INFO - Generating LLM report... -2025-09-12 23:19:15,114 - INFO - LLM Response: {'severity': 'high', 'reason': '5 failed login attempts detected.'} -2025-09-12 23:19:15,335 - ERROR - Error sending Discord alert: 400 - b'{"content": ["Must be 2000 or fewer in length."]}' -2025-09-12 23:19:21,030 - INFO - Google Home alert sent successfully. -2025-09-12 23:24:21,032 - INFO - Running monitoring cycle... -2025-09-12 23:24:25,791 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': '5 failed login attempts detected.'}] -2025-09-12 23:24:25,791 - INFO - Generating LLM report... -2025-09-12 23:24:30,126 - INFO - LLM Response: {'severity': 'high', 'reason': 'Multiple failed login attempts detected indicating a possible brute force attack.'} -2025-09-12 23:24:30,339 - INFO - Discord alert sent successfully. -2025-09-12 23:24:36,241 - INFO - Google Home alert sent successfully. -2025-09-12 23:29:36,242 - INFO - Running monitoring cycle... diff --git a/monitoring_agent.log.2025-09-11 b/monitoring_agent.log.2025-09-11 deleted file mode 100755 index 97a1e07..0000000 --- a/monitoring_agent.log.2025-09-11 +++ /dev/null @@ -1,385 +0,0 @@ -2025-09-11 00:04:51,665 - INFO - Running monitoring cycle... -2025-09-11 00:09:56,511 - INFO - Running monitoring cycle... -2025-09-11 00:15:01,418 - INFO - Running monitoring cycle... -2025-09-11 00:22:14,901 - INFO - Running monitoring cycle... -2025-09-11 00:27:19,775 - INFO - Running monitoring cycle... -2025-09-11 00:32:24,642 - INFO - Running monitoring cycle... -2025-09-11 00:37:29,551 - INFO - Running monitoring cycle... -2025-09-11 00:45:33,334 - INFO - Running monitoring cycle... -2025-09-11 00:50:38,143 - INFO - Running monitoring cycle... -2025-09-11 00:55:43,008 - INFO - Running monitoring cycle... -2025-09-11 01:00:47,785 - INFO - Running monitoring cycle... -2025-09-11 01:10:15,342 - INFO - Running monitoring cycle... -2025-09-11 01:15:20,147 - INFO - Running monitoring cycle... -2025-09-11 01:20:24,967 - INFO - Running monitoring cycle... -2025-09-11 01:25:29,779 - INFO - Running monitoring cycle... -2025-09-11 01:32:50,679 - INFO - Running monitoring cycle... -2025-09-11 01:37:55,552 - INFO - Running monitoring cycle... -2025-09-11 01:43:00,349 - INFO - Running monitoring cycle... -2025-09-11 01:48:05,179 - INFO - Running monitoring cycle... -2025-09-11 01:53:29,091 - INFO - Running monitoring cycle... -2025-09-11 01:58:33,970 - INFO - Running monitoring cycle... -2025-09-11 02:03:38,879 - INFO - Running monitoring cycle... -2025-09-11 02:03:43,687 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 02:03:43,687 - INFO - Generating LLM report... -2025-09-11 02:03:48,148 - INFO - LLM Response: {'severity': 'high', 'reason': "The Docker container 'minecraft' is currently stopped; it exited unexpectedly."} -2025-09-11 02:08:48,148 - INFO - Running monitoring cycle... -2025-09-11 02:12:14,556 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 02:12:14,556 - INFO - Generating LLM report... -2025-09-11 02:12:19,048 - INFO - LLM Response: {'severity': 'high', 'reason': "The Docker container 'minecraft' is currently stopped because it exited unexpectedly."} -2025-09-11 02:17:19,048 - INFO - Running monitoring cycle... -2025-09-11 02:17:23,853 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 02:17:23,853 - INFO - Generating LLM report... -2025-09-11 02:17:28,373 - INFO - LLM Response: {'severity': 'high', 'reason': "The Docker container 'minecraft' is experiencing issues because it has exited unexpectedly."} -2025-09-11 02:22:28,374 - INFO - Running monitoring cycle... -2025-09-11 02:22:33,260 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 02:22:33,260 - INFO - Generating LLM report... -2025-09-11 02:22:37,730 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing issues; it has exited unexpectedly."} -2025-09-11 02:27:37,731 - INFO - Running monitoring cycle... -2025-09-11 02:27:42,578 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 02:27:42,578 - INFO - Generating LLM report... -2025-09-11 02:27:47,118 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is currently exited; it needs restarting to resume operation."} -2025-09-11 02:32:47,119 - INFO - Running monitoring cycle... -2025-09-11 02:37:35,859 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 02:37:35,859 - INFO - Generating LLM report... -2025-09-11 02:37:40,316 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing a critical issue; it has exited unexpectedly."} -2025-09-11 02:42:40,317 - INFO - Running monitoring cycle... -2025-09-11 02:42:45,241 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 02:42:45,241 - INFO - Generating LLM report... -2025-09-11 02:42:49,757 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing a high-severity issue because it has exited unexpectedly."} -2025-09-11 02:47:49,757 - INFO - Running monitoring cycle... -2025-09-11 02:47:54,639 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 02:47:54,639 - INFO - Generating LLM report... -2025-09-11 02:47:59,106 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is currently exited but expected it should be running."} -2025-09-11 02:52:59,106 - INFO - Running monitoring cycle... -2025-09-11 02:53:03,956 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 02:53:03,956 - INFO - Generating LLM report... -2025-09-11 02:53:08,472 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is currently exited; it was previously running but has since stopped."} -2025-09-11 02:58:08,473 - INFO - Running monitoring cycle... -2025-09-11 03:03:25,804 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 03:03:25,804 - INFO - Generating LLM report... -2025-09-11 03:03:30,310 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is currently exited but expected to be running."} -2025-09-11 03:08:30,310 - INFO - Running monitoring cycle... -2025-09-11 03:08:35,155 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 03:08:35,155 - INFO - Generating LLM report... -2025-09-11 03:08:39,602 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing issues; it has exited unexpectedly."} -2025-09-11 03:13:39,602 - INFO - Running monitoring cycle... -2025-09-11 03:13:44,568 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 03:13:44,568 - INFO - Generating LLM report... -2025-09-11 03:13:49,020 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing issues; it has exited without running."} -2025-09-11 03:18:49,020 - INFO - Running monitoring cycle... -2025-09-11 03:18:53,774 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 03:18:53,774 - INFO - Generating LLM report... -2025-09-11 03:18:58,209 - INFO - LLM Response: {'severity': 'high', 'reason': "The Docker container 'minecraft' is currently stopped; it has exited."} -2025-09-11 03:23:58,210 - INFO - Running monitoring cycle... -2025-09-11 04:05:39,851 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 04:05:39,851 - INFO - Generating LLM report... -2025-09-11 04:05:44,363 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is currently stopped; it was previously running but has exited."} -2025-09-11 04:10:44,363 - INFO - Running monitoring cycle... -2025-09-11 04:10:49,262 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 04:10:49,262 - INFO - Generating LLM report... -2025-09-11 04:10:53,883 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing a critical failure due to its non-running status with current condition of exited."} -2025-09-11 04:15:53,883 - INFO - Running monitoring cycle... -2025-09-11 04:15:58,713 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 04:15:58,713 - INFO - Generating LLM report... -2025-09-11 04:16:03,152 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing issues; it exited unexpectedly."} -2025-09-11 04:21:03,153 - INFO - Running monitoring cycle... -2025-09-11 04:21:08,040 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 04:21:08,040 - INFO - Generating LLM report... -2025-09-11 04:21:12,444 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is currently stopped; it has exited."} -2025-09-11 04:26:12,444 - INFO - Running monitoring cycle... -2025-09-11 04:31:43,445 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 04:31:43,445 - INFO - Generating LLM report... -2025-09-11 04:31:48,058 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing issues; it was found to be exited instead of running."} -2025-09-11 04:36:48,059 - INFO - Running monitoring cycle... -2025-09-11 04:36:52,830 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 04:36:52,830 - INFO - Generating LLM report... -2025-09-11 04:36:57,290 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is not running; current status: exited"} -2025-09-11 04:41:57,290 - INFO - Running monitoring cycle... -2025-09-11 04:42:02,138 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 04:42:02,138 - INFO - Generating LLM report... -2025-09-11 04:42:06,615 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is currently exited; it needs restarting to become active again."} -2025-09-11 04:47:06,615 - INFO - Running monitoring cycle... -2025-09-11 04:47:11,494 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 04:47:11,494 - INFO - Generating LLM report... -2025-09-11 04:47:16,097 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is currently stopped because it has exited; this service should be running to fulfill its intended purpose."} -2025-09-11 04:52:16,097 - INFO - Running monitoring cycle... -2025-09-11 04:56:04,815 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 04:56:04,815 - INFO - Generating LLM report... -2025-09-11 04:56:09,346 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is currently exited; it needs immediate attention to ensure service availability."} -2025-09-11 05:01:09,346 - INFO - Running monitoring cycle... -2025-09-11 05:01:14,240 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 05:01:14,240 - INFO - Generating LLM report... -2025-09-11 05:01:18,690 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing issues; it has exited unexpectedly."} -2025-09-11 05:06:18,691 - INFO - Running monitoring cycle... -2025-09-11 05:06:23,519 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 05:06:23,519 - INFO - Generating LLM report... -2025-09-11 05:06:28,035 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing a high severity issue because it has exited unexpectedly."} -2025-09-11 05:11:28,036 - INFO - Running monitoring cycle... -2025-09-11 05:11:32,869 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 05:11:32,869 - INFO - Generating LLM report... -2025-09-11 05:11:37,423 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing issues with its running status; it has exited unexpectedly."} -2025-09-11 05:16:37,424 - INFO - Running monitoring cycle... -2025-09-11 05:18:06,096 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 05:18:06,096 - INFO - Generating LLM report... -2025-09-11 05:18:10,542 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing issues; it exited unexpectedly."} -2025-09-11 05:23:10,542 - INFO - Running monitoring cycle... -2025-09-11 05:23:15,375 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 05:23:15,375 - INFO - Generating LLM report... -2025-09-11 05:23:19,860 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing a critical failure due to it exiting unexpectedly."} -2025-09-11 05:28:19,860 - INFO - Running monitoring cycle... -2025-09-11 05:28:24,634 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 05:28:24,634 - INFO - Generating LLM report... -2025-09-11 05:28:29,153 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing a high severity issue because it has exited unexpectedly."} -2025-09-11 05:33:29,153 - INFO - Running monitoring cycle... -2025-09-11 05:33:33,949 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 05:33:33,949 - INFO - Generating LLM report... -2025-09-11 05:33:38,413 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is not running; current status: exited"} -2025-09-11 05:38:38,414 - INFO - Running monitoring cycle... -2025-09-11 05:50:28,289 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 05:50:28,289 - INFO - Generating LLM report... -2025-09-11 05:50:32,735 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is currently exited; it should be running."} -2025-09-11 05:55:32,736 - INFO - Running monitoring cycle... -2025-09-11 05:55:37,612 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 05:55:37,612 - INFO - Generating LLM report... -2025-09-11 05:55:42,115 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is currently stopped (exited), indicating a possible issue with service availability."} -2025-09-11 06:00:42,115 - INFO - Running monitoring cycle... -2025-09-11 06:00:47,078 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 06:00:47,078 - INFO - Generating LLM report... -2025-09-11 06:00:51,635 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing issues; it was found to be exited instead of running."} -2025-09-11 06:05:51,636 - INFO - Running monitoring cycle... -2025-09-11 06:05:56,521 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 06:05:56,522 - INFO - Generating LLM report... -2025-09-11 06:06:00,981 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing issues; it has exited unexpectedly."} -2025-09-11 06:11:00,982 - INFO - Running monitoring cycle... -2025-09-11 06:15:15,686 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 06:15:15,686 - INFO - Generating LLM report... -2025-09-11 06:15:20,116 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is currently stopped; its status indicates it has exited."} -2025-09-11 06:20:20,116 - INFO - Running monitoring cycle... -2025-09-11 06:20:24,978 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 06:20:24,978 - INFO - Generating LLM report... -2025-09-11 06:20:29,417 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is currently exited but expected to be running."} -2025-09-11 06:25:29,418 - INFO - Running monitoring cycle... -2025-09-11 06:25:34,271 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 06:25:34,271 - INFO - Generating LLM report... -2025-09-11 06:25:38,732 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is not running; current status: exited."} -2025-09-11 06:30:38,732 - INFO - Running monitoring cycle... -2025-09-11 06:30:43,615 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 06:30:43,616 - INFO - Generating LLM report... -2025-09-11 06:30:48,209 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing a critical issue; it has exited unexpectedly which may cause service disruptions."} -2025-09-11 06:35:48,209 - INFO - Running monitoring cycle... -2025-09-11 06:38:03,999 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 06:38:03,999 - INFO - Generating LLM report... -2025-09-11 06:38:08,493 - INFO - LLM Response: {'severity': 'high', 'reason': "The Docker container 'minecraft' is currently stopped (exited) instead of being active."} -2025-09-11 06:43:08,493 - INFO - Running monitoring cycle... -2025-09-11 06:43:13,334 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 06:43:13,334 - INFO - Generating LLM report... -2025-09-11 06:43:17,827 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing a failure due to it exiting unexpectedly."} -2025-09-11 06:48:17,828 - INFO - Running monitoring cycle... -2025-09-11 06:48:22,684 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 06:48:22,684 - INFO - Generating LLM report... -2025-09-11 06:48:27,145 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is currently stopped; it exited unexpectedly."} -2025-09-11 06:53:27,146 - INFO - Running monitoring cycle... -2025-09-11 06:53:31,989 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 06:53:31,989 - INFO - Generating LLM report... -2025-09-11 06:53:36,444 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is currently stopped; it has exited unexpectedly."} -2025-09-11 06:58:36,444 - INFO - Running monitoring cycle... -2025-09-11 07:03:49,715 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 07:03:49,716 - INFO - Generating LLM report... -2025-09-11 07:03:54,213 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is reported missing; it has exited without remaining active."} -2025-09-11 07:08:54,213 - INFO - Running monitoring cycle... -2025-09-11 07:08:59,060 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 07:08:59,060 - INFO - Generating LLM report... -2025-09-11 07:09:03,485 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is currently exited; it should be running."} -2025-09-11 07:14:03,486 - INFO - Running monitoring cycle... -2025-09-11 07:14:08,435 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 07:14:08,435 - INFO - Generating LLM report... -2025-09-11 07:14:13,060 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing a critical issue by exiting unexpectedly; it needs immediate attention to ensure it's running correctly."} -2025-09-11 07:19:13,061 - INFO - Running monitoring cycle... -2025-09-11 07:19:17,876 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 07:19:17,877 - INFO - Generating LLM report... -2025-09-11 07:19:22,349 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing issues due to its current status being exited."} -2025-09-11 07:24:22,350 - INFO - Running monitoring cycle... -2025-09-11 07:26:31,449 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 07:26:31,449 - INFO - Generating LLM report... -2025-09-11 07:26:35,969 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing a high severity issue because it has exited unexpectedly."} -2025-09-11 07:31:35,969 - INFO - Running monitoring cycle... -2025-09-11 07:31:40,833 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 07:31:40,833 - INFO - Generating LLM report... -2025-09-11 07:31:45,265 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is currently stopped because it exited unexpectedly."} -2025-09-11 07:36:45,266 - INFO - Running monitoring cycle... -2025-09-11 07:36:50,176 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 07:36:50,176 - INFO - Generating LLM report... -2025-09-11 07:36:54,687 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is currently stopped; it has exited with status: exited."} -2025-09-11 07:41:54,688 - INFO - Running monitoring cycle... -2025-09-11 07:41:59,530 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 07:41:59,530 - INFO - Generating LLM report... -2025-09-11 07:42:04,008 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is currently exited but expected to be running."} -2025-09-11 07:47:04,008 - INFO - Running monitoring cycle... -2025-09-11 07:47:55,200 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 07:47:55,200 - INFO - Generating LLM report... -2025-09-11 07:47:59,625 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing issues since it exited unexpectedly."} -2025-09-11 07:52:59,626 - INFO - Running monitoring cycle... -2025-09-11 07:53:04,476 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 07:53:04,476 - INFO - Generating LLM report... -2025-09-11 07:53:08,919 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is currently stopped; status: exited"} -2025-09-11 07:58:08,920 - INFO - Running monitoring cycle... -2025-09-11 07:58:13,740 - INFO - Detected 1 anomalies: [{'severity': 'high', 'reason': "Docker container 'minecraft' is not running. Current status: exited"}] -2025-09-11 07:58:13,740 - INFO - Generating LLM report... -2025-09-11 07:58:18,284 - INFO - LLM Response: {'severity': 'high', 'reason': "Docker container 'minecraft' is experiencing a critical issue; it has exited unexpectedly without running."} -2025-09-11 08:03:18,285 - INFO - Running monitoring cycle... -2025-09-11 08:08:23,063 - INFO - Running monitoring cycle... -2025-09-11 08:15:35,280 - INFO - Running monitoring cycle... -2025-09-11 08:20:40,124 - INFO - Running monitoring cycle... -2025-09-11 08:25:44,921 - INFO - Running monitoring cycle... -2025-09-11 08:30:49,800 - INFO - Running monitoring cycle... -2025-09-11 08:38:55,923 - INFO - Running monitoring cycle... -2025-09-11 08:44:00,734 - INFO - Running monitoring cycle... -2025-09-11 08:49:05,568 - INFO - Running monitoring cycle... -2025-09-11 08:54:10,297 - INFO - Running monitoring cycle... -2025-09-11 09:00:32,999 - INFO - Running monitoring cycle... -2025-09-11 09:05:37,724 - INFO - Running monitoring cycle... -2025-09-11 09:10:42,529 - INFO - Running monitoring cycle... -2025-09-11 09:15:47,383 - INFO - Running monitoring cycle... -2025-09-11 09:44:41,523 - INFO - Running monitoring cycle... -2025-09-11 09:49:46,378 - INFO - Running monitoring cycle... -2025-09-11 09:54:51,238 - INFO - Running monitoring cycle... -2025-09-11 09:59:56,060 - INFO - Running monitoring cycle... -2025-09-11 10:10:13,377 - INFO - Running monitoring cycle... -2025-09-11 10:15:18,178 - INFO - Running monitoring cycle... -2025-09-11 10:20:23,005 - INFO - Running monitoring cycle... -2025-09-11 10:25:27,867 - INFO - Running monitoring cycle... -2025-09-11 10:31:37,669 - INFO - Running monitoring cycle... -2025-09-11 10:36:42,527 - INFO - Running monitoring cycle... -2025-09-11 10:41:47,390 - INFO - Running monitoring cycle... -2025-09-11 10:46:52,147 - INFO - Running monitoring cycle... -2025-09-11 10:52:16,736 - INFO - Running monitoring cycle... -2025-09-11 10:57:21,578 - INFO - Running monitoring cycle... -2025-09-11 11:02:26,456 - INFO - Running monitoring cycle... -2025-09-11 11:07:31,408 - INFO - Running monitoring cycle... -2025-09-11 11:20:55,787 - INFO - Running monitoring cycle... -2025-09-11 11:26:00,662 - INFO - Running monitoring cycle... -2025-09-11 11:31:05,478 - INFO - Running monitoring cycle... -2025-09-11 11:36:10,314 - INFO - Running monitoring cycle... -2025-09-11 11:45:19,749 - INFO - Running monitoring cycle... -2025-09-11 11:50:24,597 - INFO - Running monitoring cycle... -2025-09-11 11:55:29,408 - INFO - Running monitoring cycle... -2025-09-11 12:00:34,325 - INFO - Running monitoring cycle... -2025-09-11 12:07:19,281 - INFO - Running monitoring cycle... -2025-09-11 12:12:24,086 - INFO - Running monitoring cycle... -2025-09-11 12:17:28,851 - INFO - Running monitoring cycle... -2025-09-11 12:22:33,657 - INFO - Running monitoring cycle... -2025-09-11 12:44:40,389 - INFO - Running monitoring cycle... -2025-09-11 12:49:45,296 - INFO - Running monitoring cycle... -2025-09-11 12:54:50,143 - INFO - Running monitoring cycle... -2025-09-11 12:59:54,948 - INFO - Running monitoring cycle... -2025-09-11 13:08:06,412 - INFO - Running monitoring cycle... -2025-09-11 13:13:11,258 - INFO - Running monitoring cycle... -2025-09-11 13:18:16,155 - INFO - Running monitoring cycle... -2025-09-11 13:23:21,046 - INFO - Running monitoring cycle... -2025-09-11 13:32:55,089 - INFO - Running monitoring cycle... -2025-09-11 13:37:59,949 - INFO - Running monitoring cycle... -2025-09-11 13:43:04,813 - INFO - Running monitoring cycle... -2025-09-11 13:48:09,666 - INFO - Running monitoring cycle... -2025-09-11 13:59:52,272 - INFO - Running monitoring cycle... -2025-09-11 14:04:57,070 - INFO - Running monitoring cycle... -2025-09-11 14:10:01,891 - INFO - Running monitoring cycle... -2025-09-11 14:15:06,725 - INFO - Running monitoring cycle... -2025-09-11 14:22:59,290 - INFO - Running monitoring cycle... -2025-09-11 14:28:04,061 - INFO - Running monitoring cycle... -2025-09-11 14:33:08,906 - INFO - Running monitoring cycle... -2025-09-11 14:38:13,762 - INFO - Running monitoring cycle... -2025-09-11 14:45:11,555 - INFO - Running monitoring cycle... -2025-09-11 14:50:16,442 - INFO - Running monitoring cycle... -2025-09-11 14:55:21,397 - INFO - Running monitoring cycle... -2025-09-11 15:00:26,204 - INFO - Running monitoring cycle... -2025-09-11 15:07:45,029 - INFO - Running monitoring cycle... -2025-09-11 15:12:49,793 - INFO - Running monitoring cycle... -2025-09-11 15:17:54,667 - INFO - Running monitoring cycle... -2025-09-11 15:22:59,612 - INFO - Running monitoring cycle... -2025-09-11 15:34:57,682 - INFO - Running monitoring cycle... -2025-09-11 15:40:02,516 - INFO - Running monitoring cycle... -2025-09-11 15:45:07,323 - INFO - Running monitoring cycle... -2025-09-11 15:50:12,214 - INFO - Running monitoring cycle... -2025-09-11 15:56:21,738 - INFO - Running monitoring cycle... -2025-09-11 16:01:26,563 - INFO - Running monitoring cycle... -2025-09-11 16:06:31,493 - INFO - Running monitoring cycle... -2025-09-11 16:11:36,291 - INFO - Running monitoring cycle... -2025-09-11 16:19:09,106 - INFO - Running monitoring cycle... -2025-09-11 16:24:14,019 - INFO - Running monitoring cycle... -2025-09-11 16:29:18,799 - INFO - Running monitoring cycle... -2025-09-11 16:34:23,693 - INFO - Running monitoring cycle... -2025-09-11 16:45:50,649 - INFO - Running monitoring cycle... -2025-09-11 16:50:55,474 - INFO - Running monitoring cycle... -2025-09-11 16:56:00,583 - INFO - Running monitoring cycle... -2025-09-11 17:01:05,384 - INFO - Running monitoring cycle... -2025-09-11 17:10:09,071 - INFO - Running monitoring cycle... -2025-09-11 17:15:13,946 - INFO - Running monitoring cycle... -2025-09-11 17:20:18,804 - INFO - Running monitoring cycle... -2025-09-11 17:25:23,639 - INFO - Running monitoring cycle... -2025-09-11 17:31:43,544 - INFO - Running monitoring cycle... -2025-09-11 17:36:48,405 - INFO - Running monitoring cycle... -2025-09-11 17:41:53,271 - INFO - Running monitoring cycle... -2025-09-11 17:46:58,164 - INFO - Running monitoring cycle... -2025-09-11 17:58:44,970 - INFO - Running monitoring cycle... -2025-09-11 18:03:49,792 - INFO - Running monitoring cycle... -2025-09-11 18:08:54,676 - INFO - Running monitoring cycle... -2025-09-11 18:13:59,524 - INFO - Running monitoring cycle... -2025-09-11 18:20:00,092 - INFO - Running monitoring cycle... -2025-09-11 18:25:04,913 - INFO - Running monitoring cycle... -2025-09-11 18:30:09,756 - INFO - Running monitoring cycle... -2025-09-11 18:30:14,781 - ERROR - Error sending daily recap: 400 - b'{"content": ["Must be 2000 or fewer in length."]}' -2025-09-11 18:35:14,782 - INFO - Running monitoring cycle... -2025-09-11 18:43:55,321 - INFO - Running monitoring cycle... -2025-09-11 18:49:00,144 - INFO - Running monitoring cycle... -2025-09-11 18:54:04,979 - INFO - Running monitoring cycle... -2025-09-11 18:59:09,834 - INFO - Running monitoring cycle... -2025-09-11 19:05:53,204 - INFO - Running monitoring cycle... -2025-09-11 19:10:58,053 - INFO - Running monitoring cycle... -2025-09-11 19:16:02,920 - INFO - Running monitoring cycle... -2025-09-11 19:21:07,740 - INFO - Running monitoring cycle... -2025-09-11 19:34:48,870 - INFO - Running monitoring cycle... -2025-09-11 19:39:53,662 - INFO - Running monitoring cycle... -2025-09-11 19:44:58,484 - INFO - Running monitoring cycle... -2025-09-11 19:50:03,337 - INFO - Running monitoring cycle... -2025-09-11 19:57:37,782 - INFO - Running monitoring cycle... -2025-09-11 20:02:42,627 - INFO - Running monitoring cycle... -2025-09-11 20:07:47,540 - INFO - Running monitoring cycle... -2025-09-11 20:12:52,375 - INFO - Running monitoring cycle... -2025-09-11 20:20:37,024 - INFO - Running monitoring cycle... -2025-09-11 20:25:41,885 - INFO - Running monitoring cycle... -2025-09-11 20:30:46,752 - INFO - Running monitoring cycle... -2025-09-11 20:35:51,670 - INFO - Running monitoring cycle... -2025-09-11 20:46:11,294 - INFO - Running monitoring cycle... -2025-09-11 20:51:16,177 - INFO - Running monitoring cycle... -2025-09-11 20:56:21,075 - INFO - Running monitoring cycle... -2025-09-11 21:01:25,928 - INFO - Running monitoring cycle... -2025-09-11 21:08:48,541 - INFO - Running monitoring cycle... -2025-09-11 21:13:53,426 - INFO - Running monitoring cycle... -2025-09-11 21:18:58,313 - INFO - Running monitoring cycle... -2025-09-11 21:24:03,236 - INFO - Running monitoring cycle... -2025-09-11 21:30:30,591 - INFO - Running monitoring cycle... -2025-09-11 21:35:35,483 - INFO - Running monitoring cycle... -2025-09-11 21:40:40,280 - INFO - Running monitoring cycle... -2025-09-11 21:45:45,140 - INFO - Running monitoring cycle... -2025-09-11 21:53:04,976 - INFO - Running monitoring cycle... -2025-09-11 21:58:09,936 - INFO - Running monitoring cycle... -2025-09-11 22:03:14,821 - INFO - Running monitoring cycle... -2025-09-11 22:08:19,722 - INFO - Running monitoring cycle... -2025-09-11 22:14:51,432 - INFO - Running monitoring cycle... -2025-09-11 22:19:56,363 - INFO - Running monitoring cycle... -2025-09-11 22:25:01,192 - INFO - Running monitoring cycle... -2025-09-11 22:30:06,004 - INFO - Running monitoring cycle... -2025-09-11 22:44:27,318 - INFO - Running monitoring cycle... -2025-09-11 22:49:32,212 - INFO - Running monitoring cycle... -2025-09-11 22:54:37,144 - INFO - Running monitoring cycle... -2025-09-11 22:59:41,991 - INFO - Running monitoring cycle... -2025-09-11 23:06:29,121 - INFO - Running monitoring cycle... -2025-09-11 23:11:34,069 - INFO - Running monitoring cycle... -2025-09-11 23:16:38,903 - INFO - Running monitoring cycle... -2025-09-11 23:21:43,765 - INFO - Running monitoring cycle... -2025-09-11 23:34:33,909 - INFO - Running monitoring cycle... -2025-09-11 23:39:38,766 - INFO - Running monitoring cycle... -2025-09-11 23:44:43,614 - INFO - Running monitoring cycle... -2025-09-11 23:49:48,501 - INFO - Running monitoring cycle... -2025-09-11 23:57:02,352 - INFO - Running monitoring cycle... diff --git a/tmp/monitoring_agent.log b/tmp/monitoring_agent.log index 16aa36f..e3b45cd 100755 --- a/tmp/monitoring_agent.log +++ b/tmp/monitoring_agent.log @@ -468,3 +468,11 @@ 2025-09-15 13:05:10,695 - DEBUG - __main__ - Exiting analyze_data_locally 2025-09-15 13:05:10,695 - DEBUG - __main__ - Exiting run_monitoring_cycle 2025-09-15 13:05:10,695 - DEBUG - __main__ - Exiting main +2025-09-15 13:21:41,948 - INFO - Running in test mode... +2025-09-15 13:21:41,949 - INFO - Running monitoring cycle... +2025-09-15 13:21:44,096 - WARNING - Nmap -sS scan requires root privileges. Falling back to -sT. +2025-09-15 13:21:56,641 - INFO - Detected 9 anomalies: [{'severity': 'high', 'reason': 'High number of blocked connections (1477) from IP address: 23.28.198.165'}, {'severity': 'high', 'reason': 'High number of blocked connections (33) from IP address: 84.252.134.217'}, {'severity': 'high', 'reason': 'High number of blocked connections (140) from IP address: 51.250.10.6'}, {'severity': 'high', 'reason': 'High number of blocked connections (48) from IP address: 158.160.20.113'}, {'severity': 'high', 'reason': 'High number of blocked connections (13) from IP address: 182.93.50.90'}, {'severity': 'high', 'reason': 'High number of blocked connections (82) from IP address: 172.22.0.2'}, {'severity': 'high', 'reason': 'High number of blocked connections (591) from IP address: 192.168.2.117'}, {'severity': 'high', 'reason': 'High number of blocked connections (12) from IP address: 172.23.0.2'}, {'severity': 'high', 'reason': 'High number of blocked connections (11) from IP address: 192.168.2.104'}] +2025-09-15 13:21:56,642 - INFO - Generating LLM report... +2025-09-15 13:22:04,084 - INFO - LLM Response: {'severity': 'high', 'reason': 'High number of blocked connections detected from multiple IP addresses: 23.28.198.165 (1477), 84.252.134.217 (33), 51.250.10.6 (140), 158.160.20.113 (48), 182.93.50.90 (13), 172.22.0.2 (82), 192.168.2.117 (591), 172.23.0.2 (12), and 192.168.2.104 (11). This indicates a potential coordinated attack or misconfigured system.'} +2025-09-15 13:22:04,982 - ERROR - Error sending Discord alert: 400 - b'{"content": ["Must be 2000 or fewer in length."]}' +2025-09-15 13:22:11,390 - INFO - Google Home alert sent successfully. diff --git a/ufw_log_position.txt b/ufw_log_position.txt new file mode 100644 index 0000000..7660983 --- /dev/null +++ b/ufw_log_position.txt @@ -0,0 +1 @@ +819154 \ No newline at end of file