feat: add node name to .env
This commit is contained in:
1 parent
4e3ac06c1c
commit
f7e7b8f100
1 file changed
+7
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user