mirror of
https://github.com/bashclub/check-opnsense.git
synced 2024-11-07 16:31:58 +01:00
v0.96
This commit is contained in:
parent
db62588d08
commit
a103f14429
@ -22,7 +22,7 @@
|
|||||||
## copy to /usr/local/etc/rc.syshook.d/start/99-checkmk_agent and chmod +x
|
## copy to /usr/local/etc/rc.syshook.d/start/99-checkmk_agent and chmod +x
|
||||||
##
|
##
|
||||||
|
|
||||||
__VERSION__ = "0.952"
|
__VERSION__ = "0.96"
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
@ -571,6 +571,8 @@ class checkmk_checker(object):
|
|||||||
return _ret
|
return _ret
|
||||||
|
|
||||||
def check_dhcp(self):
|
def check_dhcp(self):
|
||||||
|
if not os.path.exists("/var/dhcpd/var/db/dhcpd.leases"):
|
||||||
|
return []
|
||||||
_ret = ["<<<isc_dhcpd>>>"]
|
_ret = ["<<<isc_dhcpd>>>"]
|
||||||
_ret.append("[general]\nPID: {0}".format(self.pidof("dhcpd",-1)))
|
_ret.append("[general]\nPID: {0}".format(self.pidof("dhcpd",-1)))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user