A Zabbix template for monitoring a Storjv3 node. Uses zabbix_sender to send stats to the Zabbix server defined in your zabbix agent config.
Tested on Ubuntu Server 18.04, but should work on any system with bash 4+
Prerequisites:
- Linux Server
- Cron
- Zabbix Agent
- Zabbix user added to Docker group
- Zabbix 4+
- Storj Node 19.0.0+ for bandwidth, storage, and satellite monitoring
Steps:
- Add Template to Zabbix
- Add script to Storj node.
- You may want to edit the temp file location to suit your distro. (Defaults to /tmp/zabbix-storagenode-stats)
- Update location for Zabbix Agent config if necessary (Defaults to /etc/zabbix/zabbix_agentd.conf)
- Chmod +x for the script.
- Add to cron task for zabbix user to run the script every minute.
- Note: You might be able to run less frequently, but you may have to update the formulas for the storjv3.*.hourly values. I'm not sure if the data showing up less frequently would distort those values or not.
- Add the following line to your config.yaml: console.address: :14002
- This allows the storage node API to listen on any address, including the host's address.
- Note: This may be dangerous, the full extent of the API functionality is unknown at this time. It is suggested to not enable this option on nodes directly on the Internet, or to setup ACLs limiting access to this port.
- Verify the data is showing up for your node in Zabbix.