From 535af64e36822b5ec7772f9c8f6395b07f3aab17 Mon Sep 17 00:00:00 2001 From: Jordi Sanfeliu Date: Thu, 22 Dec 2016 15:59:19 +0100 Subject: [PATCH] small updates --- lib/ipmi.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ipmi.pm b/lib/ipmi.pm index 0a3ae5d..5be64ca 100644 --- a/lib/ipmi.pm +++ b/lib/ipmi.pm @@ -77,7 +77,7 @@ sub ipmi_init { push(@max, "RRA:MAX:0.5:1440:" . (365 * $n)); push(@last, "RRA:LAST:0.5:1440:" . (365 * $n)); } - for($n = 0; $n < scalar(my @fl = split(',', $ipmi->{list})); $n++) { + for($n = 0; $n < scalar(my @sl = split(',', $ipmi->{list})); $n++) { push(@tmp, "DS:ipmi" . $n . "_s1:GAUGE:120:0:U"); push(@tmp, "DS:ipmi" . $n . "_s2:GAUGE:120:0:U"); push(@tmp, "DS:ipmi" . $n . "_s3:GAUGE:120:0:U"); @@ -140,7 +140,7 @@ sub ipmi_update { my $str; my $rrdata = "N"; - if(!open(IN, "ipmitool sdr $args |")) { + if(!open(IN, "ipmitool $args sdr |")) { logger("$myself: unable to execute 'ipmitool'. $!"); return; }