From f26f6228e95555971cd0e44ab02a8587fecfc118 Mon Sep 17 00:00:00 2001 From: Matthias Fechner Date: Fri, 5 Jul 2019 09:54:20 +0200 Subject: [PATCH 1/2] Use env to point to perl executable. Using this, the system will search perl in PATH so you can use the script now on all systems, no matter where perl is located. --- haproxyng | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/haproxyng b/haproxyng index a7d3599..f728221 100755 --- a/haproxyng +++ b/haproxyng @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # haproxyng Munin Plugin # Multigraph plugin which monitors the haproxy service. From d4d87da3b022066bac4e3466d336a5304aced1ca Mon Sep 17 00:00:00 2001 From: Matthias Fechner Date: Fri, 5 Jul 2019 09:56:38 +0200 Subject: [PATCH 2/2] Updated manual to maybe define a PATH. Maybe required to find the perl executable. --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index c7d3bac..49c8ddc 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,7 @@ graphs in a single run. [haproxyng*] env.socket /path/to/socket env.clean prefix- +env.PATH /usr/sbin:/usr/bin:/sbin:/bin:/usr/local/bin:/usr/local/sbin ``` `haproxyng` takes two environmental options: @@ -58,6 +59,8 @@ env.clean prefix- generated and everything is prefixed with "staging-" or "production_" then put that (or any other regex) into `clean` and it will be cleaned from any titles before being output to Munin. + * `PATH` define path here if perl cannot be found in your standard path defined + by your OS. Beyond that, copy/symlink it to the `plugins/` directory on the relevant node and wait for it to run. Running