Commit 94e0ae7d authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Added temperature and frequency monitoring for Odroid HC2

parent 8d30eebb
......@@ -2,6 +2,8 @@ opiplus2e: opi
opipcplus: opi
odroidhc2: odroid
amlogics905x: amlogic
agent: zabbix-agent-service zabbix-agent-config
......@@ -64,6 +66,37 @@ opi:
sed -e '/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu.freq.cur,echo "`cat /sys/devices/system/cpu/cpufreq/policy0/scaling_cur_freq`000"' -i /etc/zabbix_agentd.conf
sed -e '/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu.freq.min,echo "`cat /sys/devices/system/cpu/cpufreq/policy0/cpuinfo_min_freq`000"' -i /etc/zabbix_agentd.conf
odroid:
sed -e '/^UserParameter=device\.product.*/a UserParameter=system.hw.temp0,bc <<< "scale=3; `cat /sys/devices/virtual/thermal/thermal_zone0/temp`/1000"' -i /etc/zabbix_agentd.conf
sed -e '/^UserParameter=device\.product.*/a UserParameter=system.hw.temp1,bc <<< "scale=3; `cat /sys/devices/virtual/thermal/thermal_zone1/temp`/1000"' -i /etc/zabbix_agentd.conf
sed -e '/^UserParameter=device\.product.*/a UserParameter=system.hw.temp2,bc <<< "scale=3; `cat /sys/devices/virtual/thermal/thermal_zone2/temp`/1000"' -i /etc/zabbix_agentd.conf
sed -e '/^UserParameter=device\.product.*/a UserParameter=system.hw.temp3,bc <<< "scale=3; `cat /sys/devices/virtual/thermal/thermal_zone3/temp`/1000"' -i /etc/zabbix_agentd.conf
sed -e '/^UserParameter=device\.product.*/a UserParameter=system.hw.temp4,bc <<< "scale=3; `cat /sys/devices/virtual/thermal/thermal_zone4/temp`/1000"' -i /etc/zabbix_agentd.conf
sed -e '/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu0.freq.max,echo "`cat /sys/devices/system/cpu/cpufreq/cpuinfo_max_freq`000"' -i /etc/zabbix_agentd.conf
sed -e '/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu0.freq.cur,echo "`cat /sys/devices/system/cpu/cpufreq/cpuinfo_cur_freq`000"' -i /etc/zabbix_agentd.conf
sed -e '/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu0.freq.min,echo "`cat /sys/devices/system/cpu/cpufreq/cpuinfo_min_freq`000"' -i /etc/zabbix_agentd.conf
sed -e '/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu1.freq.max,echo "`cat /sys/devices/system/cpu/cpufreq/cpuinfo_max_freq`000"' -i /etc/zabbix_agentd.conf
sed -e '/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu1.freq.cur,echo "`cat /sys/devices/system/cpu/cpufreq/cpuinfo_cur_freq`000"' -i /etc/zabbix_agentd.conf
sed -e '/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu1.freq.min,echo "`cat /sys/devices/system/cpu/cpufreq/cpuinfo_min_freq`000"' -i /etc/zabbix_agentd.conf
sed -e '/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu2.freq.max,echo "`cat /sys/devices/system/cpu/cpufreq/cpuinfo_max_freq`000"' -i /etc/zabbix_agentd.conf
sed -e '/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu2.freq.cur,echo "`cat /sys/devices/system/cpu/cpufreq/cpuinfo_cur_freq`000"' -i /etc/zabbix_agentd.conf
sed -e '/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu2.freq.min,echo "`cat /sys/devices/system/cpu/cpufreq/cpuinfo_min_freq`000"' -i /etc/zabbix_agentd.conf
sed -e '/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu3.freq.max,echo "`cat /sys/devices/system/cpu/cpufreq/cpuinfo_max_freq`000"' -i /etc/zabbix_agentd.conf
sed -e '/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu3.freq.cur,echo "`cat /sys/devices/system/cpu/cpufreq/cpuinfo_cur_freq`000"' -i /etc/zabbix_agentd.conf
sed -e '/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu3.freq.min,echo "`cat /sys/devices/system/cpu/cpufreq/cpuinfo_min_freq`000"' -i /etc/zabbix_agentd.conf
sed -e '/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu4.freq.max,echo "`cat /sys/devices/system/cpu/cpufreq/cpuinfo_max_freq`000"' -i /etc/zabbix_agentd.conf
sed -e '/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu4.freq.cur,echo "`cat /sys/devices/system/cpu/cpufreq/cpuinfo_cur_freq`000"' -i /etc/zabbix_agentd.conf
sed -e '/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu4.freq.min,echo "`cat /sys/devices/system/cpu/cpufreq/cpuinfo_min_freq`000"' -i /etc/zabbix_agentd.conf
sed -e '/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu5.freq.max,echo "`cat /sys/devices/system/cpu/cpufreq/cpuinfo_max_freq`000"' -i /etc/zabbix_agentd.conf
sed -e '/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu5.freq.cur,echo "`cat /sys/devices/system/cpu/cpufreq/cpuinfo_cur_freq`000"' -i /etc/zabbix_agentd.conf
sed -e '/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu5.freq.min,echo "`cat /sys/devices/system/cpu/cpufreq/cpuinfo_min_freq`000"' -i /etc/zabbix_agentd.conf
sed -e '/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu6.freq.max,echo "`cat /sys/devices/system/cpu/cpufreq/cpuinfo_max_freq`000"' -i /etc/zabbix_agentd.conf
sed -e '/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu6.freq.cur,echo "`cat /sys/devices/system/cpu/cpufreq/cpuinfo_cur_freq`000"' -i /etc/zabbix_agentd.conf
sed -e '/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu6.freq.min,echo "`cat /sys/devices/system/cpu/cpufreq/cpuinfo_min_freq`000"' -i /etc/zabbix_agentd.conf
sed -e '/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu7.freq.max,echo "`cat /sys/devices/system/cpu/cpufreq/cpuinfo_max_freq`000"' -i /etc/zabbix_agentd.conf
sed -e '/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu7.freq.cur,echo "`cat /sys/devices/system/cpu/cpufreq/cpuinfo_cur_freq`000"' -i /etc/zabbix_agentd.conf
sed -e '/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu7.freq.min,echo "`cat /sys/devices/system/cpu/cpufreq/cpuinfo_min_freq`000"' -i /etc/zabbix_agentd.conf
amlogic:
sed -e '/^UserParameter=device\.product.*/a UserParameter=system.hw.temp,bc <<< "scale=3; `cat /sys/devices/platform/scpi/scpi:sensors/hwmon/hwmon0/temp1_input`/1000"' -i /etc/zabbix_agentd.conf
sed -e '/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu.freq.max,echo "`cat /sys/devices/system/cpu/cpufreq/policy0/cpuinfo_max_freq`000"' -i /etc/zabbix_agentd.conf
......
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