collection4.git
13 years agosrc/utils_search.[ch]: Implement "search_has_selector".
Florian Forster [Wed, 14 Jul 2010 08:18:26 +0000 (10:18 +0200)]
src/utils_search.[ch]: Implement "search_has_selector".

13 years agosrc/graph_list.c: Use the new "graph_ident_intersect" function.
Florian Forster [Mon, 12 Jul 2010 17:00:16 +0000 (19:00 +0200)]
src/graph_list.c: Use the new "graph_ident_intersect" function.

The (slightly advanced) search appears to work now.

13 years agosrc/graph.[ch]: Implement "graph_ident_intersect".
Florian Forster [Mon, 12 Jul 2010 16:58:30 +0000 (18:58 +0200)]
src/graph.[ch]: Implement "graph_ident_intersect".

13 years agosrc/graph_ident.[ch]: Implement "ident_intersect".
Florian Forster [Mon, 12 Jul 2010 16:55:07 +0000 (18:55 +0200)]
src/graph_ident.[ch]: Implement "ident_intersect".

13 years agosrc/graph_list.[ch]: Implement "gl_search".
Florian Forster [Mon, 12 Jul 2010 09:44:47 +0000 (11:44 +0200)]
src/graph_list.[ch]: Implement "gl_search".

13 years agosrc/utils_search.[ch]: Implement "search_to_ident" and "search_graph_title_matches".
Florian Forster [Mon, 12 Jul 2010 09:44:12 +0000 (11:44 +0200)]
src/utils_search.[ch]: Implement "search_to_ident" and "search_graph_title_matches".

The "title" argument has been added to the "search_graph_inst_matches" function, too.

13 years agosrc/graph.[ch]: Implement "graph_search_inst".
Florian Forster [Mon, 12 Jul 2010 09:42:58 +0000 (11:42 +0200)]
src/graph.[ch]: Implement "graph_search_inst".

13 years agosrc/graph.[ch]: Rename "graph_inst_search" to "graph_search_inst_string".
Florian Forster [Mon, 12 Jul 2010 09:31:21 +0000 (11:31 +0200)]
src/graph.[ch]: Rename "graph_inst_search" to "graph_search_inst_string".

13 years agosrc/graph.[ch]: Implement "graph_matches_ident".
Florian Forster [Mon, 12 Jul 2010 09:28:04 +0000 (11:28 +0200)]
src/graph.[ch]: Implement "graph_matches_ident".

13 years agosrc/graph.[ch]: Rename "graph_matches_ident" to "graph_ident_matches".
Florian Forster [Mon, 12 Jul 2010 09:26:14 +0000 (11:26 +0200)]
src/graph.[ch]: Rename "graph_matches_ident" to "graph_ident_matches".

13 years agosrc/utils_array.h: Note that the parameter may / must be freed by the caller.
Florian Forster [Mon, 12 Jul 2010 08:34:59 +0000 (10:34 +0200)]
src/utils_array.h: Note that the parameter may / must be freed by the caller.

13 years agosrc/graph_list.[ch]: Rename "gl_search" to "gl_search_string".
Florian Forster [Mon, 12 Jul 2010 08:34:23 +0000 (10:34 +0200)]
src/graph_list.[ch]: Rename "gl_search" to "gl_search_string".

13 years agosrc/utils_search.h: Implement "search_graph_inst_matches".
Florian Forster [Mon, 12 Jul 2010 08:31:35 +0000 (10:31 +0200)]
src/utils_search.h: Implement "search_graph_inst_matches".

13 years agosrc/utils_search.c: Add folding markers.
Florian Forster [Mon, 12 Jul 2010 07:59:11 +0000 (09:59 +0200)]
src/utils_search.c: Add folding markers.

13 years agosrc/utils_cgi.c: uri_unescape_copy: Fix a potential buffer overflow.
Florian Forster [Mon, 12 Jul 2010 07:56:02 +0000 (09:56 +0200)]
src/utils_cgi.c: uri_unescape_copy: Fix a potential buffer overflow.

13 years agosrc/utils_search.c: Implement parsing of the tokens.
Florian Forster [Mon, 12 Jul 2010 07:55:17 +0000 (09:55 +0200)]
src/utils_search.c: Implement parsing of the tokens.

