diff --git a/prometheus-entrouvert-exporter/prometheus-system-exporter.py b/prometheus-entrouvert-exporter/prometheus-system-exporter.py index a5a282f..4498481 100755 --- a/prometheus-entrouvert-exporter/prometheus-system-exporter.py +++ b/prometheus-entrouvert-exporter/prometheus-system-exporter.py @@ -74,6 +74,8 @@ def etckeeper(ctn): def exim(ctn): + if not os.path.exists('/usr/sbin/exim'): + return with open('/var/log/exim4/mainlog', 'rb') as fh: for line in fh.readlines(): if b" ** " in line and not (