aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
* Front: introduce nmsColor namespaceKristian Lyngstol2016-05-22-87/+90
| | | | | | 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.
* front: Move CSS out of index.htmlKristian Lyngstol2016-05-22-99/+91
|
* 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.
* ansible: Add tag for "pwd" so we can "run" without buildingKristian Lyngstol2016-05-22-0/+4
|
* Front: Separate searching from the info-boxKristian Lyngstol2016-05-22-148/+155
|
* Add a suicidal postgresql.confKristian Lyngstol2016-05-22-0/+617
| | | | | | | | My laptop was catching fire. If you enjoy keeping data around, then this is not a config you should deploy. If you are using this in a docker container that discards data on restart anyway, then it makes perfect sense.
* Search box/oplog: Add string-literal searchKristian Lyngstol2016-05-22-2/+10
| | | | | You can now use "foo" to find a switch called foo, but not also the ones called foobar foobar1, etc
* Slightly tweak the internal API for combined healthKristian Lyngstol2016-05-21-16/+47
|
* Expose handler-data/combo data in infoboxKristian Lyngstol2016-05-21-66/+11
| | | | | | | | 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-16/+9
| | | | | | 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/+84
| | | | | | | | | | 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.
* Add rudimentary way of providing linknets.Kristian Lyngstol2016-05-20-1/+60
| | | | Needs a lot of work, including the API side, possibly also the schema.
* Add system-generated op logsKristian Lyngstol2016-05-20-3/+38
| | | | | | | | First up: Add a switch, get a log entry. This might require some filtering in the GUI eventually. This is why the user is set to 'system', even when we have an actual user that triggered the event.
* Ansible: Add group_vars and expose port 80 by defaultKristian Lyngstol2016-05-20-2/+6
| | | | | | A thousand ways to override front_ports and varnish_ports now, so this concept should work well. Might just move the variables into the inventory file itself, we'll see.
* Config: Output some defaults if there is no config.Kristian Lyngstol2016-05-20-0/+3
| | | | Fixes #79
* Merge branch 'master' of github.com:tech-server/gondulKristian Lyngstol2016-05-20-2/+2
|\
| * Merge pull request #75 from lasseh/masterKristian Lyngstøl2016-05-20-2/+2
| |\ | | | | | | Fix for finding ip when docker outputs multiple lines
| | * Fix for finding ip when docker outputs multiple linesLasse Haugen2016-05-19-2/+2
| |/
* / Add first iteration of dbconfig packageKristian Lyngstol2016-05-20-0/+29
|/ | | | | | Should do a better job of the naming and the actual $dbh maintenance. I'm thinking that including nms::db should contain a $dbh perhaps.
* Increase area used by random fallback placement of switchesKristian Lyngstol2016-05-19-2/+2
| | | | Got tired of hogging the upper left corner
* Remove /comments from test - replace with oplogKristian Lyngstol2016-05-19-23/+1
|
* Tweak log entries and switch entriesKristian Lyngstol2016-05-19-6/+13
| | | | Also: onclick handler for log entries.
* Disable IE support and HTML-injectionKristian Lyngstol2016-05-18-6/+6
|
* Remove comments from SQLKristian Lyngstol2016-05-18-69/+0
|
* Remove comments from code in place of oplogsKristian Lyngstol2016-05-18-273/+42
|
* Add SQL for backlog stuff too (ops)Kristian Lyngstol2016-05-18-0/+43
|
* Add basic oplogKristian Lyngstol2016-05-18-3/+148
| | | | | | | | | | 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
* Add search-box documentationKristian Lyngstol2016-05-16-0/+38
| | | | Fixes #41
* Minor UI tweaks here and thereKristian Lyngstol2016-05-16-8/+11
| | | | | | | | | - 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).
* Frontend: Hide certain elements in public-modeKristian Lyngstol2016-05-16-13/+18
| | | | Probably a few more items that needs to be added here.
* Make the admin-pane slightly usefulKristian Lyngstol2016-05-16-2/+82
| | | | It's still not very good, but this doesn't have to be precision work.
* Add write-api for configKristian Lyngstol2016-05-16-0/+22
| | | | References #54
* Add tiny utility to invalidate varnish' cacheKristian Lyngstol2016-05-16-0/+3
|
* Add config read-api and use it to detect public accessKristian Lyngstol2016-05-16-6/+121
| | | | | | | | | | | | | | | | | | | | | | | | | | 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 utility to dump SQL schemaKristian Lyngstol2016-05-14-0/+4
|
* Add tabs for admin/mapKristian Lyngstol2016-05-14-1/+55
| | | | | | The admin-tab is currently empty. That is besides the point. Closes #18
* Ansible: Add (but don't use) a way to export portsKristian Lyngstol2016-05-14-0/+6
| | | | | Don't want to export it by default to avoid development laptops exposing stuff you don't want exposed to the world.
* Tweak README for name-changes and recent updatesKristian Lyngstol2016-05-13-42/+38
|
* Move stuff from /opt/nms to /opt/gondul etcKristian Lyngstol2016-05-13-38/+38
| | | | Still lots to do
* Ansible: Start the move to Gondul-namingKristian Lyngstol2016-05-13-14/+14
|
* Ansible: Display IP of apache-server toKristian Lyngstol2016-05-13-1/+6
| | | | | | | | | Makes FRONTEND development easier since you can just bypass the cache. Be warned: If you are doing backend/api-development, you should use the varnish-URL to ensure your caching rules are sensible. This apache-frontend-ip is provided mainly for tinkering with javascript and HTML.
* Start simplifying tvmode and settingsKristian Lyngstol2016-05-13-68/+67
| | | | | | | | | | 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.
* Slightly tweak the README to track recent changesKristian Lyngstol2016-05-12-4/+8
|
* Move ansible stuff away from build/testKristian Lyngstol2016-05-12-0/+0
| | | | | | It's not just test... References #56
* Add tags to ansible to allow selective jobsKristian Lyngstol2016-05-12-0/+18
| | | | | | This is far better than a separate playbook. Closes #60
* Ansible: Start splitting test and "prod" logicKristian Lyngstol2016-05-11-76/+77
|
* Start the name change in the READMEKristian Lyngstol2016-05-10-12/+18
| | | | References #55
* Add test case for populating switchesKristian Lyngstol2016-05-10-0/+9
|
* Tweak SNMP fetch testerKristian Lyngstol2016-05-10-1/+26
|
* Tweak mib paths and ignore them in gitKristian Lyngstol2016-05-10-1/+2
|