aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/nms.js
Commit message (Collapse)AuthorAgeLines
* Use ping as default map on public siteOle Mathias Aa. Heggem2019-04-10-0/+2
|
* Make public gondul not ask for authOle Mathias Aa. Heggem2019-04-10-1/+2
|
* Re-introduce the use-name-box and tweak styleKristian Lyngstol2019-01-08-1/+0
| | | | | | Turns out the style-diff was because the old implementation with hard-coded HTML had indentation == white space, which rendered as white-space between the elements.... This SHOULD be a CSS fix, but in the meanwhile....
* Re-enable oplog-togglingKristian Lyngstol2019-01-07-1/+1
|
* More big stuff: Re-do the oplogKristian Lyngstol2019-01-07-5/+1
| | | | | This is still a bit of a mess, but I'm establishing a new way of doing things, it'll be awesome, I swear...
* js: Trigger a map-resize when menu is toggledKristian Lyngstol2019-01-05-0/+2
| | | | Fixes #71
* Merge pull request #169 from tech-server/cpu-map-hotkeyKristian Lyngstøl2019-01-03-0/+3
|\ | | | | Adding CPU map to key 9, moving disco to 0
| * Adding CPU map to key 9, moving disco to 0cpu-map-hotkeyMagnus Kirø2018-04-06-0/+3
| |
* | nms.js: Add time-traveling in whole days with H/L keysKristian Lyngstol2018-12-02-0/+8
| |
* | front: Shortcut for toggling the oplog (o)Kristian Lyngstol2018-04-09-0/+15
| |
* | Merge pull request #170 from sklirg/patch-1Kristian Lyngstøl2018-04-06-1/+1
|\ \ | | | | | | Make health view the default view.
| * | Make health view the default view.Håkon Solbjørg2018-03-29-1/+1
| |/
* | Fix replay for TG18 and in generalKristian Lyngstol2018-04-04-8/+19
| |
* | Throw TG18-stuff over the wallroot2018-03-31-0/+1
| |
* | Mange dager med rot på TG18root2018-03-26-1/+1
|/
* Merge pull request #168 from olemathias/network-firstclassKristian Lyngstøl2018-03-21-8/+9
|\ | | | | Network as own table
| * Merge branch 'master' into network-firstclassOle Mathias Aa. Heggem2018-03-21-0/+1
| |\
| * | Making network first class citizenOle Mathias Aa. Heggem2018-01-28-1/+1
| | |
| * | Making network first class citizenOle Mathias Aa. Heggem2018-01-28-8/+9
| | | | | | | | | | | | Still work in progress
* | | Make health-map defaultroot2018-03-21-3/+3
| |/ |/|
* | Added a litle better color scheme to charts and some words about securing influxOle Mathias Aa. Heggem2018-03-17-0/+1
|/
* TG17 stuff ?Kristian Lyngstøl2017-04-10-6/+4
|
* Provide basic UI for template-testingKristian Lyngstol2016-11-14-2/+2
| | | | | | Still leaves a lot to be desired, but is a good start. References #151
* Push all numerical snmp-data to graphiteKristian Lyngstol2016-11-10-1/+1
| | | | Fixes #126
* Use dynamic size for the top-tickerKristian Lyngstol2016-11-09-1/+5
|
* Tweak graphs slightly for size and moreKristian Lyngstol2016-11-07-1/+1
|
* Graph ALL the thingsKristian Lyngstol2016-11-07-0/+15
| | | | | | | Tweaks background colors on graphs. Adds a funky "ticker" to the navbar that may or may not break small screens. Graphs average latency and total bandwidth for all equipment.
* Drastically improving graphing and port drill-downKristian Lyngstol2016-11-03-0/+2
| | | | | | | | | | | | | | | | | | | | | - Nightmode - Aliases for sensible legends - Two layers of collapse on ports - Toggle/expand all feature to show graphs for all ports - Show human readable variant of very large numbers in port drill-down in addition to raw value (e.g.: 4800000000 (4.8G)) Still to do: - Ability to click on a stat to get graphs for it - Upgrade to graphite 0.9.15. Most of the following depends on that: - Use perSecond() instead of derivative() for traffic - Use SVG instead of PNG - Get rid of extra )'s in legends - Evaluate using SVG + CSS to get nightmode. Not sure if that'll work at all, as it depends on whether the SVG context is isolated or not from the DOM at large (e.g.: is #nightmode visible) - Consider generalizing graphs
* front: Fix basic Safari-stuff and misc oplog-issuesKristian Lyngstol2016-06-30-1/+4
| | | | | | | | .... Oplog: Don't send empty oplog entries. When viewing a switch, don't include oplog entries that have a blank system association.
* Add DHCP-based client counter in front-endKristian Lyngstol2016-06-30-0/+1
|
* Fix numerous time-travel issues in front and APIKristian Lyngstol2016-05-28-245/+28
| | | | | | | | | | | | | | | | | Fixes #69 #11 #5 Introduces nmsTime which unifies the time travel code a bit. It still needs some work, but this is much better. All conversion is now done by native JavaScript methods, freeing us from the hell that is parsing it ourself. One thing should be added: The backend should discard any now=values that are not 5-minute intervals. We don't want to kill the cache and the database by extension. Still need to re-implement the "replay event" shorthand, but that ties in to #54
* front: More visual tweaks and tuneupsKristian Lyngstol2016-05-28-1/+1
| | | | | | | - Time in oplog is now localtime and properly padded (00:10, not 0:10) - Health map instead of combo/aggregated - Tweak the menu slightly - Rotate and resize the random switch in guess_placement
* front/api: Add user-provided nick to oplogKristian Lyngstol2016-05-28-1/+9
| | | | | | Fixes #84 It's really stupid simple, but it will work.
* front: More performance tweaks and testTree()Kristian Lyngstol2016-05-27-0/+21
| | | | | | | | | | | | | testTree() will make it easier to avoid try-catch'ing because instead of if (nmsData == undefined || nmsData.snmp == undefined || nmsData.snmp.snmp == undefined || nmsData.snmp.snmp[sw] == undefined || nmsData.snmp.snmp[sw].misc ...) you can do if (!testRoot(nmsData,['snmp','snmp',sw,'misc')) { ... Which is at least slightly less annoying.
* front: Remove some old console.log() remnantsKristian Lyngstol2016-05-25-1/+4
| | | | KEK
* front: Fix switch viewing in public and tvmode-initKristian Lyngstol2016-05-25-2/+4
| | | | Fixes #76
* front: Remove nms.views and improve #anchor logicKristian Lyngstol2016-05-25-19/+24
| | | | | | | | | | Fixes #82 nms.views is gone, and if the anchor (http://.../#anchor) is a comma-separated list, "tvmode" will be used. Also ensures that the anchor already contains the updater tag, it wont be changed. This means that for tvmode the anchor wont change constantly.
* front: Track frontend run-timeKristian Lyngstol2016-05-24-0/+5
| | | | | Mainly for future use. To avoid notifications if we just loaded up recently, for example.
* Front: Further reduce tvmode-uniquenessKristian Lyngstol2016-05-22-14/+17
| | | | | | | | | Still not very happy with this, but it's inching closer to acceptable every day. Should probably redo the whole set_handler() logic with regards to the anchor to always use the views-logic where a comman-separated list is acceptable, then get rid of nms.views all together.
* Front: Separate searching from the info-boxKristian Lyngstol2016-05-22-8/+1
|
* Add a combined health mapKristian Lyngstol2016-05-20-0/+3
| | | | | | | | | | Only combines SNMP and ping for now, but the "API" it establishes should do what we need. References #15 Before I consider this done we need to add the infomration in the info-box, and also remove the manual information present there.
* Remove comments from code in place of oplogsKristian Lyngstol2016-05-18-64/+0
|
* Add basic oplogKristian Lyngstol2016-05-18-0/+2
| | | | | | | | | | 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
* Frontend: Hide certain elements in public-modeKristian Lyngstol2016-05-16-0/+2
| | | | Probably a few more items that needs to be added here.
* Add config read-api and use it to detect public accessKristian Lyngstol2016-05-16-5/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | Currently no way to modify the settings except by manual SQL, but it's coming. This allows us to have event-specific configuration in the database. This commit adds js that uses this to detect if the frontend is a public vhost or not. There are currently only three columns provided in addition to ID. publicvhost: The domain name of the publicly accessible version of Gondul. shortname: code name for the vent. e.g dx16, tg17, etc. data: jsonb to contain most other settings as we see fit. Most settings will be stored in 'data' if it's only or mainly used by the frontend. This will allow frontend developers to supply arbitrary configuration options without the need for API or database changes in the future. Fixes #51 References #54 Still need the GUI for it.
* Add tabs for admin/mapKristian Lyngstol2016-05-14-0/+19
| | | | | | The admin-tab is currently empty. That is besides the point. Closes #18
* Start simplifying tvmode and settingsKristian Lyngstol2016-05-13-47/+61
| | | | | | | | | | Fixes #68 References #67 There's still a few bits missing for #67 since there is no UI for it yet. On the bright side, this will store arbitrary options.
* Actual initial importKristian Lyngstol2016-04-12-0/+792
Fetched from tgmanage.