1
0
mirror of https://github.com/opinkerfi/nagios-plugins.git synced 2024-11-21 09:53:45 +01:00

Use $HPACUCLI

This commit is contained in:
uakfdotb 2015-10-14 19:24:53 -04:00
parent ee05a4f24a
commit 1ccc433779

View File

@ -133,7 +133,7 @@ case "$1" in
exit 0
;;
--all)
controllers=`sudo -u root hpacucli controller all show | sed 's/.*Slot \([0-9]*\).*/\1/'`
controllers=`sudo -u root $HPACUCLI controller all show | sed 's/.*Slot \([0-9]*\).*/\1/'`
for i in $controllers ; do sudo -u root $HPACUCLI controller slot=$i pd all show status;done > $TEMPFILE
check_raid
;;