fix perfdata for opnsense
This commit is contained in:
parent
c6f9192d16
commit
a654a8e14c
|
@ -98,11 +98,11 @@ def main():
|
|||
ok.append(name)
|
||||
status = '[OK]'
|
||||
|
||||
perf_data.append(f'{name}-rate_in={filesize(data["rate_in"], spaces=False)};{warn_value};{crit_value};0')
|
||||
perf_data.append(f'{name}-rate_out={filesize(data["rate_out"], spaces=False)};{warn_value};{crit_value};0')
|
||||
perf_data.append(f'{name}-cumulative_in={filesize(data["cumulative_in"], spaces=False)};{warn_value};{crit_value};0')
|
||||
perf_data.append(f'{name}-cumulative_out={filesize(data["cumulative_out"], spaces=False)};{warn_value};{crit_value};0')
|
||||
perf_data.append(f'{name}-connections={data["connections"]};{warn_value};{crit_value};0')
|
||||
perf_data.append(f'{name}-rate_in={filesize(data["rate_in"], spaces=False)};{warn_value};{crit_value};0; ')
|
||||
perf_data.append(f'{name}-rate_out={filesize(data["rate_out"], spaces=False)};{warn_value};{crit_value};0;')
|
||||
perf_data.append(f'{name}-cumulative_in={filesize(data["cumulative_in"], spaces=False)};{warn_value};{crit_value};0;')
|
||||
perf_data.append(f'{name}-cumulative_out={filesize(data["cumulative_out"], spaces=False)};{warn_value};{crit_value};0;')
|
||||
perf_data.append(f'{name}-connections={data["connections"]};{warn_value};{crit_value};0;')
|
||||
|
||||
output_table = [
|
||||
('Host', 'Interface', 'Rate In', 'Rate Out', 'Cumulative In', 'Cumulative Out', 'Connections', 'Status'),
|
||||
|
|
|
@ -43,8 +43,6 @@ ln_existing /opt/icinga2-checks/check_iowait.sh /usr/lib64/nagios/plugins/check_
|
|||
ln_existing /opt/icinga2-checks/check_bandwidth.py /usr/lib64/nagios/plugins/check_bandwidth
|
||||
ln_existing /opt/icinga2-checks/check_curl.sh /usr/lib64/nagios/plugins/check_curl
|
||||
|
||||
ln_existing /etc/ssl/certs/ca-certificates.crt /opt/venvs/icinga2_checks/lib/python3.10/site-packages/certifi/cacert.pem
|
||||
|
||||
# ==============================================================================
|
||||
# Install the Linuxfabrik checks
|
||||
|
||||
|
@ -72,4 +70,6 @@ ln_existing /opt/linuxfabrik-monitoring-plugins/check-plugins/disk-smart/disk-sm
|
|||
|
||||
setcap cap_net_raw+ep /usr/lib/nagios/plugins/check_icmp
|
||||
setcap cap_net_raw+ep /usr/lib/nagios/plugins/check_ping
|
||||
setcap 'cap_net_raw+ep' "$(which ping)"
|
||||
setcap 'cap_net_raw+ep' "$(which ping)"
|
||||
|
||||
ln_existing /etc/ssl/certs/ca-certificates.crt /opt/venvs/icinga2_checks/lib/python3.10/site-packages/certifi/cacert.pem
|
||||
|
|
Loading…
Reference in New Issue