[icinga-checkins] icinga.org: icinga-core/mfriedrich/core: cgi: add opt-in display_name from hosts/services definitions; if set, they will be shown in the classical ui

git at icinga.org git at icinga.org
Fri May 14 21:12:45 CEST 2010


Module: icinga-core
Branch: mfriedrich/core
Commit: f9c2d54d46a9ca75c021269674f6fe988621ae12
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=f9c2d54d46a9ca75c021269674f6fe988621ae12

Author: Michael Friedrich <michael.friedrich at univie.ac.at>
Date:   Fri May 14 21:12:36 2010 +0200

cgi: add opt-in display_name from hosts/services definitions; if set, they will be shown in the classical ui

it is mentioned in the docs, that this feature will be done
somewhere in the future...

"The current CGIs do not use this option, although future
versions of the web interface will."

Well it is time for Icinga to do the first step on that.

If you set display_name in host definition, it will be shown
instead of host_name. for service definition, display_name will
be shown instead of service_description.

This is true for the following cgis:

* avail.cgi
* config.cgi
* extinfo.cgi
  - comments
  - downtime
  - scheduling queue
* histogram.cgi
* notifications.cgi
* outages.cgi
* status.cgi
  - host/service detail
  - host/service group overview
  - host/service problems
* statusmap.cgi
* statuswrl.cgi
* summary.cgi
* trends.cgi

display_name is also shown in the GD generated images.
If you don't set it, everything is like before.

fixes #307

---

 Changelog           |    1 +
 cgi/avail.c         |   19 +++++++++++++------
 cgi/config.c        |    9 +++++++--
 cgi/extinfo.c       |   38 +++++++++++++++++++++++++-------------
 cgi/histogram.c     |   31 ++++++++++++++++++++++++-------
 cgi/notifications.c |    9 ++++++---
 cgi/outages.c       |    6 ++++--
 cgi/status.c        |   16 +++++++++-------
 cgi/statusmap.c     |    6 ++++--
 cgi/statuswrl.c     |    7 ++++---
 cgi/summary.c       |   16 +++++++++++++---
 cgi/trends.c        |   33 ++++++++++++++++++++++++---------
 12 files changed, 134 insertions(+), 57 deletions(-)

Diff:   https://git.icinga.org/?p=icinga-core.git;a=commitdiff;h=f9c2d54d46a9ca75c021269674f6fe988621ae12




More information about the icinga-checkins mailing list