From e1731c787eb45d70d0d1a54f3ce07427409c8fd0 Mon Sep 17 00:00:00 2001 From: wodry Date: Mon, 18 Mar 2019 07:48:31 +0100 Subject: [PATCH] Remove quotes in plugin env parameters Setting `env.torconnectmethod 'port'` leads to the error: ``` munin-run tor_bandwidth env.torconnectmethod contains an invalid value. Please specify either 'port' or 'socket'. ``` Removing the quotes solves that, because the quotes are part of the variable value. ["There is no need to quote the variable content."](http://guide.munin-monitoring.org/en/stable-2.0/plugin/use.html) --- plugins/tor/tor_ | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/plugins/tor/tor_ b/plugins/tor/tor_ index 630f9a42..d1bb5c8f 100755 --- a/plugins/tor/tor_ +++ b/plugins/tor/tor_ @@ -27,23 +27,23 @@ The default configuration is below [tor_*] user toranon # or any other user/group that is running tor group toranon -env.torcachefile 'munin_tor_country_stats.json' -env.torconnectmethod 'port' -env.torgeoippath '/usr/share/GeoIP/GeoIP.dat' +env.torcachefile munin_tor_country_stats.json +env.torconnectmethod port +env.torgeoippath /usr/share/GeoIP/GeoIP.dat env.tormaxcountries 15 env.torport 9051 -env.torsocket '/var/run/tor/control' +env.torsocket /var/run/tor/control To make it connect through a socket modify this way [tor_*] user toranon # or any other user/group that is running tor group toranon -env.torcachefile 'munin_tor_country_stats.json' -env.torconnectmethod 'socket' -env.torgeoippath '/usr/share/GeoIP/GeoIP.dat' +env.torcachefile munin_tor_country_stats.json +env.torconnectmethod socket +env.torgeoippath /usr/share/GeoIP/GeoIP.dat env.tormaxcountries 15 env.torport 9051 -env.torsocket '/var/run/tor/control' +env.torsocket /var/run/tor/control =head1 COPYRIGHT MIT License