From 9537f622dea3ba771dc46115358d1831421c0337 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 23 Feb 2018 09:03:00 +0100 Subject: [PATCH] Add script to remove monit configuration --- monit-ceph-remove | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 monit-ceph-remove diff --git a/monit-ceph-remove b/monit-ceph-remove new file mode 100755 index 0000000..f60d2bc --- /dev/null +++ b/monit-ceph-remove @@ -0,0 +1,18 @@ +#!/bin/sh +# Nico Schottelius, 2018-02-22 +# Copyright ungleich glarus ag + +if [ $# -ne 1 ]; then + echo "$0: toremove" + echo "f.i. osd.17 or mon.server4" + exit 1 +fi + +to_monitor=$1 + +set -e + +conf="/etc/monit/conf.d/$to_monitor" + +rm -f "$conf" +monit reload