13 years agosrc/utils_search.[ch]: Add a module for parsing search strings.
Florian Forster [Mon, 12 Jul 2010 07:40:31 +0000 (09:40 +0200)]
src/utils_search.[ch]: Add a module for parsing search strings.

13 years ago"list graphs" and "list hosts" actions: Add links to the "search" action.
Florian Forster [Sun, 11 Jul 2010 12:25:07 +0000 (14:25 +0200)]
"list graphs" and "list hosts" actions: Add links to the "search" action.

13 years ago"search" action: If no search string is given, display an "advanced search" form.
Florian Forster [Fri, 9 Jul 2010 16:37:31 +0000 (18:37 +0200)]
"search" action: If no search string is given, display an "advanced search" form.

It's not advanced yet, but that will be coming soon.

13 years ago"list graphs" and "list hosts" actions: Add links to each other.
Florian Forster [Fri, 9 Jul 2010 13:01:20 +0000 (15:01 +0200)]
"list graphs" and "list hosts" actions: Add links to each other.

13 years ago"list hosts" action: Add action to list all hosts.
Florian Forster [Fri, 9 Jul 2010 12:56:14 +0000 (14:56 +0200)]
"list hosts" action: Add action to list all hosts.

13 years ago"show instance" action: Link to the "search" action in the breadcrump.
Florian Forster [Fri, 9 Jul 2010 12:39:31 +0000 (14:39 +0200)]
"show instance" action: Link to the "search" action in the breadcrump.

13 years agosrc/utils_cgi.c: Use the "search" action to … well … search.
Florian Forster [Fri, 9 Jul 2010 12:33:46 +0000 (14:33 +0200)]
src/utils_cgi.c: Use the "search" action to … well … search.

13 years ago"list graphs" action: Remove the functionality to actually search for graphs.
Florian Forster [Fri, 9 Jul 2010 12:26:27 +0000 (14:26 +0200)]
"list graphs" action: Remove the functionality to actually search for graphs.

13 years ago"search" action: Copied the "list_graphs" section to here.
Florian Forster [Fri, 9 Jul 2010 12:17:02 +0000 (14:17 +0200)]
"search" action: Copied the "list_graphs" section to here.

13 years ago"list graphs" action: Don't show graphs without instances.
Florian Forster [Thu, 8 Jul 2010 09:40:04 +0000 (11:40 +0200)]
"list graphs" action: Don't show graphs without instances.

13 years agoshare/collection.conf: Add "df_complex" graph for the "NetApp" plugin.
Florian Forster [Wed, 7 Jul 2010 16:02:36 +0000 (18:02 +0200)]
share/collection.conf: Add "df_complex" graph for the "NetApp" plugin.

13 years agosrc/graph.c: Compare instances with "inst_compare" not "ident_compare".
Florian Forster [Wed, 7 Jul 2010 15:24:31 +0000 (17:24 +0200)]
src/graph.c: Compare instances with "inst_compare" not "ident_compare".

D'oh!

13 years agosrc/graph_instance.[ch]: Implement "inst_compare".
Florian Forster [Wed, 7 Jul 2010 15:24:01 +0000 (17:24 +0200)]
src/graph_instance.[ch]: Implement "inst_compare".

13 years ago"show instance" action: Remove debugging message.
Florian Forster [Wed, 7 Jul 2010 14:52:53 +0000 (16:52 +0200)]
"show instance" action: Remove debugging message.

13 years agosrc/graph_list.c: Sort the instances of all graphs.
Florian Forster [Wed, 7 Jul 2010 14:16:29 +0000 (16:16 +0200)]
src/graph_list.c: Sort the instances of all graphs.

13 years agosrc/graph.c: Fix "graph_sort_instances".
Florian Forster [Wed, 7 Jul 2010 14:16:09 +0000 (16:16 +0200)]
src/graph.c: Fix "graph_sort_instances".

13 years agosrc/graph_list.c: Fix "gl_compare_hosts".
Florian Forster [Wed, 7 Jul 2010 14:12:54 +0000 (16:12 +0200)]
src/graph_list.c: Fix "gl_compare_hosts".

