Commit 248b8e72 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Added support for temperature sensors and frequency of i7-8809g

parent ecedf204
...@@ -153,6 +153,35 @@ amlogic: ...@@ -153,6 +153,35 @@ amlogic:
echo 'UserParameter=system.cpu.freq.cur,echo "`cat /sys/devices/system/cpu/cpufreq/policy0/scaling_cur_freq`000"' >> /etc/zabbix_agentd.userparams.conf echo 'UserParameter=system.cpu.freq.cur,echo "`cat /sys/devices/system/cpu/cpufreq/policy0/scaling_cur_freq`000"' >> /etc/zabbix_agentd.userparams.conf
echo 'UserParameter=system.cpu.freq.max,echo "`cat /sys/devices/system/cpu/cpufreq/policy0/cpuinfo_max_freq`000"' >> /etc/zabbix_agentd.userparams.conf echo 'UserParameter=system.cpu.freq.max,echo "`cat /sys/devices/system/cpu/cpufreq/policy0/cpuinfo_max_freq`000"' >> /etc/zabbix_agentd.userparams.conf
i7-8809g:
echo 'UserParameter=system.hw.temp0,bc <<< "scale=3; `cat /sys/devices/virtual/thermal/thermal_zone0/temp`/1000"' >> /etc/zabbix_agentd.userparams.conf
echo 'UserParameter=system.hw.temp1,bc <<< "scale=3; `cat /sys/devices/virtual/thermal/thermal_zone1/temp`/1000"' >> /etc/zabbix_agentd.userparams.conf
echo 'UserParameter=system.hw.temp2,bc <<< "scale=3; `cat /sys/devices/virtual/thermal/thermal_zone2/temp`/1000"' >> /etc/zabbix_agentd.userparams.conf
echo 'UserParameter=system.cpu0.freq.max,echo "`cat /sys/devices/system/cpu/cpufreq/policy0/cpuinfo_max_freq`000"' >> /etc/zabbix_agentd.userparams.conf
echo 'UserParameter=system.cpu0.freq.cur,echo "`cat /sys/devices/system/cpu/cpufreq/policy0/scaling_cur_freq`000"' >> /etc/zabbix_agentd.userparams.conf
echo 'UserParameter=system.cpu0.freq.min,echo "`cat /sys/devices/system/cpu/cpufreq/policy0/cpuinfo_min_freq`000"' >> /etc/zabbix_agentd.userparams.conf
echo 'UserParameter=system.cpu1.freq.max,echo "`cat /sys/devices/system/cpu/cpufreq/policy1/cpuinfo_max_freq`000"' >> /etc/zabbix_agentd.userparams.conf
echo 'UserParameter=system.cpu1.freq.cur,echo "`cat /sys/devices/system/cpu/cpufreq/policy1/scaling_cur_freq`000"' >> /etc/zabbix_agentd.userparams.conf
echo 'UserParameter=system.cpu1.freq.min,echo "`cat /sys/devices/system/cpu/cpufreq/policy1/cpuinfo_min_freq`000"' >> /etc/zabbix_agentd.userparams.conf
echo 'UserParameter=system.cpu2.freq.max,echo "`cat /sys/devices/system/cpu/cpufreq/policy2/cpuinfo_max_freq`000"' >> /etc/zabbix_agentd.userparams.conf
echo 'UserParameter=system.cpu2.freq.cur,echo "`cat /sys/devices/system/cpu/cpufreq/policy2/scaling_cur_freq`000"' >> /etc/zabbix_agentd.userparams.conf
echo 'UserParameter=system.cpu2.freq.min,echo "`cat /sys/devices/system/cpu/cpufreq/policy2/cpuinfo_min_freq`000"' >> /etc/zabbix_agentd.userparams.conf
echo 'UserParameter=system.cpu3.freq.max,echo "`cat /sys/devices/system/cpu/cpufreq/policy3/cpuinfo_max_freq`000"' >> /etc/zabbix_agentd.userparams.conf
echo 'UserParameter=system.cpu3.freq.cur,echo "`cat /sys/devices/system/cpu/cpufreq/policy3/scaling_cur_freq`000"' >> /etc/zabbix_agentd.userparams.conf
echo 'UserParameter=system.cpu3.freq.min,echo "`cat /sys/devices/system/cpu/cpufreq/policy3/cpuinfo_min_freq`000"' >> /etc/zabbix_agentd.userparams.conf
echo 'UserParameter=system.cpu4.freq.max,echo "`cat /sys/devices/system/cpu/cpufreq/policy4/cpuinfo_max_freq`000"' >> /etc/zabbix_agentd.userparams.conf
echo 'UserParameter=system.cpu4.freq.cur,echo "`cat /sys/devices/system/cpu/cpufreq/policy4/scaling_cur_freq`000"' >> /etc/zabbix_agentd.userparams.conf
echo 'UserParameter=system.cpu4.freq.min,echo "`cat /sys/devices/system/cpu/cpufreq/policy4/cpuinfo_min_freq`000"' >> /etc/zabbix_agentd.userparams.conf
echo 'UserParameter=system.cpu5.freq.max,echo "`cat /sys/devices/system/cpu/cpufreq/policy5/cpuinfo_max_freq`000"' >> /etc/zabbix_agentd.userparams.conf
echo 'UserParameter=system.cpu5.freq.cur,echo "`cat /sys/devices/system/cpu/cpufreq/policy5/scaling_cur_freq`000"' >> /etc/zabbix_agentd.userparams.conf
echo 'UserParameter=system.cpu5.freq.min,echo "`cat /sys/devices/system/cpu/cpufreq/policy5/cpuinfo_min_freq`000"' >> /etc/zabbix_agentd.userparams.conf
echo 'UserParameter=system.cpu6.freq.max,echo "`cat /sys/devices/system/cpu/cpufreq/policy6/cpuinfo_max_freq`000"' >> /etc/zabbix_agentd.userparams.conf
echo 'UserParameter=system.cpu6.freq.cur,echo "`cat /sys/devices/system/cpu/cpufreq/policy6/scaling_cur_freq`000"' >> /etc/zabbix_agentd.userparams.conf
echo 'UserParameter=system.cpu6.freq.min,echo "`cat /sys/devices/system/cpu/cpufreq/policy6/cpuinfo_min_freq`000"' >> /etc/zabbix_agentd.userparams.conf
echo 'UserParameter=system.cpu7.freq.max,echo "`cat /sys/devices/system/cpu/cpufreq/policy7/cpuinfo_max_freq`000"' >> /etc/zabbix_agentd.userparams.conf
echo 'UserParameter=system.cpu7.freq.cur,echo "`cat /sys/devices/system/cpu/cpufreq/policy7/scaling_cur_freq`000"' >> /etc/zabbix_agentd.userparams.conf
echo 'UserParameter=system.cpu7.freq.min,echo "`cat /sys/devices/system/cpu/cpufreq/policy7/cpuinfo_min_freq`000"' >> /etc/zabbix_agentd.userparams.conf
server: zabbix-server-service zabbix-server-config httpd-conf server: zabbix-server-service zabbix-server-config httpd-conf
tar xf zabbix-5.4.2.tar.gz tar xf zabbix-5.4.2.tar.gz
cd zabbix-5.4.2 && ./configure --prefix=/usr --sysconfdir=/etc --enable-server --with-openssl --with-mysql --enable-ipv6 --with-net-snmp --with-libcurl --with-libxml2 --with-openipmi cd zabbix-5.4.2 && ./configure --prefix=/usr --sysconfdir=/etc --enable-server --with-openssl --with-mysql --enable-ipv6 --with-net-snmp --with-libcurl --with-libxml2 --with-openipmi
......
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