# README
storcli-collector
A port of node-exporter-textfile-collector-scripts/storcli.py to Go
This is a drop-in replacement for the storcli.py collector.
NOTE: The mpt3sas
driver is NOT yet supported. You can help! If you have a RAID host using this driver, send me your json output and I'll use it to test.
storcli /cALL show all J
Slight Differences
storcli.py had a default storcli
path of /opt/MegaRAID/storcli/storcli64
if you didn't specify with --storcli_path
. If that file is not found, and no absolute path is specified, this will fall back to searching the user's PATH for storcli
. If this is a problem, you can disable this behavior with --storcli_dontfailover
.
An additional option, --outfile
is available in this version. This will write to a text file instead of standard out in the event you are using this as a cron.
You can use the goreleaser packages attached to the repo, or just use go build. It's not complex enough to warrant a Makefile.
go build storcli-collector.go
This is a work in progress. If you receive errors or things are not parsing correctly, please provide the json output in your issue so that it can be used for local testing. You may also use the email link on my profile.