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)
This commit is contained in:
Daniel Berteaud 2019-11-26 18:13:29 +01:00
parent 772770bfc5
commit 85c1cbc105
1 changed files with 1 additions and 1 deletions

View File

@ -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);