Skip to content

Conversation

@matthieucan
Copy link
Contributor

New pull request following reviews from #383

matthieucan and others added 29 commits July 2, 2014 12:10
The files contained in status/custom_*.py and status/templates/custom_*
pemit to have a views engine, i.e. a customised form in where you can choose
the data you need from Livestatus datasources/columns, arrange them how
you like (sorting, filtering, stats) and feed this data to pre-defined
templates or your own ones. The views can be represented with simple
dictionaries, and are therefore stored through the userdata module.

User-defined customised views are now possible within Adagios :)
* datatable: jquery plugin to render html tables into
  pageable/sortable/filterable tables. Simpler and more
  functional than datatables.

* jquery-ui: contains the functions which permit DOM elements
  to me draggable. This is used in custom forms, where the user
  can re-order the colums, filters, etc.
This templates, through the help of jqplot, can display a pie chart
representing data coming from aggregated Livestatus queries (with
the "Stats:" clause).
Through OpenLayers.js, displays a map with red/green markers representing
the state of all defined hosts.
The IP addresses are mapped to GPS coordianates through GeoIP.
This patch fixes an issue where custom_view cannot be
loaded because an extra linebreak is sent with the
livestatus query.

I am guessing shinken's implementation of livestatus
does not care about this.
If livestatus queries fail, return 500 error

This should make unit testing of the view easier.
This is cool for wall projection (and for the future dashboard.

Conflicts:
	adagios/status/templates/custom_views/templates/maps.html
The 'delete view' button is now on the edit page, rather than the
view page.
Conflicts:
	adagios/templates/base.html
@matthieucan matthieucan mentioned this pull request Jul 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant