From 81397bfd9fa54c60a8568812fc0ad99802a4e360 Mon Sep 17 00:00:00 2001 From: Kristian Lyngstol Date: Wed, 18 May 2016 18:34:28 +0200 Subject: Add basic oplog It still needs to be integrated with switches/info box, but this is a good start. Shows the last 5 log messages in an overlay on the map, with the rest visible in an oplog tab. Fixes #20 --- web/js/nms.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'web/js/nms.js') diff --git a/web/js/nms.js b/web/js/nms.js index 4092782..8eb1f3d 100644 --- a/web/js/nms.js +++ b/web/js/nms.js @@ -612,6 +612,8 @@ function initNMS() { nmsData.registerSource("snmp","/api/read/snmp"); nmsData.registerSource("comments", "/api/read/comments"); nmsData.registerSource("smanagement","/api/read/switches-management"); + nmsData.registerSource("oplog", "/api/read/oplog"); + nmsOplog.init(); } restoreSettings(); -- cgit v1.2.3