collectd-web icon indicating copy to clipboard operation
collectd-web copied to clipboard

Specify Default Plot Duration

Open strefli3 opened this issue 12 years ago • 0 comments

I'd like to be able to specify a default plot duration. For example, from a single hour to a day.

After looking through the code I have been focusing my attention on base.js, specifically here:

} else {
        $selected_plugin = $(this).html();
        $(".graph-imgs-container").html('');
        $.getJSON('cgi-bin/collection.modified.cgi?action=graphs_json;plugin=' $
            $graph_json = data;
            create_graph_list("hour", data.hour);
            $('#graph-container').html(get_graph_main_container($selected_host)$

            lazy_check();
        });

by changing it to

} else {
        $selected_plugin = $(this).html();
        $(".graph-imgs-container").html('');
        $.getJSON('cgi-bin/collection.modified.cgi?action=graphs_json;plugin=' $
            $graph_json = data;
            create_graph_list("day", data.day);
            $('#graph-container').html(get_graph_main_container($selected_host)$

            lazy_check();
        });

But this does not seem to work. Specifically it it does not produce plots; no errors in the web browser or the Apache logs. Perhaps you could give me a quick overview on where to focus my effort so I can pull this off?

Thanks!

strefli3 avatar May 14 '13 09:05 strefli3