aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/nms.js
diff options
context:
space:
mode:
authorKristian Lyngstol <kristian@bohemians.org>2016-05-18 18:34:28 +0200
committerKristian Lyngstol <kristian@bohemians.org>2016-05-18 18:34:28 +0200
commit81397bfd9fa54c60a8568812fc0ad99802a4e360 (patch)
tree26da570df1e43dc0304ad7ca88a42da252dcbecf /web/js/nms.js
parente371b456f6a3872bd691e45ef6f7b52094d811f7 (diff)
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
Diffstat (limited to 'web/js/nms.js')
-rw-r--r--web/js/nms.js2
1 files changed, 2 insertions, 0 deletions
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();