From a103f14429af1ba3890943987f3654a8a9a954e6 Mon Sep 17 00:00:00 2001 From: Thorsten Spille Date: Wed, 13 Jul 2022 23:12:05 +0200 Subject: [PATCH] v0.96 --- opnsense_checkmk_agent.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/opnsense_checkmk_agent.py b/opnsense_checkmk_agent.py index 23301b5..523d1c8 100644 --- a/opnsense_checkmk_agent.py +++ b/opnsense_checkmk_agent.py @@ -22,7 +22,7 @@ ## copy to /usr/local/etc/rc.syshook.d/start/99-checkmk_agent and chmod +x ## -__VERSION__ = "0.952" +__VERSION__ = "0.96" import sys import os @@ -571,6 +571,8 @@ class checkmk_checker(object): return _ret def check_dhcp(self): + if not os.path.exists("/var/dhcpd/var/db/dhcpd.leases"): + return [] _ret = ["<<>>"] _ret.append("[general]\nPID: {0}".format(self.pidof("dhcpd",-1)))