diff --git a/conf/config.php b/conf/config.php
index 781172d..8a217f1 100644
--- a/conf/config.php
+++ b/conf/config.php
@@ -13,7 +13,17 @@ $CONFIG['rrdtool'] = '/usr/bin/rrdtool';
$CONFIG['rrdtool_opts'] = '';
# category of hosts to show on main page
-#$CONFIG['cat']['category1'] = array('host1', 'host2');
+#$CONFIG['cat'] = array(
+# 'web',
+# 'backends',
+# 'mail',
+# 'dev',
+#);
+
+# $CONFIG['web']['webmail'] = array('webmail1.domain.tld','webmail2.domain.tld');
+# $CONFIG['backends']['apache'] = array('apache1.domain.tld','apache2.domain.tld');
+# $CONFIG['mail']['imap'] = array('imap1.domain.tld','imap2.domain.tld');
+# $CONFIG['dev']['imap'] = array('dev1.domain.tld','dev2.domain.tld');
# default plugins to show on host page
$CONFIG['overview'] = array('load', 'cpu', 'memory', 'swap');
diff --git a/index.php b/index.php
index 18d8313..bb29fdb 100644
--- a/index.php
+++ b/index.php
@@ -10,10 +10,17 @@ $h = array();
# show all categorized hosts
if (is_array($CONFIG['cat'])) {
- foreach($CONFIG['cat'] as $cat => $hosts) {
- printf("
%s
\n", $cat);
- host_summary($hosts);
- $h = array_merge($h, $hosts);
+ foreach($CONFIG['cat'] as $category) {
+ printf("\n");
+ printf("
%s
\n", $category);
+ foreach($CONFIG["$category"] as $cat => $hosts) {
+ printf("
\n");
+ printf("
%s
\n", $cat);
+ host_summary($hosts);
+ $h = array_merge($h, $hosts);
+ printf("\n");
+ }
+ printf("
\n");
}
}
diff --git a/layout/style.css b/layout/style.css
index e478203..a7f658e 100644
--- a/layout/style.css
+++ b/layout/style.css
@@ -42,18 +42,49 @@ a:hover {
text-decoration: underline;
}
+div.block {
+ clear:left;
+ padding:25px 0 ;
+}
+
+h2{
+ display:block;
+ width:100%;
+ clear:left;
+ text-transform:uppercase;
+ border-bottom:1px dotted #CCCCCC
+}
+
+h3{
+ text-transform:capitalize
+}
+
+div.subblock {
+ width:368px;
+ float:left;margin:10px;
+ background:#efefef;
+ padding:5px;
+ min-height:280px;
+}
+
+#footer{clear:left;}
+
+table {
+ font-size: 11px;
+}
+
table.summary th {
- width: 150px;
+ width: 200px;
font-weight: normal;
text-align: left;
}
table.summary tr.even {
-/* background: #eeeeee; */
+ background: #eeeeee;
}
table.summary tr.odd {
-/* background: #cccccc; */
+ background: #cccccc;
}
table.summary td {