20 lines
751 B
Bash
Executable File
20 lines
751 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# apt update && apt install -y git && cd /opt && git -C /opt/icinga2-checks pull || git clone https://git.dp15.us/dpanzer/icinga2-checks.git /opt/icinga2-checks && bash /opt/icinga2-checks/install.sh
|
|
# @hourly /bin/bash /opt/icinga2-checks/install.sh
|
|
|
|
apt update
|
|
apt install -y python3-venv git sysstat bc
|
|
|
|
pip install psutil
|
|
|
|
#cd /opt || exit
|
|
|
|
git -C /opt/icinga2-checks pull || git clone https://git.dp15.us/dpanzer/icinga2-checks.git /opt/icinga2-checks
|
|
|
|
ln -s /opt/icinga2-checks/check_iowait.sh /usr/lib64/nagios/plugins/check_iowait
|
|
ln -s /opt/icinga2-checks/check_bandwidth /usr/lib64/nagios/plugins/check_bandwidth
|
|
|
|
rm /usr/lib64/nagios/plugins/check_curl
|
|
ln -s /opt/icinga2-checks/check_curl /usr/lib64/nagios/plugins/check_curl
|