Development

This commit is contained in:
Matthew Grotke 2026-06-09 22:42:37 -04:00
parent e8717710d4
commit 47a7c564ab
3 changed files with 4 additions and 4 deletions

View file

@ -83,6 +83,7 @@ def collect_metrics(data):
"servers": []
}
t_signal = int(time.time())
any_running = False
for vlan in data["vlans"]:
pid_file = shared.vlan_pid_file(vlan)
@ -97,13 +98,13 @@ def collect_metrics(data):
print("No dnsmasq instances are running.")
return None
time.sleep(1)
time.sleep(2)
server_map = {}
for vlan in data["vlans"]:
svc = shared.vlan_service_name(vlan, validation.derive_interface(vlan, data))
result = subprocess.run(
["journalctl", "-u", svc, "--since", "5 seconds ago",
["journalctl", "-u", svc, f"--since=@{t_signal}",
"--no-pager", "-o", "cat"],
capture_output=True, text=True
)