Send an empty data array when Zimbra is not installed

tags/zabbix-agent-addons-0.2.87-1
Daniel Berteaud 5 years ago
parent d64a4954cd
commit 020e7a2818
  1. 2
      zabbix_scripts/disco_zimbra_sudo

@ -32,7 +32,7 @@ my $hostname = hostfqdn();
# If there's no zimbra user or no zmcontrol, just return an empty list # If there's no zimbra user or no zmcontrol, just return an empty list
if (not defined $zimuid or not defined $zimgid or not -e $zmprov){ if (not defined $zimuid or not defined $zimgid or not -e $zmprov){
print to_json({}); print to_json($json);
exit; exit;
} }

Loading…
Cancel
Save