Fix macro name for zfs zpool discovery

tags/zabbix-agent-addons-0.2.31-1
Daniel Berteaud 7 years ago
parent b6c3464cef
commit dec361914d
  1. 2
      zabbix_scripts/disco_zfs

@ -12,7 +12,7 @@ my $zpool = which('zpool');
if ($zpool){
foreach (qx($zpool list -H -o name)){
chomp;
push @{$json->{data}}, { ZPOOL => $_ };
push @{$json->{data}}, { '{#ZPOOL}' => $_ };
}
}
print to_json($json);

Loading…
Cancel
Save