From e742c7f03085ccb24993360d534d54a2f4110f16 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 10 Mar 2010 15:38:11 +0000 Subject: Added 'ip tunnel' result to health network status. --- health-model.lua | 1 + health-network-html.lsp | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/health-model.lua b/health-model.lua index 0389346..f5c0ee1 100644 --- a/health-model.lua +++ b/health-model.lua @@ -90,6 +90,7 @@ get_network = function (self) local network = {} network.interfaces = cfe({ value=querycmd("ip addr"), label="Interfaces" }) network.routes = cfe({ value=querycmd("ip route"), label="Routes" }) + network.tunnel = cfe({ value=querycmd("ip tunnel"), label="Tunnels" }) return cfe({ type="group", value=network }) end diff --git a/health-network-html.lsp b/health-network-html.lsp index 5f9463d..b94707f 100644 --- a/health-network-html.lsp +++ b/health-network-html.lsp @@ -11,3 +11,10 @@
<%= html.html_escape(view.value.routes.value) %>
+ +<% if view.value.tunnel.value ~= "" then %> +

Tunnels

+
+
<%= html.html_escape(view.value.tunnel.value) %>
+
+<% end %> -- cgit v1.2.3