This is an old revision of the document!
student@debian:~$ ip a student@debian:~$ sudo hostnamectl hostname zabbix или student@debian:~$ sudo hostnamectl hostname clientN student@debian:~$ sudo -i
zabbix# zabbix_get -s ip_clientN -k listinstalledsoft
zabbix# zabbix_server -T zabbix# systemctl restart zabbix-server.service zabbix# tail -f /var/log/zabbix/zabbix_server.log
clientN:~# mv -v /etc/zabbix/zabbix_agentd.conf.d/*.conf . clientN:~# apt purge zabbix-agent; apt autoremove
clientN:~# grep -v '^#\|^$' /etc/zabbix/zabbix_agentd.conf ... Hostname=Zabbix server ... clientN:~# vim /etc/zabbix/zabbix_agentd.conf clientN:~# cp -v *.conf /etc/zabbix/zabbix_agentd.d/ clientN:~# cat /etc/zabbix/zabbix_agentd.d/listinstalledsoft.conf UserParameter=listinstalledsoft,ls /usr/share/applications | awk -F '.desktop' ' { print $1}' - | grep -v "^xfce\|^thunar\|org" clientN:~# zabbix_agentd -T clientN:~# service zabbix-agent restart
clientN:~# apt purge zabbix-agent; apt autoremove clientN:~# rm -r /etc/zabbix/ clientN:~# apt install zabbix-agent2 clientN:~# grep -v '^#\|^$' /etc/zabbix/zabbix_agent2.conf ... Hostname=Zabbix server ... clientN:~# vim /etc/zabbix/zabbix_agent2.conf clientN:~# cp -v *.conf /etc/zabbix/zabbix_agent2.d/ clientN:~# zabbix_agent2 -T clientN:~# service zabbix-agent2 restart