From e7e3be6d1875fe007bd9667e3e3bcd2329f9701d Mon Sep 17 00:00:00 2001 From: Daniel Nelson Date: Wed, 9 Aug 2017 11:48:12 -0700 Subject: [PATCH] Tweak formatting of varnish README --- plugins/inputs/varnish/README.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/plugins/inputs/varnish/README.md b/plugins/inputs/varnish/README.md index 1866ca188..215852d23 100644 --- a/plugins/inputs/varnish/README.md +++ b/plugins/inputs/varnish/README.md @@ -374,18 +374,17 @@ other::--- ``` **Sudo privileges**: -```bash -# If you use this method, you will need the following in your telegraf config: +If you use this method, you will need the following in your telegraf config: +```toml [[inputs.varnish]] use_sudo = true +``` +You will also need to update your sudoers file: +```bash $ visudo - # Add the following line: telegraf ALL=(ALL) NOPASSWD: /usr/bin/varnishstat - -$ grep varnish /etc/sudoers -telegraf ALL = NOPASSWD: /usr/bin/varnishstat ``` Please use the solution you see as most appropriate.