Usage of display_name in XI, ETA?
Posted: Mon Jun 27, 2016 6:08 am
The infamous display_name directive.
I know that is in not implemented in the XI CGIs yet, but I was wondering when this was gonna actually be used.
See:
I mostly ask because many of the best CGIs only show the host_name, which is rather annoying to look at when you are forced to use unique host_names for over 800 hosts.
I currently have all my hosts using their IP addresses as their host_name, since I know the IP addresses are unique in my environment, and when automatically generating host configurations I want the new host with the same IP address to replace the old host.
But having everything listed by IP address is not very useful for my non-technical co-workers, and they aren't even sorted correctly because it is a string.
If there really is no ETA planned for this feature, how easy would it be to edit the dashlets myself?
Shouldn't be to hard to replace the displayed host_name with the display_name with something like: ($display_name == NULL ? $host_name : $display_name)
I know that is in not implemented in the XI CGIs yet, but I was wondering when this was gonna actually be used.
Looking around the forum for information about display_name, I see that it has been a planned feature since around 2010 or so.Object Definitions wrote:display_name:
This directive is used to define an alternate name that should be displayed in the web interface for this host. If not specified, this defaults to the value you specify for the host_name directive. Note: The current CGIs do not use this option, although future versions of the web interface will.
See:
- https://support.nagios.com/forum/viewto ... f=7&t=6209
- https://support.nagios.com/forum/viewto ... f=6&t=8228
- https://support.nagios.com/forum/viewto ... 16&t=11539
- https://support.nagios.com/forum/viewto ... 16&t=26979
- https://support.nagios.com/forum/viewto ... 16&t=30852
- https://support.nagios.com/forum/viewto ... 18&t=33051
- http://tracker.nagios.com/view.php?id=123
- http://tracker.nagios.com/view.php?id=128
I mostly ask because many of the best CGIs only show the host_name, which is rather annoying to look at when you are forced to use unique host_names for over 800 hosts.
I currently have all my hosts using their IP addresses as their host_name, since I know the IP addresses are unique in my environment, and when automatically generating host configurations I want the new host with the same IP address to replace the old host.
But having everything listed by IP address is not very useful for my non-technical co-workers, and they aren't even sorted correctly because it is a string.
If there really is no ETA planned for this feature, how easy would it be to edit the dashlets myself?
Shouldn't be to hard to replace the displayed host_name with the display_name with something like: ($display_name == NULL ? $host_name : $display_name)