check_unifi: also output satisfaction for stations

tags/zabbix-agent-addons-0.2.51-1
Daniel Berteaud 6 years ago
parent b057750202
commit 5d12647141
  1. 2
      zabbix_scripts/check_unifi

@ -169,7 +169,7 @@ if ($unifi){
# For wireless stations, we gather some more info # For wireless stations, we gather some more info
if ($obj->{is_wired} == JSON::PP::false){ if ($obj->{is_wired} == JSON::PP::false){
my @client_wireless = qw/rx_rate tx_rate essid ap_mac tx_power radio_proto signal noise/; my @client_wireless = qw/rx_rate tx_rate essid ap_mac tx_power radio_proto signal noise satisfaction/;
foreach (@client_wireless){ foreach (@client_wireless){
$json->{$_} = $obj->{$_} || 0; $json->{$_} = $obj->{$_} || 0;
} }

Loading…
Cancel
Save