From a2a41d33250de02d94330fd5025787aadd098702 Mon Sep 17 00:00:00 2001 From: Cyberes Date: Fri, 21 Apr 2023 23:54:19 -0600 Subject: [PATCH] installer --- install.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 99b6566..4616d05 100755 --- a/install.sh +++ b/install.sh @@ -1,18 +1,19 @@ #!/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 +# 3 4 * * * /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 +rm /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 rm /usr/lib64/nagios/plugins/check_curl