From 8121edb36756be27b23d80f9761b491c7c5c20e0 Mon Sep 17 00:00:00 2001 From: OMK Date: Tue, 3 Nov 2020 13:23:13 +0100 Subject: [PATCH] Update chronyc path handling Determination of chronyc path and inconsistency with the documentation --- plugins/chrony/chrony_ | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/chrony/chrony_ b/plugins/chrony/chrony_ index 038a086b..667ee99f 100755 --- a/plugins/chrony/chrony_ +++ b/plugins/chrony/chrony_ @@ -32,7 +32,7 @@ Examples: Plugin configuration parameters -# path to the crhonyc executable +# path to the crhonyc executable when it is not in the default path env.chronycpath /usr/local/bin/chronyc # graphlimit sets the horizontal axis for seconds and PPM the @@ -102,7 +102,7 @@ BEGIN{ -my $chronyc = $ENV{'chrony'} || "/usr/local/bin/chronyc"; +my $chronyc = $ENV{'chronycpath'} || `which chronyc`; my $graphlimit = $ENV{'graphlimit'} || 1.0;