This is a guest blogpost from Dave Kempe from Sol1
It can even play sounds, making for the ultimate sysadmin soundboard! It is quick and easy to setup and use, simply grab the docker container or build from source.
Once you have Meerkat up and running, you will want to create your first dashboard. It’s probably best to have a sensible background first. The background needs to be a browser displayable image, even an animated gif is possible! We have used diagram tools (Lucidchart/Draw.io) for backgrounds, pictures of racks, world maps etc. It helps if you have thought about how you want the checks and background image to overlay together beforehand. You can author the background image in any program that can produce image files that browsers can display, we have tested png, jpeg, webp and gif.
- Make a new dashboard by clicking Create New Dashboard button and giving it a name. Dashboards can then be edited and viewed from the main page.
- Edit your dashboard and add a Background Image.
- Add new Elements and pick the type of Element you want to add.
- Drag and drop your Element over the top of the map to somewhere that makes sense relative to the background. You can resize and rotate elements.
- Remember to click Save. Many times.
- Once done, click Home and then view your dashboard.
Dashboards are saved as json files under the `dashboards` directory which get generated on startup, so backing up or moving data is easy. The `dashboard-data` directory is for image/file data.
Jump over to the Meerkat repo to grab a copy and get started, or simply pull our image from Docker Hub
docker pull sol1/meerkat
Meerkat supports various element types, some sourced from the Icinga API backend, and others static.
Icinga type elements can select from the following sources: Hosts, Services, Host Groups, Service Groups, Host Filter, Service Filter and All Services on a Host.
These sources are largely self-explanatory, however the filter language for the filter sources is a little unintuitive. The base doco is here and some hints are provided in the input dialog. You can also set a Linking URL for these elements which let you link to somewhere else, like another dashboard, or Icinga Web.
A simple rectangular card that displays the status of the check. Cards also support performance data, and you can pick the type of perfdata you want to display and the card will display the value. For example, pick “packetloss” and the value will be displayed in percentage (30%).
You can select an SVG to toggle between for the various states. The default SVGs are sensible, however feel free to choose whatever makes sense to you. The colour of the SVG changes to reflect the state.
Select a set of images you want to toggle between when the state changes.
Allows you to draw lines, you can rotate and resize them, and set the weight. They only toggle between OK, Warning, Critical, Unknown at present.
Static Text, SVG and Image
Useful for adding headings or labels.
HLS and Audio Stream
Embed video or audio streams in the dashboards in case staring at the dashboard is boring!
Meerkat allows you to specify a global sound scheme for state change, as well as upload custom sounds. Each check can also have different sounds triggered on state change. Yes you can have the sysadmin DJ soundboard of doom you always wanted!
Future enhancements may include:
* Authentication support (though it is meant to be displayed on a wall, without auth mostly)
* Automation for creation of the dashboard config, allowing for easy mass creation of dashboards from Icinga data
* Automation for export of Meerkat dashboards to Business Processes
This tool is designed to be used internally, there is no user management and it has direct access to the Icinga 2 API (with some minor filtering) I would not recommend putting this on the internet. You can limit the API user using filters as per the Icinga docs here
Sol1 is an official Icinga Enterprise Partner, and can offer commercial support for Meerkat and Icinga and friends. We are a friendly bunch of people, so please don’t hesitate to get in touch on our website.
We welcome any contributions. Let us know via the issues here if there is something you need fixed up, or even better, a patch or PR would be most appreciated.
License is GNU Affero GPLv3.
This was a guest blogpost from Dave Kempe from Sol1