13 years agoshare/collection.conf: Add a couple new graphs.
Florian Forster [Wed, 7 Jul 2010 14:00:33 +0000 (16:00 +0200)]
share/collection.conf: Add a couple new graphs.

13 years agosrc/graph_list.c: Add dynamically generated graphs to an extra list.
Florian Forster [Wed, 7 Jul 2010 14:00:11 +0000 (16:00 +0200)]
src/graph_list.c: Add dynamically generated graphs to an extra list.

Profiling has shown that the majority of time is spent looking for a matching
graph in "gl_active" in the "gl_register_file" function. By adding dynamically
generated graphs (which will only ever match one file) to an extra list,
start-up time is decreased *a lot*.

13 years agosrc/graph_list.c: Increase update interval to 900 seconds.
Florian Forster [Wed, 7 Jul 2010 13:55:10 +0000 (15:55 +0200)]
src/graph_list.c: Increase update interval to 900 seconds.

13 years agosrc/graph.[ch]: Implement "graph_sort_instances".
Florian Forster [Wed, 7 Jul 2010 13:54:01 +0000 (15:54 +0200)]
src/graph.[ch]: Implement "graph_sort_instances".

13 years agoVarious: Remove argument validation after profiling.
Florian Forster [Wed, 7 Jul 2010 13:53:10 +0000 (15:53 +0200)]
Various: Remove argument validation after profiling.

13 years ago"show graph json" action: Return the correct MIME type.
Florian Forster [Tue, 6 Jul 2010 20:38:45 +0000 (22:38 +0200)]
"show graph json" action: Return the correct MIME type.

13 years ago"show graph json" action: Print "Expires" header.
Florian Forster [Tue, 6 Jul 2010 20:35:40 +0000 (22:35 +0200)]
"show graph json" action: Print "Expires" header.

13 years agosrc/graph_ident.c: ident_to_json: Escape strings before adding them to the buffer.
Florian Forster [Tue, 6 Jul 2010 20:24:54 +0000 (22:24 +0200)]
src/graph_ident.c: ident_to_json: Escape strings before adding them to the buffer.

13 years agosrc/utils_cgi.[ch]: Implement escape functions for JSON.
Florian Forster [Tue, 6 Jul 2010 20:20:08 +0000 (22:20 +0200)]
src/utils_cgi.[ch]: Implement escape functions for JSON.

13 years ago"show graph json" action: Implement action for exporting graph information as JSON.
Florian Forster [Tue, 6 Jul 2010 20:19:39 +0000 (22:19 +0200)]
"show graph json" action: Implement action for exporting graph information as JSON.

13 years ago"show graph" action: If the "q" parameter is given, only show matching instances.
Florian Forster [Tue, 6 Jul 2010 15:55:03 +0000 (17:55 +0200)]
"show graph" action: If the "q" parameter is given, only show matching instances.

13 years ago"list graphs" action: Pass the search term to the "show graph" action.
Florian Forster [Tue, 6 Jul 2010 15:19:06 +0000 (17:19 +0200)]
"list graphs" action: Pass the search term to the "show graph" action.

13 years agosrc/utils_cgi.c: Change shortcut name to "C₄" (from "c⁴").
Florian Forster [Tue, 6 Jul 2010 14:37:23 +0000 (16:37 +0200)]
src/utils_cgi.c: Change shortcut name to "C₄" (from "c⁴").

13 years ago"show instance" action: Use <h2 /> rather than <h3 /> for consistency.
Florian Forster [Tue, 6 Jul 2010 14:27:38 +0000 (16:27 +0200)]
"show instance" action: Use <h2 /> rather than <h3 /> for consistency.

13 years ago"show graph" action: Print a menu on the left side.
Florian Forster [Tue, 6 Jul 2010 14:27:09 +0000 (16:27 +0200)]
"show graph" action: Print a menu on the left side.

Currently only containing of "All graphs".

13 years ago"list graph" action: Don't show any instances if no search term is given.
Florian Forster [Tue, 6 Jul 2010 14:26:35 +0000 (16:26 +0200)]
"list graph" action: Don't show any instances if no search term is given.

13 years ago"show instance" action: Don't show a list of instances on the left side.
Florian Forster [Tue, 6 Jul 2010 14:24:58 +0000 (16:24 +0200)]
"show instance" action: Don't show a list of instances on the left side.

