perfdata
This commit is contained in:
parent
31330c77b3
commit
452721e89a
|
@ -53,7 +53,7 @@ for i in range(len(data)):
|
||||||
else:
|
else:
|
||||||
ok.append(interface)
|
ok.append(interface)
|
||||||
data[i][2] = 'ok'
|
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):
|
if len(ok):
|
||||||
print(f'OK: {", ".join(ok)}')
|
print(f'OK: {", ".join(ok)}')
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
#!/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
|
||||||
|
# @hourly /bin/bash /opt/icinga2-checks/install.sh
|
||||||
|
|
||||||
apt update
|
apt update
|
||||||
apt install -y python3-venv git sysstat
|
apt install -y python3-venv git sysstat
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue