Module: check_mk
Branch: master
Commit: de28cc8f46ee9fb4bcb01c40cabee1f1e363408e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=de28cc8f46ee9f…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Mar 26 16:25:09 2012 +0200
Further layout fix in host stats
---
web/htdocs/dashboard.css | 10 +++++-----
web/htdocs/dashboard.py | 18 +++++++++---------
web/htdocs/images/globe.png | Bin 12042 -> 18592 bytes
3 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/web/htdocs/dashboard.css b/web/htdocs/dashboard.css
index 8108e87..a216fbf 100644
--- a/web/htdocs/dashboard.css
+++ b/web/htdocs/dashboard.css
@@ -153,8 +153,8 @@ img.globe {
div.dashlet table.hoststats {
margin-top: 10px;
- margin-left: 5px;
- width: 143px;
+ margin-left: 13px;
+ width: 135px;
height: 142px;
border-collapse: collapse;
border-spacing: 0px;
@@ -176,8 +176,7 @@ div.dashlet table.hoststats td {
text-align: right;
padding-right: 4px;
padding-left: 4px;
- background-image: url("images/form_background.png");
- background-repeat: repeat;
+ background-color: #95bbcd;
}
div.dashlet table.hoststats th {
@@ -187,7 +186,7 @@ div.dashlet table.hoststats th {
}
div.dashlet table.hoststats td.color {
padding: 0px;
- width: 3px;
+ width: 4px;
}
div.dashlet table.hoststats th, table.hoststats td {
padding-top: 3px;
@@ -199,6 +198,7 @@ div.dashlet table.hoststats th, table.hoststats td {
}
div.dashlet table.hoststats.narrow th, table.hoststats.narrow td {
font-size: 8pt;
+ font-weight: normal;
}
div.dashlet_inner div.stats {
diff --git a/web/htdocs/dashboard.py b/web/htdocs/dashboard.py
index d540ea8..1582ce1 100644
--- a/web/htdocs/dashboard.py
+++ b/web/htdocs/dashboard.py
@@ -414,25 +414,25 @@ def dashlet_mk_logo():
def dashlet_hoststats():
table = [
- ( _("up"), "#0b3",
+ ( _("Up"), "#0b3",
"searchhost&is_host_scheduled_downtime_depth=0&hst0=on",
"Stats: state = 0\n" \
"Stats: scheduled_downtime_depth = 0\n" \
"StatsAnd: 2\n"),
- ( _("down"), "#f00",
+ ( _("Down"), "#f00",
"searchhost&is_host_scheduled_downtime_depth=0&hst1=on",
"Stats: state = 1\n" \
"Stats: scheduled_downtime_depth = 0\n" \
"StatsAnd: 2\n"),
- ( _("unreachable"), "#f80",
+ ( _("Unreachable"), "#f80",
"searchhost&is_host_scheduled_downtime_depth=0&hst2=on",
"Stats: state = 2\n" \
"Stats: scheduled_downtime_depth = 0\n" \
"StatsAnd: 2\n"),
- ( _("in downtime"), "#0af",
+ ( _("In Downtime"), "#0af",
"searchhost&search=1&is_host_scheduled_downtime_depth=1",
"Stats: scheduled_downtime_depth > 0\n" \
)
@@ -452,20 +452,20 @@ def dashlet_servicestats():
"Stats: host_has_been_checked = 1\n" \
"StatsAnd: 5\n"),
- ( _("in downtime"), "#0af",
+ ( _("In Downtime"), "#0af",
"searchsvc&is_in_downtime=1",
"Stats: scheduled_downtime_depth > 0\n" \
"Stats: host_scheduled_downtime_depth > 0\n" \
"StatsOr: 2\n"),
- ( _("on down host"), "#048",
+ ( _("On Down host"), "#048",
"searchsvc&hst1=on&hst2=on&hstp=on&is_in_downtime=0",
"Stats: scheduled_downtime_depth = 0\n" \
"Stats: host_scheduled_downtime_depth = 0\n" \
"Stats: host_state != 0\n" \
"StatsAnd: 3\n"),
- ( _("warning"), "#ff0",
+ ( _("Warning"), "#ff0",
"searchsvc&hst0=on&st1=on&is_in_downtime=0",
"Stats: state = 1\n" \
"Stats: scheduled_downtime_depth = 0\n" \
@@ -474,7 +474,7 @@ def dashlet_servicestats():
"Stats: host_has_been_checked = 1\n" \
"StatsAnd: 5\n"),
- ( _("unknown"), "#f80",
+ ( _("Unknown"), "#f80",
"searchsvc&hst0=on&st3=on&is_in_downtime=0",
"Stats: state = 3\n" \
"Stats: scheduled_downtime_depth = 0\n" \
@@ -483,7 +483,7 @@ def dashlet_servicestats():
"Stats: host_has_been_checked = 1\n" \
"StatsAnd: 5\n"),
- ( _("critical"), "#f00",
+ ( _("Critical"), "#f00",
"searchsvc&hst0=on&st2=on&is_in_downtime=0",
"Stats: state = 2\n" \
"Stats: scheduled_downtime_depth = 0\n" \
diff --git a/web/htdocs/images/globe.png b/web/htdocs/images/globe.png
index 88c0374..7cde4f0 100644
Binary files a/web/htdocs/images/globe.png and b/web/htdocs/images/globe.png differ