Add scripts to stop/remove osds
This commit is contained in:
parent
9537f622de
commit
c39f07295e
2 changed files with 31 additions and 0 deletions
18
monit-remove
Executable file
18
monit-remove
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue