mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 10:39:53 +00:00
chrony: don't resolve IP addresses to hostnames
If we don't want to show any host names in graphs/legend, it makes sense to not resolve them. I occasionally notice the issue with name resolution of IPv6 addresses on certain networks, which makes `chronyc tracking` take 20+ seconds. Adding -n makes it almost instantaneous.
This commit is contained in:
parent
37279214d1
commit
e12c8afdb7
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ if [ "$1" = "config" ]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chrony_status="$("$CHRONYC" tracking)"
|
chrony_status="$("$CHRONYC" -n tracking)"
|
||||||
echo "$fields" | while read fieldname factor regex label; do
|
echo "$fields" | while read fieldname factor regex label; do
|
||||||
status_line="$(echo "$chrony_status" | grep -i -- "$regex " | cut -d ":" -f 2-)"
|
status_line="$(echo "$chrony_status" | grep -i -- "$regex " | cut -d ":" -f 2-)"
|
||||||
if [ -z "$status_line" ]; then
|
if [ -z "$status_line" ]; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue