mirror of
https://github.com/bashclub/check-opnsense.git
synced 2024-11-07 16:31:58 +01:00
Add files via upload
caching issue fixed
This commit is contained in:
parent
039d483077
commit
2e8ed699bb
@ -27,7 +27,7 @@
|
||||
## * smartdisk - install the mkp from https://github.com/bashclub/checkmk-smart plugins os-smart
|
||||
## * squid - install the mkp from https://exchange.checkmk.com/p/squid and forwarder -> listen on loopback active
|
||||
|
||||
__VERSION__ = "1.0.3"
|
||||
__VERSION__ = "1.0.4"
|
||||
|
||||
import sys
|
||||
import os
|
||||
@ -217,7 +217,10 @@ class checkmk_checker(object):
|
||||
except:
|
||||
_cachetime = 0
|
||||
try:
|
||||
if _cachetime > 0:
|
||||
_lines.append(self._run_cache_prog(_plugin_file,_cachetime))
|
||||
else:
|
||||
_lines.append(self._run_prog(_plugin_file))
|
||||
except:
|
||||
_errors.append(traceback.format_exc())
|
||||
|
||||
@ -241,7 +244,10 @@ class checkmk_checker(object):
|
||||
except:
|
||||
_cachetime = 0
|
||||
try:
|
||||
if _cachetime > 0:
|
||||
_lines.append(self._run_cache_prog(_local_file,_cachetime))
|
||||
else:
|
||||
_lines.append(self._run_prog(_local_file))
|
||||
except:
|
||||
_errors.append(traceback.format_exc())
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user