]> Sergey Matveev's repositories - sgmon.git/blob - helper/http
a917d218538e59f498eea59703fd3a66c4b96789
[sgmon.git] / helper / http
1 #!/bin/sh -e
2
3 bad=0
4 curl --max-time 60 --verbose "$1" >state/curl-out 2>&1 || bad=1
5 grep -q "$togrep" state/curl-out || bad=1
6 if [ "$bad" -eq 1 ] ; then
7     cat state/curl-out
8     exit 1
9 fi