Prometheus scraper for hpasmcli (HP prolaint)
sudo cp host/hpasmcli_forwarder.sh /usr/sbin/hpasmcli_forwarder
- Copy host script to hostsudo chmod +x /usr/sbin/hpasmcli_forwarder
- Allow executionsudo cp host/hpasmcli_forwarder.service /etc/systemd/system/hpasmcli_forwarder.service
- Setup systed servicesudo chmod 644 /etc/systemd/system/hpasmcli_forwarder.service
sudo systemctl start hpasmcli_forwarder.service
sudo systemctl enable hpasmcli_forwarder.service
Check if systemd service works with sudo service status hpasmcli_forwarder
.
Also check output of command with cat /var/hpasmcli/status
. It should return something.