Rather show a link to the "show graph" action, titled "all instances".

13 years ago"list graphs" action: Link to the "show graph" action …
Florian Forster [Tue, 6 Jul 2010 09:11:24 +0000 (11:11 +0200)]
"list graphs" action: Link to the "show graph" action …

… if not all instances are shown.

13 years ago"show graph" action: Implement a page showing all instances of a graph.
Florian Forster [Tue, 6 Jul 2010 09:08:22 +0000 (11:08 +0200)]
"show graph" action: Implement a page showing all instances of a graph.

13 years agoshare/collection.conf: Improve the "df_inodes" graph.
Florian Forster [Tue, 6 Jul 2010 08:42:22 +0000 (10:42 +0200)]
share/collection.conf: Improve the "df_inodes" graph.

13 years agoshare/collection.conf: Improve configuration of the "swap" graph.
Florian Forster [Tue, 6 Jul 2010 08:35:49 +0000 (10:35 +0200)]
share/collection.conf: Improve configuration of the "swap" graph.

13 years ago"show instance" action: Parse the time parameters and pass them along to the "graph...
Florian Forster [Tue, 6 Jul 2010 07:44:00 +0000 (09:44 +0200)]
"show instance" action: Parse the time parameters and pass them along to the "graph" action.

13 years agosrc/common.[ch]: Implement "get_time_args".
Florian Forster [Tue, 6 Jul 2010 07:43:02 +0000 (09:43 +0200)]
src/common.[ch]: Implement "get_time_args".

13 years agosrc/common.c: Add missing folding markers.
Florian Forster [Tue, 6 Jul 2010 07:28:27 +0000 (09:28 +0200)]
src/common.c: Add missing folding markers.

13 years ago"graph" action: Print the "X-Generator" header on generated graphs, too.
Florian Forster [Tue, 6 Jul 2010 07:20:04 +0000 (09:20 +0200)]
"graph" action: Print the "X-Generator" header on generated graphs, too.

13 years agosrc/utils_cgi.c: Display the package name and version on generated pages.
Florian Forster [Tue, 6 Jul 2010 07:17:10 +0000 (09:17 +0200)]
src/utils_cgi.c: Display the package name and version on generated pages.

13 years agoshare/collection.conf: Add format option to disk_octets graph.
Florian Forster [Tue, 6 Jul 2010 07:06:24 +0000 (09:06 +0200)]
share/collection.conf: Add format option to disk_octets graph.

13 years agosrc/graph_list.c: Make "gl_add_graph_internal" static.
Florian Forster [Tue, 6 Jul 2010 07:06:05 +0000 (09:06 +0200)]
src/graph_list.c: Make "gl_add_graph_internal" static.

13 years agoAll files: Add LGPL 2.1 license header.
Florian Forster [Tue, 6 Jul 2010 06:55:49 +0000 (08:55 +0200)]
All files: Add LGPL 2.1 license header.

13 years agoCOPYING: Add LGPL 2.1 license.
Florian Forster [Tue, 6 Jul 2010 06:37:48 +0000 (08:37 +0200)]
COPYING: Add LGPL 2.1 license.

13 years agoshare/collection.conf: Adapt the "df_complex" config for the new drawing code.
Florian Forster [Fri, 2 Jul 2010 18:40:05 +0000 (20:40 +0200)]
share/collection.conf: Adapt the "df_complex" config for the new drawing code.

13 years agosrc/graph_def.c: Manually handle stacking.
Florian Forster [Fri, 2 Jul 2010 18:39:40 +0000 (20:39 +0200)]
src/graph_def.c: Manually handle stacking.

Also faded (semi-transparent) areas have been implemented.

13 years agosrc/rrd_args.[ch]: Split up the "draw" part (into "areas" and "lines").
Florian Forster [Fri, 2 Jul 2010 18:38:45 +0000 (20:38 +0200)]
src/rrd_args.[ch]: Split up the "draw" part (into "areas" and "lines").

13 years agosrc/graph.c: graph_add_def: Add graphs in reverse order.
Florian Forster [Fri, 2 Jul 2010 18:31:23 +0000 (20:31 +0200)]
src/graph.c: graph_add_def: Add graphs in reverse order.

