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 cgi strategy for html and graphs #33

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

kampfschlaefer
Copy link
Contributor

Activate cgi-generation of graphs (and html).

Instead of generating html and pngs all day and night long, it might be easier if that is just generated when someone is looking at it. (To solve the question: if a graph is generated but no one is there to look at it, is the graph really generated?)

So far I only used that together with apache.

For now it just sets the option in munin.conf. It is still missing the apache/nginx part of the config to enable the cgi-scripts.
For apache2 as server, this configures apache2 to generate html and graphics by cgi.
A bit simplier then before, hopefully better then before. Creating html and graphs from cgi.
@jesseadams
Copy link
Owner

@kampfschlaefer - This looks good. Can you please write a spec that proves it works as intended? I want to require this for all pull requests from now on.

Thanks!

@kampfschlaefer
Copy link
Contributor Author

Well, to prove that it works, one would have to start a machine in test-kitchen and run it for at least 10 minutes and then check that a) a http-request returns a valid page with images and b) /var/www/munin and/or /var/cache/munin/www stay empty as all html and png-graphs should be dynamic...

@jesseadams
Copy link
Owner

I think this can also be tested in Chefspec. When the graph strategy is specified as cgi then verify the config additions are written. If it's not, verify that they are not written.

@jesseadams
Copy link
Owner

I really want to get this in. Since you are busy I am going to write some tests for this.

GitBytes added a commit to EMSL-MSC/munin that referenced this pull request Apr 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants