icinga2-checks/install.sh

14 lines
611 B
Bash
Raw Normal View History

2023-04-21 23:54:18 -06:00
#!/bin/bash
2023-04-21 23:54:18 -06:00
# 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
2023-04-21 23:54:18 -06:00
apt update
apt install -y python3-venv git sysstat
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