There has been quite a lot of people testing Ninja/Merlin all during the last couple of months and we really appreciate all feedback that we get and try to respond as quickly as we possibly can. Keep it up!
There has been changes in some areas of Ninja during this time but the previous posts still holds.
When it comes to widgets, they now have some additional functionality which makes them even more useful.
Edit
All included widgets now supports editing if enabled (by setting class 'editable') in the wrapping div. By using JavaScript it is now possible to get background (Ajax) refresh with just a few lines of code.
Example:
In the network healt widget (netw_health) a javascript resource is added in the php file
$this->js = array('/js/netw_health');This file only contains the following code:
$(document).ready(function() {
var netw_health = new widget('netw_health', 'widget-content');
});
As you can see, it's only one line of code wrapped in the document ready event listner. It creates a new instance of the widget JavaScript class with 2 arguments:
- the widget identifier (widget name) and
- what CSS class in the widget that should be updated by the Ajax call.
It's just that simple. ;-)
More features
There are also other nifty features that has been added lately:
- Possibility to pause page refresh.
Sometimes you don't want the page to keep refreshing. By checking the "Pause refresh" checkbox under settings you may now pause the page refresh. - Hide Page Header.
By checking this checkbox under settings, the page header (with the status totals widget and links) will be hidden. This is a feature that the old CGI:s had and Ninja should of course have it too. - Paging.
Host- and service status listings might get rather long and to make the pages load faster we now use paging. The default number of items shown is set to 100 by default but an arbitrary number of items can be used on each page. The dafault value has to be changed in config/pagination.php (the 'items_per_page' key) today but the plan is to move this to the GUI in the future. - Improved search functionality.
This was demonstrated at Nordic Meet On Nagios 2009 but I haven't made any posts on this yet and a more in-depth post will cover this later. The functionality of the the search result will also be enhanced even further. - Floating table headers.
Sometimes when viewing large data sets in tables, you loose sight of the table haders and to make it easier to see what the values in the table stand for. To amend this, we added floating table headers to make the column labels to float with the page as you scroll down.
Once again, thanks to everybody for contributions, suggestions, patches etc - we need your input!



