This commit is contained in:
Cyberes 2023-04-21 23:54:18 -06:00
parent 31330c77b3
commit 452721e89a
2 changed files with 5 additions and 1 deletions

View File

@ -53,7 +53,7 @@ for i in range(len(data)):
else:
ok.append(interface)
data[i][2] = 'ok'
perf_data.append(f'{interface}={round(bandwidth_utilization, 2)}Mbps;{warn_value};{crit_value}; ')
perf_data.append(f'{interface}={round(bandwidth_utilization, 2)}MB;{warn_value};{crit_value}; ')
if len(ok):
print(f'OK: {", ".join(ok)}')

View File

@ -1,4 +1,8 @@
#!/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