From 24f0fee044633a7153728f05d218580c54a6bb32 Mon Sep 17 00:00:00 2001 From: "Kim B. Heino" Date: Tue, 12 Dec 2023 23:21:29 +0200 Subject: [PATCH] chrony_status: fix reboot-workaround, value is str not int After reboot stratum is 0, convert it to U. Include unknown_limit to config to not send warning email. I finally found a server where this workaround was needed. --- plugins/chrony/chrony_status | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/chrony/chrony_status b/plugins/chrony/chrony_status index 9f2cfe1c..0ce351dd 100755 --- a/plugins/chrony/chrony_status +++ b/plugins/chrony/chrony_status @@ -177,7 +177,7 @@ def fetch(): values = get_values() for graph in GRAPHS: print('multigraph chrony_{}'.format(graph)) - if graph == 'stratum' and values[graph] == 0: + if graph == 'stratum' and values[graph] == '0': print('{}.value U'.format(graph)) elif graph == 'serverstats': for stat in SERVERSTATS: