Skip to content

Use env instead of a fixed path to perl #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion haproxyng
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl

# haproxyng Munin Plugin
# Multigraph plugin which monitors the haproxy service.
Expand Down