From f3ca95b83f1c28bd7b10bf53449ea5432c5426b4 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Wed, 17 Apr 2013 17:07:25 +0200 Subject: [PATCH] do not prepend /dev to block device names --- zabbix_scripts/disco_block_devices | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/zabbix_scripts/disco_block_devices b/zabbix_scripts/disco_block_devices index ca5b902..f56a597 100644 --- a/zabbix_scripts/disco_block_devices +++ b/zabbix_scripts/disco_block_devices @@ -23,8 +23,7 @@ foreach my $block (@blocks){ chomp($size); next if ($size eq '0'); } - my $dev = '/dev/' . $block; - push @{$json->{data}}, { "{#BLOCKDEVICE}" => $dev, "{#BLOCKSIZE}" => $size }; + push @{$json->{data}}, { "{#BLOCKDEVICE}" => $block, "{#BLOCKSIZE}" => $size }; } print to_json($json); exit(0);