From 6cca953a81ddd3b1c71be4b4b124c20be26ab7cb Mon Sep 17 00:00:00 2001 From: Scott Carroll Date: Sun, 16 Jun 2024 14:40:40 +0100 Subject: [PATCH] Add bcmstat --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index b301768..0332e19 100644 --- a/README.md +++ b/README.md @@ -74,6 +74,22 @@ sudo systemctl restart 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 `vcgencmd measure_temp`