Global dashlets available?

Weeeell, no. At least not by an easy way.

You may create your own module, let it provide a dashboard and control who can see this dashboard by the usual module privileges.

The simplest way to do this is:

  • Create a directory beneath your module path (Package default: /usr/share/icingaweb2/modules)
  • Give it a catchy name such as global-dashboards
  • Create a file called configuration.php in the newly created directory, put the following into it:
<?php

$dashboard = $this->dashboard('Global Dashboards', ['priority' => 100]);
$dashboard->add(
    'Dashboard #1',
    'monitoring/list/hosts'
);
$dashboard->add(
    'Dashboard #2',
    'monitoring/list/services'
);

Then enable the module. To see its dashboard(s) a user requires access to the module. (Permission: module/global-dashboards) This can be controlled the usual way with roles.

3 Likes