Skip to content

Commit

Permalink
Allow path to mmhealth to be configured
Browse files Browse the repository at this point in the history
  • Loading branch information
treydock committed Nov 5, 2018
1 parent f23e983 commit 1c9ef42
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/osc_gpfs.nhc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
}
Expand Down

0 comments on commit 1c9ef42

Please sign in to comment.