Add bcmstat

This commit is contained in:
2024-06-16 14:40:40 +01:00
parent 809f8b5493
commit 6cca953a81

View File

@@ -74,6 +74,22 @@ sudo systemctl restart zabbix-agent2
sudo systemctl status zabbix-agent2 sudo systemctl status zabbix-agent2
``` ```
Copy current version of `bcmstat.sh` from [https://github.com/MilhouseVH/bcmstat] to `/usr/local/bin/bcmstat.sh`
Make zabbix dir:
```bash
mkdir /var/lib/zabbix
```
Add to root crontab:
```cron
* * * * * sh -c '/usr/local/bin/bcmstat.sh J1mH0Yqprg | tail -2 | head -1 >/var/lib/zabbix/bcmstat-from-host'
```
TODO: Set up Zabbix to retrieve and parse `/var/lib/zabbix/bcmstat-from-host`
## Fault finding ## Fault finding
`vcgencmd measure_temp` `vcgencmd measure_temp`