Commit efbb2632 authored by Karl Talumäe's avatar Karl Talumäe

Remove sd card related items

parent 1a910a43
[zbx_template_rpi.xml](https://gitlab.com/Qrl/zabbix/blob/master/zbx_template_rpi.xml) - Raspberry Pi CPU and SD card items
Items:
- CPU clock
- CPU voltage
- CPU temperature (Celsius)
CPU items interval: 1m
Triggers:
- CPU temperature is high(<70C)
Installation:
1. Copy [userparameter_rpi.conf](https://gitlab.com/Qrl/zabbix/blob/master/scripts/userparameter_rpi.conf) to `/etc/zabbix/zabbix_agentd.d/` on rpi
3. Add zabbix user to video group on rpi `$ sudo usermod -a -G video zabbix`
4. Restart the zabbix agent on rpi `$ sudo service zabbix-agent restart`
......
UserParameter=rpi.cpuClock,/opt/vc/bin/vcgencmd measure_clock arm|cut -d"=" -f2
UserParameter=rpi.cpuVoltage,/opt/vc/bin/vcgencmd measure_volts | tr -d "volt=" | tr -d "V"
UserParameter=rpi.cpuTemperature,cat /sys/class/thermal/thermal_zone*/temp
UserParameter=rpi.sdcardTotal,df -B1 | grep root | tr -s " " " " | cut -d " " -f 2
UserParameter=rpi.sdcardFree,df -B1 | grep root | tr -s " " " " | cut -d " " -f 4
UserParameter=rpi.sdcardUsed,df -B1 | grep root | tr -s " " " " | cut -d " " -f 3
UserParameter=rpi.sdcardUsedPercentage,df -B1 | grep root | tr -s " " " " | cut -d " " -f 5 | cut -d "%" -f 1
\ No newline at end of file
UserParameter=rpi.cpuTemperature,cat /sys/class/thermal/thermal_zone*/temp
\ No newline at end of file
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment