From 1c9ef42d766f4b8aa0949ddf6eac25cbe0f722bd Mon Sep 17 00:00:00 2001 From: Trey Dockendorf Date: Mon, 5 Nov 2018 13:11:55 -0500 Subject: [PATCH] Allow path to mmhealth to be configured --- scripts/osc_gpfs.nhc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/osc_gpfs.nhc b/scripts/osc_gpfs.nhc index 3b4098e..02b1869 100644 --- a/scripts/osc_gpfs.nhc +++ b/scripts/osc_gpfs.nhc @@ -7,7 +7,8 @@ GPFS_COMPONENT=() GPFS_ENTITY=() GPFS_STATUS=() -export GPFS_COMPONENT GPFS_ENTITY GPFS_STATUS +MMHEALTH="${MMHEALTH:-/usr/lpp/mmfs/bin/mmhealth}" +export GPFS_COMPONENT GPFS_ENTITY GPFS_STATUS MMHEALTH function nhc_gpfs_health_gather_data() { local LINE_CNT @@ -31,7 +32,7 @@ function nhc_gpfs_health_gather_data() { GPFS_STATUS[$LINE_CNT]="${FIELD[10]}" dbg "Got GPFS health ${GPFS_COMPONENT[$LINE_CNT]} ${GPFS_ENTITY[$LINE_CNT]} ${GPFS_STATUS[$LINE_CNT]}" ((LINE_CNT++)) - done < <(/usr/lpp/mmfs/bin/mmhealth node show -Y) + done < <($MMHEALTH node show -Y) export GPFS_COMPONENT GPFS_ENTITY GPFS_STATUS }