Showing 1 changed files with 5 additions and 0 deletions
+5
monitoring.d/common-tests
... ...
@@ -99,3 +99,8 @@ function upgrades () {
99 99
     local status=$(cut -f3 -d' ' <<< $lastline)
100 100
     test $(($lastentry + 86400)) -lt $now && echo "pas de mise à jour depuis le ${lastline%% *}"
101 101
 }
102
+
103
+function chrony () {
104
+    local synced=$(chronyc sources | grep -c '^\^\*')
105
+    test $synced -ne 1 && echo "NTP pas synchro"
106
+}