Skip to content

Commit b6a02cc

Browse files
crpbAnvarU
authored andcommitted
18551 Agent freebsd: add chrony section
Thanks crpb for contributing! Closes #836 CMK-24636 Change-Id: I2af9663980407e80445bef2dbac9374fcc0dd500
1 parent 9b81dd6 commit b6a02cc

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

.werks/18551.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[//]: # (werk v2)
2+
# Agent freebsd: add chrony section
3+
4+
key | value
5+
---------- | ---
6+
date | 2025-08-06T13:53:32+00:00
7+
version | 2.5.0b1
8+
class | feature
9+
edition | cre
10+
component | checks
11+
level | 1
12+
compatible | yes
13+
14+
Thanks crpb for contributing!

agents/check_mk_agent.freebsd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -657,6 +657,11 @@ run_purely_synchronous_sections() {
657657
ntpq -np | sed -e 1,2d -e 's/^\(.\)/\1 /' -e 's/^ /%/'
658658
fi
659659

660+
if inpath chronyc; then
661+
echo '<<<chrony>>>'
662+
chronyc -n tracking | cat || true
663+
fi
664+
660665
# Number of TCP connections in the various states
661666
echo '<<<tcp_conn_stats>>>'
662667
netstat -na | awk ' /^tcp/ { c[$6]++; } END { for (x in c) { print x, c[x]; } }'

0 commit comments

Comments
 (0)