munin icon indicating copy to clipboard operation
munin copied to clipboard

Allow cgi strategy for html and graphs

Open kampfschlaefer opened this issue 12 years ago • 4 comments

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.

kampfschlaefer avatar Feb 04 '14 11:02 kampfschlaefer

@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!

jesseadams avatar Feb 10 '14 20:02 jesseadams

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...

kampfschlaefer avatar Feb 10 '14 21:02 kampfschlaefer

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 avatar Mar 17 '14 04:03 jesseadams

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

jesseadams avatar Mar 24 '14 21:03 jesseadams