Commit 4bd5f9e2 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Added sensors for AmLogic Meson

parent 1da3c3ae
......@@ -2,6 +2,8 @@ opiplus2e: opi
opipcplus: opi
amlogics905x: amlogic
agent: zabbix-agent-service zabbix-agent-config
groupadd -g 26 zabbix
useradd -c "Zabbix Monitoring System" -d /var/lib/zabbix -g zabbix -s /bin/false -u 26 zabbix
......@@ -62,6 +64,12 @@ 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
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
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
server: zabbix-server-service zabbix-server-config httpd-conf
tar xf zabbix-4.2.4.tar.gz
cd zabbix-4.2.4 && ./configure --prefix=/usr --sysconfdir=/etc --enable-server --with-openssl --with-mysql --enable-ipv6 --with-net-snmp --with-libcurl --with-libxml2
......
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