Add script to remove monit configuration

This commit is contained in:
Nico Schottelius 2018-02-23 09:03:00 +01:00
parent e401d1aa7b
commit 9537f622de
1 changed files with 18 additions and 0 deletions

18
monit-ceph-remove Executable file
View File

@ -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