13 years agosrc/utils_array.c: Fix a segfault in "array_prepend".
Florian Forster [Fri, 2 Jul 2010 18:27:51 +0000 (20:27 +0200)]
src/utils_array.c: Fix a segfault in "array_prepend".

13 years agosrc/common.[ch]: Implement "fade_color".
Florian Forster [Fri, 2 Jul 2010 18:27:17 +0000 (20:27 +0200)]
src/common.[ch]: Implement "fade_color".

13 years agosrc/utils_array.[ch]: Implement "array_prepend{,_format}".
Florian Forster [Fri, 2 Jul 2010 17:31:37 +0000 (19:31 +0200)]
src/utils_array.[ch]: Implement "array_prepend{,_format}".

13 years agoVarious modules: Use the new "rrd_args_t" structure.
Florian Forster [Fri, 2 Jul 2010 17:27:44 +0000 (19:27 +0200)]
Various modules: Use the new "rrd_args_t" structure.

13 years agosrc/rrd_args.[ch]: Implement data structure for more powerful RRD argument construction.
Florian Forster [Fri, 2 Jul 2010 17:08:13 +0000 (19:08 +0200)]
src/rrd_args.[ch]: Implement data structure for more powerful RRD argument construction.

13 years agoshare/collection.js: Add folding markers.
Florian Forster [Wed, 30 Jun 2010 15:19:08 +0000 (17:19 +0200)]
share/collection.js: Add folding markers.

13 years agoshare/collection.js: Implement "zoom_reference", too.
Florian Forster [Wed, 30 Jun 2010 14:56:19 +0000 (16:56 +0200)]
share/collection.js: Implement "zoom_reference", too.

13 years agoshare/collection.js: Imported most of the JavaScript navigation code from collection3.
Florian Forster [Wed, 30 Jun 2010 14:50:45 +0000 (16:50 +0200)]
share/collection.js: Imported most of the JavaScript navigation code from collection3.

13 years agoshare/style.css: Fix the ":hover" pseudo-classes.
Florian Forster [Wed, 30 Jun 2010 13:15:23 +0000 (15:15 +0200)]
share/style.css: Fix the ":hover" pseudo-classes.

At least FireFox doesn't honor the ":hover" pseudo-class if the selector
doesn't contain a tag name.

13 years agosrc/utils_cgi.c: Print a "X-Generator" message in the HTTP header.
Florian Forster [Sun, 27 Jun 2010 11:57:17 +0000 (13:57 +0200)]
src/utils_cgi.c: Print a "X-Generator" message in the HTTP header.

13 years agoshare/collection.js: Add the navigation buttons to the graphs.
Florian Forster [Sun, 27 Jun 2010 11:56:53 +0000 (13:56 +0200)]
share/collection.js: Add the navigation buttons to the graphs.

They don't work yet, though.

13 years agoshare/style.css: Make the page a bit nicer to look at.
Florian Forster [Sun, 27 Jun 2010 10:15:41 +0000 (12:15 +0200)]
share/style.css: Make the page a bit nicer to look at.

13 years ago"show instance" action: Limit displayed graphs to 10 and re-activate the "breadcrump".
Florian Forster [Sun, 27 Jun 2010 10:13:44 +0000 (12:13 +0200)]
"show instance" action: Limit displayed graphs to 10 and re-activate the "breadcrump".

13 years agoshare/collection.conf: Add format strings to the df_inode graph.
Florian Forster [Sun, 27 Jun 2010 10:11:02 +0000 (12:11 +0200)]
share/collection.conf: Add format strings to the df_inode graph.

13 years agoshare/collection.js: Rename the "show_graph" action here, too.
Florian Forster [Sun, 27 Jun 2010 10:10:44 +0000 (12:10 +0200)]
share/collection.js: Rename the "show_graph" action here, too.

13 years agoRename action: "show_graph" -> "show_instance".
Florian Forster [Sat, 26 Jun 2010 10:39:01 +0000 (12:39 +0200)]
Rename action: "show_graph" -> "show_instance".

13 years agoRename: src/action_show_graph.[ch] -> src/action_show_instance.[ch]
Florian Forster [Sat, 26 Jun 2010 10:36:05 +0000 (12:36 +0200)]
Rename: src/action_show_graph.[ch] -> src/action_show_instance.[ch]

