sscargal / pmemchk

MIT License
0 stars 1 forks source link

[Collector] Make daxctl optional #163

Closed sscargal closed 2 years ago

sscargal commented 2 years ago

Make daxctl optional for the collector as it's not installed on all hosts by default and won't be useful for those using fsdax namespaces.

sscargal commented 2 years ago

daxctl is already optional

  # daxctl is optional
  if [ ! -x "${DAXCTL}" ]; then
    echo "ERROR: daxctl command not found!" 
    err_state=false
  else
    echo "Using DAXCTL command: ${DAXCTL}"
    TOKENS=( $(${DAXCTL} version 2>&1 ) )
    DAXCTL_VER=${TOKENS[-1]}
    echo "DAXCTL version: ${DAXCTL_VER}"
  fi