scripts/mfi_status
author Tomas Zeman <tomas@functionals.cz>
Tue, 21 Feb 2023 13:03:45 +0100
changeset 40 8c421321123d
parent 32 e119fde089b8
permissions -rwxr-xr-x
run-cron-zabbix

#!/bin/sh

mfiutil show volumes | grep mfid | tr -d '()'|awk '{print "- mfi.status." $1 " " $5}'
mfiutil show drives | tail -n +2 | tr -d '()' | sed -e 's/HOT /HOT_/' -e 's/UNCONFIGURED /UNCONFIGURED_/' | awk '{print $3}'|sort | uniq -c | awk '{print "- mfi.drives." $2 " " $1}'