[icinga-checkins] icinga.org: icinga-core/mbrooks/cgis: Added option to suppress coloring of hosts/services in maintenance #992

git at icinga.org git at icinga.org
Fri Jun 3 08:14:02 CEST 2011


Module: icinga-core
Branch: mbrooks/cgis
Commit: 56cf27ea6514c8cfcb8111703e1ceec2aedc6590
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=56cf27ea6514c8cfcb8111703e1ceec2aedc6590

Author: Matthew J. Brooks <matthew at sonomatechpartners.com>
Date:   Thu Jun  2 23:05:36 2011 -0700

Added option to suppress coloring of hosts/services in maintenance #992

The current Classic UI view shows the state of hosts including
attention grabbing colors even if the host/service is scheduled for
downtime. This tends to distract from discerning which problems
really exist between those which were planned or expected.

This commit adds the following option to cgi.cfg:

suppress_maintenance_downtime=0

It is disabled by default to maintain the old behavior, however
those wishing to enable it will note that rather than displaying
issues in their regular color, they will be grey (similar to
the pending state). The status, however will still display the
actual state and this is intended behavior. This is so the user
can use icinga to see what the state is in before the downtime
ends. A useful example for this is so it can be seen that a
host/service that was being worked on actually came back online.

In addition, hosts in scheduled downtime will be grey in the
statusmap.cgi

refs #992

---

 Changelog                    |    1 +
 cgi/cgiutils.c               |    4 ++
 cgi/extinfo.c                |   37 ++++++++++++++++++------
 cgi/status.c                 |   47 ++++++++++++++++++------------
 cgi/statusmap.c              |   64 +++++++++++++++++++++++++++++++----------
 html/stylesheets/extinfo.css |   14 +++++----
 html/stylesheets/status.css  |   10 ++++--
 sample-config/cgi.cfg.in     |    9 ++++++
 8 files changed, 132 insertions(+), 54 deletions(-)

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




More information about the icinga-checkins mailing list