From f7e7b8f100de8a7c57b056776e480edb21f4259e Mon Sep 17 00:00:00 2001 From: patrick Date: Fri, 23 Jan 2026 11:36:21 -0500 Subject: [PATCH] feat: add node name to .env --- agent.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/agent.py b/agent.py index 2930e71..3b8ea5a 100644 --- a/agent.py +++ b/agent.py @@ -4,6 +4,8 @@ import time import logging from auditor import FirewallAuditor from reporter import LocalStateReporter +from dotenv import load_dotenv +import os logging.basicConfig( level=logging.INFO, @@ -15,12 +17,16 @@ def main(): """ The Orchestrator: Links Audit findings to the State Reporter. """ + load_dotenv() + auditor = FirewallAuditor() reporter = LocalStateReporter() + node_name = os.getenv("SERVER_NAME", "Unknown Node") + CHECK_INTERVAL = 600 print(f"[*] Agent started. Check interval: {CHECK_INTERVAL}s") - logging.info("Threat Engine Agent initialized on Zephyrus.") + logging.info(f"Threat Engine Agent initialized on {node_name}.") while True: try: