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
|
import logging
|
||||||
from auditor import FirewallAuditor
|
from auditor import FirewallAuditor
|
||||||
from reporter import LocalStateReporter
|
from reporter import LocalStateReporter
|
||||||
|
from dotenv import load_dotenv
|
||||||
|
import os
|
||||||
|
|
||||||
logging.basicConfig(
|
logging.basicConfig(
|
||||||
level=logging.INFO,
|
level=logging.INFO,
|
||||||
@@ -15,12 +17,16 @@ def main():
|
|||||||
"""
|
"""
|
||||||
The Orchestrator: Links Audit findings to the State Reporter.
|
The Orchestrator: Links Audit findings to the State Reporter.
|
||||||
"""
|
"""
|
||||||
|
load_dotenv()
|
||||||
|
|
||||||
auditor = FirewallAuditor()
|
auditor = FirewallAuditor()
|
||||||
reporter = LocalStateReporter()
|
reporter = LocalStateReporter()
|
||||||
|
|
||||||
|
node_name = os.getenv("SERVER_NAME", "Unknown Node")
|
||||||
|
|
||||||
CHECK_INTERVAL = 600
|
CHECK_INTERVAL = 600
|
||||||
print(f"[*] Agent started. Check interval: {CHECK_INTERVAL}s")
|
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:
|
while True:
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in new issue
Block a user