Add DEVNAME macro for vfs.dev.discovery to ease transition to 4.4

4.4 includes vfs.dev.discovery but with different macro names (DEVNAME instead of BLOCKDEV)
tags/zabbix-agent-addons-0.2.91-1
Daniel Berteaud 5 years ago
parent 772770bfc5
commit 85c1cbc105
  1. 2
      zabbix_scripts/disco_block_devices

@ -15,7 +15,7 @@ foreach my $block (Zabbix::Agent::Addons::Disks::list_block_dev()){
close SIZE;
chomp($size);
}
push @{$json->{data}}, { "{#BLOCKDEVICE}" => $block, "{#BLOCKSIZE}" => $size };
push @{$json->{data}}, { "{#BLOCKDEVICE}" => $block, "{#BLOCKSIZE}" => $size, "{#DEVNAME}" => $block };
}
print to_json($json);
exit(0);

Loading…
Cancel
Save