Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
I'm bringing this post back to the surface again in light of the recent cacti release 0.8.7g. I just upgraded from 0.8.7e to 0.8.7g and it seems like the --alt--y-grid option is still not available in the graph template options... From what I read in this thread, this feature was commited to SVN a very long time ago. It is out there and I'm not looking in the right place? Or did it just not make it into 0.8.7g?
Cool, glad to know it is still in the pipeline. Horrible question: Do you know of any way I can patch it into 087g, in the meantime? Not as in an offical patch (I know you guys don't patch that sort of thing), more as an unofficial hack on my end? I read somewhere that I can force all the graphs globally to use --alt-y-grid, but then the majority of my graphs don't look as they should, because they don't need it.
Maybe there is a way I can enable it on a per-graph or per-graph-template basis?
You may simply have a lokk at the SVN/main/lib/rrd.php to see the magic. But be prepared. I changed the logic completely due to the vast amount of new options.
So it may happen, that patching the "old" logic is easier. It's the same file. Search e.g. for any other "graph-global" parameter like this to find the place to change. To do this on a graph template basis requires to change the graph_templates_graph table to hold that new option. This in turn requires the save function of graph_templates.php to be changed and the forms in include/global_forms.php as well.
Use the same column name as we do in 088 to make your change upwards compatible.
R.