-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathcopy-to-cmk.sh
34 lines (25 loc) · 1.84 KB
/
copy-to-cmk.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
cp web/plugins/wato/fail2ban_parameters.py ~/local/share/check_mk/web/plugins/wato/fail2ban_parameters.py
chown $USER ~/local/share/check_mk/web/plugins/wato/fail2ban_parameters.py
chmod 755 ~/local/share/check_mk/web/plugins/wato/fail2ban_parameters.py
cp web/plugins/metrics/fail2ban_metric.py ~/local/share/check_mk/web/plugins/metrics/fail2ban_metric.py
chown $USER ~/local/share/check_mk/web/plugins/metrics/fail2ban_metric.py
chmod 755 ~/local/share/check_mk/web/plugins/metrics/fail2ban_metric.py
mkdir -p ~/local/lib/check_mk/base/cee/plugins/bakery/
cp lib/check_mk/base/cee/plugins/bakery/fail2ban.py ~/local/lib/check_mk/base/cee/plugins/bakery/fail2ban.py
chown $USER ~/local/lib/check_mk/base/cee/plugins/bakery/fail2ban.py
chmod 755 ~/local/lib/check_mk/base/cee/plugins/bakery/fail2ban.py
cp share/check_mk/checkman/fail2ban ~/local/share/check_mk/checkman/fail2ban
chown $USER ~/local/share/check_mk/checkman/fail2ban
chmod 755 ~/local/share/check_mk/checkman/fail2ban
cp lib/check_mk/base/plugins/agent_based/fail2ban_checks.py ~/local/lib/check_mk/base/plugins/agent_based/fail2ban_checks.py
chown $USER ~/local/lib/check_mk/base/plugins/agent_based/fail2ban_checks.py
chmod 755 ~/local/lib/check_mk/base/plugins/agent_based/fail2ban_checks.py
cp agents/plugins/fail2ban ~/local/share/check_mk/agents/plugins/fail2ban
chown $USER ~/local/share/check_mk/agents/plugins/fail2ban
chmod 755 ~/local/share/check_mk/agents/plugins/fail2ban
cp web/plugins/wato/fail2ban_bakery.py ~/local/share/check_mk/web/plugins/wato/fail2ban_bakery.py
chown $USER ~/local/share/check_mk/web/plugins/wato/fail2ban_bakery.py
chmod 755 ~/local/share/check_mk/web/plugins/wato/fail2ban_bakery.py
rm -f ~/local/lib/python3/cmk/base/plugins/agent_based/__pycache__/fail2ban_checks.*
rm -f ~/local/lib/python3/cmk/base/cee/plugins/bakery/__pycache__/fail2ban.*