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:
parent
772770bfc5
commit
85c1cbc105
|
@ -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…
Reference in New Issue