summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Legler <a3li@gentoo.org>2012-04-25 10:59:28 +0200
committerAlex Legler <a3li@gentoo.org>2012-04-25 10:59:28 +0200
commit1438becbaf5a147e363e62c28665b1cb51984b1f (patch)
tree2aa0e93e2f505997007f60f7c84208abd1487883
parentRender an empty document when there are no items available. (diff)
downloadinfra-status-1438becbaf5a147e363e62c28665b1cb51984b1f.tar.gz
infra-status-1438becbaf5a147e363e62c28665b1cb51984b1f.tar.bz2
infra-status-1438becbaf5a147e363e62c28665b1cb51984b1f.zip
display masterportage and masterrsync status
-rw-r--r--content/index.haml4
-rw-r--r--lib/services.rb10
2 files changed, 14 insertions, 0 deletions
diff --git a/content/index.haml b/content/index.haml
index 129f3e4..814068f 100644
--- a/content/index.haml
+++ b/content/index.haml
@@ -51,6 +51,10 @@ title: Index
%td.status
= service_icons 'bugzilla'
%tr
+ %td Master rsync mirror
+ %td.status
+ = service_icons 'rsync'
+ %tr
%td Devmanual
%td.status
= service_icons 'devmanual'
diff --git a/lib/services.rb b/lib/services.rb
index 35b1127..12d300e 100644
--- a/lib/services.rb
+++ b/lib/services.rb
@@ -63,6 +63,16 @@ Services do
default 'motmot', 'http_sources'
end
+ service 'rsync' do
+ if host_flapping? 'albatross' or host_flapping? 'kookaburra'
+ State::WARNING
+ elsif host_up? 'albatross' and host_up? 'kookaburra'
+ State::UP
+ else
+ State::DOWN
+ end
+ end
+
service 'bugzilla' do
if service_flapping? 'yellowbishop', 'http_bugs' or service_flapping? 'yellowleg', 'http_bugs'
State::WARNING