Customize Dashing - Show Host Displayname instead of Hostname

Hello,

In our Icinga installation, we use IP address as a Hostname when adding hosts, and as a result, we see IP addresses in the Dashing Problem widget.

How may we change code in order to show Displayname instead of Hostname inside Problem widget?

Thank you!

Hi,

start your journey here.

You’ll need several things:

  • Fetch the attribute from the REST API into host objects. AFAIK this attribute is not implemented yet to keep the requests small enough.
  • Use the data provider inside the icinga2 job and replace name with display_name in the list generators
  • Keep in mind that display_name can be empty, so your code should provide a fallback to name in case

Cheers,
Michael