From 5bebfeea9e60ab1b92f485330bd460c41f336a4c Mon Sep 17 00:00:00 2001 From: rantal Date: Thu, 25 Jul 2019 14:46:08 +0300 Subject: [PATCH] Update megaraid-controller-information --- plugins/disk/megaraid-controller-information | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/disk/megaraid-controller-information b/plugins/disk/megaraid-controller-information index cebf96da..1b54aebd 100755 --- a/plugins/disk/megaraid-controller-information +++ b/plugins/disk/megaraid-controller-information @@ -71,7 +71,7 @@ chomp $Parameters; my ($Adapter,$Type)=split(/-/,$Parameters); # Locate MegaCli64 application and remove whitespace -my $Command=`which MegaCli64`; if ( ! $Command ) { $Command=`which megacli`; } +my $Command=`which MegaCli64 megacli | head -n 1`; chomp $Command; # Use this to define future parameters to monitor