From f9008a6a4ac90258f2520283fc52c2c128ba9fcd Mon Sep 17 00:00:00 2001 From: Stephen Soltesz Date: Fri, 28 Aug 2009 21:56:47 +0000 Subject: [PATCH] add plain-text versions of the query output and nodelist as a test removed inter-site link on actionlist report all errors by moving bmlog link to 'message' column in detailview --- web/MonitorWeb/monitorweb/templates/actionlist.kid | 5 +++-- web/MonitorWeb/monitorweb/templates/detailview.kid | 14 ++++++++------ .../monitorweb/templates/nodelist_plain.tmpl | 3 +++ .../monitorweb/templates/query_plain.tmpl | 10 ++++++++++ 4 files changed, 24 insertions(+), 8 deletions(-) create mode 100644 web/MonitorWeb/monitorweb/templates/nodelist_plain.tmpl create mode 100644 web/MonitorWeb/monitorweb/templates/query_plain.tmpl diff --git a/web/MonitorWeb/monitorweb/templates/actionlist.kid b/web/MonitorWeb/monitorweb/templates/actionlist.kid index b1cd26b..caf993a 100644 --- a/web/MonitorWeb/monitorweb/templates/actionlist.kid +++ b/web/MonitorWeb/monitorweb/templates/actionlist.kid @@ -45,8 +45,9 @@ def zabbix_event_ack_link(eventid): - - ${act.hostname} + + ${act.hostname} diff --git a/web/MonitorWeb/monitorweb/templates/detailview.kid b/web/MonitorWeb/monitorweb/templates/detailview.kid index e86bbb1..ec7b131 100644 --- a/web/MonitorWeb/monitorweb/templates/detailview.kid +++ b/web/MonitorWeb/monitorweb/templates/detailview.kid @@ -226,13 +226,15 @@ from links import * - - ${act.message_id} - - latest bm log + + + ${act.message_id} + + + latest bm log + - -

+					

 				
 			
 		
diff --git a/web/MonitorWeb/monitorweb/templates/nodelist_plain.tmpl b/web/MonitorWeb/monitorweb/templates/nodelist_plain.tmpl
new file mode 100644
index 0000000..24bfad9
--- /dev/null
+++ b/web/MonitorWeb/monitorweb/templates/nodelist_plain.tmpl
@@ -0,0 +1,3 @@
+#for node in $query
+$node.node.hostname,$node.node.loginbase,$node.node.observed_status,$node.kernel,$node.node.plc_node_stats['last_contact']
+#end for
diff --git a/web/MonitorWeb/monitorweb/templates/query_plain.tmpl b/web/MonitorWeb/monitorweb/templates/query_plain.tmpl
new file mode 100644
index 0000000..2a24918
--- /dev/null
+++ b/web/MonitorWeb/monitorweb/templates/query_plain.tmpl
@@ -0,0 +1,10 @@
+#for key in sorted($fields.keys())
+$key,#slurp
+#end for
+
+#for row in $query
+  #for key in sorted($fields.keys())
+$row[$key],#slurp
+  #end for
+
+#end for
-- 
2.43.0