prometheus: imporve exim errors detection
This commit is contained in:
parent
66725414c7
commit
19517b5f6c
|
@ -62,7 +62,7 @@ def etckeeper(ctn):
|
|||
def exim(ctn):
|
||||
with open('/var/log/exim4/mainlog') as fh:
|
||||
for line in fh.readlines():
|
||||
if "**" in line:
|
||||
if " ** " in line:
|
||||
eo_exim.labels(ctn, "errors").inc()
|
||||
deferred = int(run("exim -bpc"))
|
||||
eo_exim.labels(ctn, "deferred").set(deferred)
|
||||
|
|
Loading…
Reference in New Issue