aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/nms-map-handlers.js
Commit message (Collapse)AuthorAgeLines
* front: Adjust new dhcp-magic to be less agressiveKristian Lyngstol2018-12-02-1/+1
|
* Merge pull request #171 from sklirg/patch-3Kristian Lyngstøl2018-04-06-1/+1
|\ | | | | Set Client ports description to "None configured" if no configured client ports
| * Set Client ports description to "None configured" if no configured client ports.Håkon Solbjørg2018-03-30-1/+1
| | | | | | This fixes a bug where "Client ports" value could be "0 / NaN" if no client ports were configured.
* | Tweak DHCP/uplink/client-port logicKristian Lyngstol2018-04-04-8/+32
| |
* | Throw TG18-stuff over the wallroot2018-03-31-5/+86
| |
* | Mange dager med rot på TG18root2018-03-26-10/+11
|/
* js/health: Tweak criticality of rebootroot2018-03-21-3/+3
|
* Added support to calculate uptime in daysSjur Fredriksen2017-11-12-3/+6
|
* fixed typo in error messageSjur Fredriksen2017-11-10-1/+1
|
* treewide: remove typosTorstein Husebø2017-10-03-1/+1
|
* TG17 monster commitKristian Lyngstøl2017-04-16-11/+103
|
* TG17 stuff ?Kristian Lyngstøl2017-04-10-16/+44
|
* Last bit of DX left-oversKristian Lyngstol2016-07-06-2/+11
| | | | Mainly moving graphs around
* Customizable titles on health map and sticky panesKristian Lyngstol2016-07-02-12/+17
| | | | | | | Click a field in a switch summary and the health map will use it as a legend, assuming it isn't already showing information. And remember what panel was used last when browsing switches.
* Implement tags and various other minor tweaksKristian Lyngstol2016-07-01-19/+49
|
* front: Fix basic Safari-stuff and misc oplog-issuesKristian Lyngstol2016-06-30-2/+2
| | | | | | | | .... Oplog: Don't send empty oplog entries. When viewing a switch, don't include oplog entries that have a blank system association.
* front: Add score card pageKristian Lyngstol2016-06-30-2/+2
| | | | Displays a sorted list of what needs attention.
* Tweak various front-end itemsKristian Lyngstol2016-06-30-7/+7
|
* Uplink logic for DXKristian Lyngstol2016-06-30-0/+29
|
* Adjust severity of DHCP and special-case snmp disableKristian Lyngstol2016-06-30-2/+10
| | | | | The latter allows you to set 'disable' as community and the front end (!) will not be as critical about the results.
* Get cisco temperatures too and mix other tweaksKristian Lyngstol2016-06-28-5/+5
|
* api: Fix bad hash-logic, front: Performance and moreKristian Lyngstol2016-05-31-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #93 Fixes #92 Fixes #91 The hash logic with FreezeThaw wasn't consistent, which broke a lot of optimizations. This might be slower (?) but it's consistent which means we'll make up for it by better cache utilization. To utilize this I also added delayed JSON parsing (#91) with a big description of why we want it. This also means that #90 and #89 is a lot less important. One issue right now is that "time" isn't part of the ETag. This is both a blessing and a curse. If we are going through time we will actually use in-app cache (not browser cache - the URL changes). This makes for nice CPU savings, but ultimately means we can't tell that the data for two distinct times is identical because we only see one. Oh well... On the simpler side, I fixed/improved the clearBox logic to fix the artifacts. Might need to tune this. I also added some optimizations to avoid redrawing identical text. This is what pointed out to me that the hash was broken too: The resizeEvent was triggering all the time, forcing redraws all the time. This happened because nmsData.switches "updated" frequently which should only happen if someone adds/moves/removes a switch or linknet - regardless of time travel. This was caused by the inconsistent hash causing a false cache miss. Anyway, if you are still reading this, you almost got a patch with "kjell magne bondevik uten mellomnavn" as a literal text string... TOO BAD.
* front: Greatly improve health map and moreKristian Lyngstol2016-05-29-14/+73
| | | | | | | | | | | | | As a result of testing with TG16-data, I was able to find and fix a few outstanding issues and tune the health map to make more sense. Also introduced both temperature and dhcp into the health map and info box. Removed the switchInfo text on the health map unless the score is above a threshold. Still more tuning needed. After introducing dhcpInfo it's become even more important to address #88
* front: Tweak info-box looks/widthKristian Lyngstol2016-05-28-1/+1
| | | | Makes it more snug and look the same all over
* front: More visual tweaks and tuneupsKristian Lyngstol2016-05-28-13/+13
| | | | | | | - 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: Tweak various aestheticsKristian Lyngstol2016-05-28-4/+14
|
* front: More performance tweaks and testTree()Kristian Lyngstol2016-05-27-25/+15
| | | | | | | | | | | | | 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: Some minor CPU optimizationsKristian Lyngstol2016-05-27-8/+8
| | | | Knocking stuff off the top of the cpu hogs from a tiny bit of profiling.
* front: Tweak/fix ping scoresKristian Lyngstol2016-05-27-5/+12
| | | | | | | Specially bad was the foo == bar == undef thing which broke completely. Also, this makes sure that we don't cap out at 200 if the ping reply is 1000ms...
* front: Minor sorting of the info-boxKristian Lyngstol2016-05-26-2/+2
| | | | Management IP up top seems sensible.
* front: De-noise the ping handler in lack of pingKristian Lyngstol2016-05-23-1/+0
| | | | That was supposed to be a debug thing...
* front: Fix Ping-map nameKristian Lyngstol2016-05-23-1/+1
| | | | Also does ipv6 now.
* Ping and expose ipv6 as a true equal/superiorKristian Lyngstol2016-05-23-5/+26
| | | | | | | | | | Fixes #80 I should go to bed. Also: Fixes a tiny little issue where we didn't take into account the nature if the OPing timeout? Or has it changed? Either way, no longer do we store thousands of ping replies - per second.
* front: Live search and tweaked mgmt infoKristian Lyngstol2016-05-22-11/+34
| | | | | | | | Fixes #2 Also, since I didn't bother splitting the commits, this tweaks the information provided from the snmp handler and management handler. Notably treating IPv4 and IPv6 management addresses as equals.
* front: Fix minor, but crucial typo in the ping mapKristian Lyngstol2016-05-22-1/+1
| | | | Ooops...
* front: Move data-logic out of infoboxKristian Lyngstol2016-05-22-23/+65
| | | | | | | | | | handlerInfo is getting slightly extensive, but it might be worth it. This also introduces a "map" handler that .... doesn't handle the map. If/when namespaces are introduced properly in nms-map-handlers.js, we should also rename it to nms-data-logic.js or something else that signifies that this is what makes data useful one way or an other.
* Front: introduce nmsColor namespaceKristian Lyngstol2016-05-22-54/+62
| | | | | | Also gets rid of color_from_latency() (?) as it was basically worthless by now, and adds switch info to the combo-map so you can quickly identify why a switch is colored a certain way without clicking on it.
* Slightly tweak the internal API for combined healthKristian Lyngstol2016-05-21-16/+47
|
* Expose handler-data/combo data in infoboxKristian Lyngstol2016-05-21-1/+6
| | | | | | | | Fixes #15 Still lots of things that _should_ be done, but this is the groundwork needed for a combined map. Theoretically, all map handlers should just expose getInfo somehow now.
* Tweak ping-map after the combo-map reworkKristian Lyngstol2016-05-20-15/+8
| | | | | | Should get rid of the get_gradient_from_latency entirely. PS: jocke, you read too many commit logs.
* Add a combined health mapKristian Lyngstol2016-05-20-1/+76
| | | | | | | | | | 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-61/+0
|
* Minor UI tweaks here and thereKristian Lyngstol2016-05-16-6/+6
| | | | | | | | | - Shadow for map title text (color matches background, so only visible when background interferes with readability) - SNMP map is private too - Remove 'map' from a bunch of titles - Fix z-index and position for map title (z-index is lower than the input canvas, but higher than everything else).
* Actual initial importKristian Lyngstol2016-04-12-0/+490
Fetched from tgmanage.