The performance graphs present in NetEye are very useful for getting an immediate idea of the trend related to a service check, but they’re still limited to the metric being viewed.
Also, the “Show all graphs” option available from the Actions menu of each monitored Host can have different usage limits due to the presence of many service checks with performance graphs.
With the ITOA module and with some features of the NetEye web interface we can do much more.
In this blog post we’ll see how to display a custom dashboard for a limited family of hosts (Windows and Linux servers).
Have you ever tried Host and Service actions?
Host and Service actions are a rarely used feature, but they’ve got great potential. They can be managed by any NetEye user via the account settings and Navigation Items menu, and can help to extend NetEye functionality by contacting a URL (for example a wiki, a CRM or the NetEye ITOA module) which can be passed as a parameter a macro ($host.name$, $host.address$, …) and/or a custom property of the host or service check in use.
In the following example available in our online demo you’ll find several applications of extended Actions.
First of all you have to export and then import the two example Dashboards from our demo system to your NetEye Master node from the following URLs:
Remember to export them with the option “Export for sharing externally”.
You also need a MYSQL datasource with a user that has read rights on the Icinga database, as shown in the following example:
After importing each dashboard you should get a dropdown menu showing Linux and Windows hosts respectively.
If not, you need to adjust the query of the variable hostname from “Dashboard Settings – Variables” and adjust the hostgroup name.
Finally, take a note of the URL of each dashboard starting from “analytics”. In our demo system these are:
Now let’s create two Host actions that will allow us to open a custom Dashboard for all Windows hosts of the hostgroup “windows_servers”, and a different one for Linux hosts of the hostgroup “linux_servers”.
From our user’s account setting we need to select Navigation and then “Create a New Navigation Item”, choosing Host Action:
For each Navigation Item you can define the following options:
Grafana Window Dashboard Navigation item
Grafana Linux Dashboard Navigation item
At the end we should have the “Grafana Linux Dashboard” and “Grafana Windows Dashboard” Host Actions respectively for each host in the respective hostgroups, allowing you to open the dashboard with the metrics related to the selected host.
Did you find this article interesting? Does it match your skill set? Our customers often present us with problems that need customized solutions. In fact, we’re currently hiring for roles just like this and others here at Würth Phoenix.