Skip to content
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

Allow passing arbitrary extra args to rrdgraph in the master configuration #1585

Open
ToxicFrog opened this issue Oct 27, 2023 · 0 comments
Open

Comments

@ToxicFrog
Copy link
Contributor

Is your feature request related to a problem? Please describe.

Individual plugins can set graph_args to control how rrdgraph is invoked, but there is no way to do this at the server level to (say) globally change the graph colours or font used. The rest of the web UI can be reskinned with CSS, but the graphs remain out of reach.

Describe the solution you'd like

A graph_args setting at the munin-master level, which contains extra arguments to be inserted into the rrdgraph argv after the rrd_header but before the per-plugin graph_args.

Describe alternatives you've considered

  • CSS filters on <img>. These work, kind of, but you can't do adequate hue rotation in CSS and it's impossible to adjust individual colours, font, border, etc.
  • update the images with mogrify after each munin-cron run. I did this for a while; you still can't adjust individual graph elements but if you're doing colour manipulations it does at least work better than CSS. It's slow, though, and only works for graph_strategy cron.
  • wrap rrdgraph with a custom script that injects the desired arguments. This doesn't work because munin uses the rrdgraph library interface rather than invoking an external command.

Additional context

This was previously discussed on IRC, I'm just promoting it to an FR so that it doesn't get lost.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant