From 30befed55bd47d5abd8365e7b66fb0d46948f1f3 Mon Sep 17 00:00:00 2001 From: kpcyrd Date: Wed, 17 Sep 2014 19:28:11 +0200 Subject: [PATCH] Use new http feature --- monitor.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/monitor.yml b/monitor.yml index cede33f..47fcc5c 100644 --- a/monitor.yml +++ b/monitor.yml @@ -1,9 +1,14 @@ - host: srv01 service: hamburg.freifunk.net - exec: curl hamburg.freifunk.net 2> /dev/null | grep -q "hamburg.freifunk.net | Initiative für freie Funknetzwerke in Hamburg" + http: + url: http://hamburg.freifunk.net/ + contains: "hamburg.freifunk.net | Initiative für freie Funknetzwerke in Hamburg" - host: srv01 service: formular.hamburg.freifunk.net - exec: curl formular.hamburg.freifunk.net 2> /dev/null | grep -q "Knotenverwaltung" + http: + url: http://formular.hamburg.freifunk.net/ + contains: "Knotenverwaltung" - host: srv01 service: graph.hamburg.freifunk.net - exec: curl http://graph.hamburg.freifunk.net/graph_compiled.js 2> /dev/null > /dev/null + http: + url: http://graph.hamburg.freifunk.net/graph_compiled.js