Fix comparison with uninitialized value in check_unifi

tags/zabbix-agent-addons-0.2.50-1
Daniel Berteaud 6 years ago
parent 5337376b54
commit 21e090cd27
  1. 2
      zabbix_scripts/check_unifi

@ -189,7 +189,7 @@ if ($unifi){
}
# For boolean, we need to convert
foreach (qw/enabled is_guest mac_filter_enabled vlan_enabled/){
$json->{$_} = ($obj->{$_} == JSON::PP::true) ? 1 : 0;
$json->{$_} = (defined $obj->{$_} and $obj->{$_} == JSON::PP::true) ? 1 : 0;
}
# Now, we need to count stations for each SSID

Loading…
Cancel
Save