Commit 0343b450 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Added agent2 target

parent 668c02d0
......@@ -62,6 +62,13 @@ config zabbix 'agent'
endef
export ZABBIX_AGENT_CONFIG
agent2:
tar xf zabbix-5.4.2.tar.gz
cd zabbix-5.4.2 && ./configure --prefix=/usr --sysconfdir=/etc --enable-agent2 --with-openssl
$(MAKE) -C zabbix-5.4.2
$(MAKE) -C zabbix-5.4.2 install
rm -rf zabbix-5.4.2
opi:
sed -e '/^UserParameter=device\.product.*/a UserParameter=system.hw.temp,bc <<< "scale=3; `cat /sys/devices/virtual/thermal/thermal_zone0/temp`/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