do not prepend /dev to block device names

tags/zabbix-agent-addons-0.2.20-1
Daniel Berteaud 12 years ago
parent beadda2634
commit f3ca95b83f
  1. 3
      zabbix_scripts/disco_block_devices

@ -23,8 +23,7 @@ foreach my $block (@blocks){
chomp($size); chomp($size);
next if ($size eq '0'); next if ($size eq '0');
} }
my $dev = '/dev/' . $block; push @{$json->{data}}, { "{#BLOCKDEVICE}" => $block, "{#BLOCKSIZE}" => $size };
push @{$json->{data}}, { "{#BLOCKDEVICE}" => $dev, "{#BLOCKSIZE}" => $size };
} }
print to_json($json); print to_json($json);
exit(0); exit(0);

Loading…
Cancel
Save