We now have Icinga2 monitoring working with Graphite to create monitoring charts. In this final article we look at Dashing Icinga2 Dashboard. It creates dashboards with Icinga2 data. It’s made in Ruby on top of the Dashing Framework. With this framework you can deploy simple dashboards which makes monitoring your network easier.

Installing Dashing Icinga2

We are going to install Dashing on our master Icinga2 node. Dashing is built with Ruby so we have to install the Ruby environment. We use the Ruby Environment Manger (RVM) to install Ruby. RVM needs GnuPG 2, so we install that first.

We download the RVM install script and pipe it directly to bash. When it’s installed we need to initialize it by running its profile script.

We use RVM to install Ruby 2.2.4. Feel free to install a more recent one.

A lot of Ruby code has dependencies and there is a feature within RVM which allows you to automatically install these dependencies. This takes out the hassle of installing specific broken dependencies (openssl) at different custom locations.

Gem are Ruby packages. Dashing itself is a package. It also uses other packages (gems). We use the command gem to install gems.

Dashing uses a javascript back-end to display dashboards. We install node.js and its package manager.

We are almost there. We only need to create a Dashing project which creates dashboards with Icinga2 data. We use the current project created by the Icinga2 developers.

The Dashing project makes use of the Icinga2 REST API. We have to enable that feature. We also need to authenticate Dashing so that it can make use of the API.

Add this:

Every time we configure Icinga2 we need to restart the deamon:

Now all we have to do is point Dashing to the Icinga2 master node. We installed Dashing on this node so it’s localhost.

Add/ change it to this:

We’re now done! All we need is to restart Dashing. Make sure you are in the root Dashing directory (/usr/share/dashing-icinga2).

Icinga2 Dashboard

You can access the new dashboard at: http://[ip-of-the-master-node]:8005

Dashing is still in development. It takes a minute or two to get the data populated. Just leave it open!

You can find the dashboard in: /usr/share/dashing-icinga2/dashboards. Take a look at icinga2.erb:

Scroll down to the iframe section:

And change the ip (192.168.2.35) to that of your Icinga Master node.

Conclusion

We created a Dashing dashboard for Icinga. If we take the time to look at the structure of the erb-files we can change the dashboard to suite our needs.

Part 6 concludes our series into Icinga2. It is an open source monitoring tool which can be used with little overhead. If you use WMI for nodes running Windows, the implementation can be fairly simple.

So if you are in the market for a new monitoring tool, Icinga2 should be on your list.