Hi,
since today, right after the update to 5.0-4 errata 750, I am receiving an email every 5 minutes from Cron now (univention-monitoring-client) with the following content:
Subject: Cron root@SERVERNAME run-parts /usr/share/univention-monitoring-client/scripts/
Traceback (most recent call last):
File "/usr/share/univention-monitoring-client/scripts//check_univention_ad_connector", line 89, in <module>
ADConnector.main()
File "/usr/lib/python3/dist-packages/univention/monitoring/__init__.py", line 73, in main
self.write_metrics()
File "/usr/share/univention-monitoring-client/scripts//check_univention_ad_connector", line 51, in write_metrics
self.write_connector_metrics(len(connectors), connector)
File "/usr/share/univention-monitoring-client/scripts//check_univention_ad_connector", line 57, in write_connector_metrics
self.write_metric('univention_ad_connector_ad_reachable', 1 if rc == 0 else 0)
File "/usr/lib/python3/dist-packages/univention/monitoring/__init__.py", line 81, in write_metric
g = Gauge(metric_name, doc or self.__doc__ or '', labelnames=list(labels), registry=self._registry)
File "/usr/lib/python3/dist-packages/prometheus_client/metrics.py", line 320, in __init__
labelvalues=labelvalues,
File "/usr/lib/python3/dist-packages/prometheus_client/metrics.py", line 103, in __init__
registry.register(self)
File "/usr/lib/python3/dist-packages/prometheus_client/registry.py", line 29, in register
duplicates))
ValueError: Duplicated timeseries in CollectorRegistry: {'univention_ad_connector_ad_reachable'}
run-parts: /usr/share/univention-monitoring-client/scripts//check_univention_ad_connector exited with return code 1 Checking NTP time failed: NTP CRITICAL: Offset unknown|
Maybe related to this update: Security and bugfix errata for Univention Corporate Server
In the meantime, in order to stop the email flooding I have disabled the according cron-job:
ucr set monitoring/client/cron=’#*/5 * * * *’
Any hint for how to further troubleshoot/analyze or fix this, would be much appreciated.
Thx and best regards
Thomas