13 years ago"show graph" action: Use the new "inst_get_all_selected" function.
Florian Forster [Sat, 26 Jun 2010 10:32:54 +0000 (12:32 +0200)]
"show graph" action: Use the new "inst_get_all_selected" function.

13 years agosrc/utils_cgi.[ch]: Implement "html_print_logo".
Florian Forster [Sat, 26 Jun 2010 10:31:47 +0000 (12:31 +0200)]
src/utils_cgi.[ch]: Implement "html_print_logo".

13 years agosrc/graph_instance.[ch]: Implement "inst_ident_matches" in addition to "inst_matches_...
Florian Forster [Sat, 26 Jun 2010 10:31:23 +0000 (12:31 +0200)]
src/graph_instance.[ch]: Implement "inst_ident_matches" in addition to "inst_matches_ident".

13 years agosrc/graph_instance.[ch]: Implement "inst_get_all_selected".
Florian Forster [Fri, 25 Jun 2010 09:31:11 +0000 (11:31 +0200)]
src/graph_instance.[ch]: Implement "inst_get_all_selected".

13 years agosrc/graph.[ch]: Implement "graph_inst_find_all_matching".
Florian Forster [Fri, 25 Jun 2010 09:30:32 +0000 (11:30 +0200)]
src/graph.[ch]: Implement "graph_inst_find_all_matching".

13 years agosrc/graph_instance.c: Move "inst_get_selector_from_params" into an own function.
Florian Forster [Fri, 25 Jun 2010 09:30:05 +0000 (11:30 +0200)]
src/graph_instance.c: Move "inst_get_selector_from_params" into an own function.

13 years agosrc/action_show_graph.c: Add missing folding marker.
Florian Forster [Thu, 24 Jun 2010 12:45:11 +0000 (14:45 +0200)]
src/action_show_graph.c: Add missing folding marker.

13 years agosrc/graph.c: uri_escape -> uri_escape_copy
Florian Forster [Thu, 24 Jun 2010 12:45:07 +0000 (14:45 +0200)]
src/graph.c: uri_escape -> uri_escape_copy

13 years ago"show graph" action: Implement a time selector.
Florian Forster [Wed, 23 Jun 2010 16:13:48 +0000 (18:13 +0200)]
"show graph" action: Implement a time selector.

13 years agosrc/utils_cgi.[ch]: Basically a rewrite of the parameter handling functions.
Florian Forster [Wed, 23 Jun 2010 15:54:48 +0000 (17:54 +0200)]
src/utils_cgi.[ch]: Basically a rewrite of the parameter handling functions.

13 years ago"list graphs" action: Re-implement "print_host_list".
Florian Forster [Wed, 23 Jun 2010 13:18:58 +0000 (15:18 +0200)]
"list graphs" action: Re-implement "print_host_list".

13 years agosrc/graph_list.[ch]: Implement "gl_foreach_host".
Florian Forster [Wed, 23 Jun 2010 13:16:25 +0000 (15:16 +0200)]
src/graph_list.[ch]: Implement "gl_foreach_host".

13 years agosrc/graph_ident.[ch]: Mark the inst argument to the "ident_get_*" functions as "const".
Florian Forster [Wed, 23 Jun 2010 12:37:45 +0000 (14:37 +0200)]
src/graph_ident.[ch]: Mark the inst argument to the "ident_get_*" functions as "const".

13 years ago"list graphs" action: Support searching for plugin- and type-instances.
Florian Forster [Wed, 23 Jun 2010 12:36:16 +0000 (14:36 +0200)]
"list graphs" action: Support searching for plugin- and type-instances.

13 years agoshare/collection.conf: Add graphs for "fork_rate", "if_errors" and "users".
Florian Forster [Wed, 23 Jun 2010 09:30:47 +0000 (11:30 +0200)]
share/collection.conf: Add graphs for "fork_rate", "if_errors" and "users".

13 years agoshare/collection.conf: Add graph for "swap_io".
Florian Forster [Wed, 23 Jun 2010 09:20:56 +0000 (11:20 +0200)]
share/collection.conf: Add graph for "swap_io".