1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

Merge pull request #1404 from kimheino/master

chrony_status: fix reboot-workaround, value is str not int
This commit is contained in:
Kenyon Ralph 2023-12-12 13:32:21 -08:00 committed by GitHub
commit f76cb185bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: