+ printf ("<a href=\"%s?action=graph;", getenv ("SCRIPT_NAME"));
+ printf ("host=%s;plugin=%s;", gl->host, gl->plugin);
+ if (gl->plugin_instance != NULL)
+ printf ("plugin_instance=%s;", gl->plugin_instance);
+ printf ("type=%s;", gl->type);
+ if (gl->type_instance != NULL)
+ printf ("type_instance=%s;", gl->type_instance);
+ printf ("\">");
+
+ printf ("%s/%s", gl->host, gl->plugin);
+ if (gl->plugin_instance != NULL)
+ printf ("-%s", gl->plugin_instance);
+ printf ("/%s", gl->type);
+ if (gl->type_instance != NULL)
+ printf ("-%s", gl->type_instance);
+ printf ("</a></li>\n");
+
+ return (0);
+}
+
+static int list_graphs_json (void) /* {{{ */
+{
+ _Bool first = 1;
+
+ printf ("Content-Type: application/json\n\n");