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;