monitower

nimble and trivial monitoring suite
Log | Files | Refs

commit 68c27ce37648deaa1dbbf4f2069ccfa7d92d8c28
parent c3a7ae9a60d15154a99a6b70ff05d11893bfe6bb
Author: Josuah Demangeon <me@josuah.net>
Date:   Thu, 24 Sep 2020 08:33:17 +0200

add HTTP check

Diffstat:
Abin/check-http | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/bin/check-http b/bin/check-http @@ -0,0 +1,6 @@ +#!/bin/sh -eu +for x; do export "var_$x"; done + +: ${var_method:=GET} + +exec curl -Lvs -X "${var_method}" "${var_url}" >/dev/null