summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rrdtool-viewgraph-html.lsp12
1 files changed, 12 insertions, 0 deletions
diff --git a/rrdtool-viewgraph-html.lsp b/rrdtool-viewgraph-html.lsp
new file mode 100644
index 0000000..ac47a6d
--- /dev/null
+++ b/rrdtool-viewgraph-html.lsp
@@ -0,0 +1,12 @@
+<% local data, viewlibrary, page_info, session = ...
+%>
+
+<% if (data.graph.width) then %>
+<IMG SRC='<%= data.output %>' width='<%= data.graph.width or data.option.width %>' height='<%= data.graph.height or data.option.height %>'>
+<% else %>
+<H1>No valid output available!</H1>
+<P>Please check if your syntax is right.<BR>
+Read http://oss.oetiker.ch/rrdtool/doc/rrdgraph.en.html for help.</P>
+<HR>
+<P><% io.write(tostring(data.value)) %></P>
+<% end %>