installer

This commit is contained in:
Cyberes 2023-04-21 23:54:19 -06:00
parent 639f037aa2
commit a2a41d3325
1 changed files with 4 additions and 3 deletions

View File

@ -1,18 +1,19 @@
#!/bin/bash #!/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 # 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 # 3 4 * * * /bin/bash /opt/icinga2-checks/install.sh
apt update apt update
apt install -y python3-venv git sysstat bc apt install -y python3-venv git sysstat bc
pip install psutil 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 git -C /opt/icinga2-checks pull || git clone https://git.dp15.us/dpanzer/icinga2-checks.git /opt/icinga2-checks
rm /usr/lib64/nagios/plugins/check_iowait
ln -s /opt/icinga2-checks/check_iowait.sh /usr/lib64/nagios/plugins/check_iowait ln -s /opt/icinga2-checks/check_iowait.sh /usr/lib64/nagios/plugins/check_iowait
rm /usr/lib64/nagios/plugins/check_bandwidth
ln -s /opt/icinga2-checks/check_bandwidth /usr/lib64/nagios/plugins/check_bandwidth ln -s /opt/icinga2-checks/check_bandwidth /usr/lib64/nagios/plugins/check_bandwidth
rm /usr/lib64/nagios/plugins/check_curl rm /usr/lib64/nagios/plugins/check_curl