zabbix-agent2 setup

install

check what version you would get from the debian repos

apt search zabbix-agent2

==> 6.0

now point to the upstream repo (Zabbix Packages)

wget https://repo.zabbix.com/zabbix/7.4/release/debian/pool/main/z/zabbix-release/zabbix-release_latest_7.4+debian12_all.deb
dpkg -i zabbix-release_latest_7.4+debian12_all.deb
apt update

apt install zabbix-agent2
#apt search zabbix-agent2-plugin

systemctl status zabbix-agent2
# running & enabled

ls -lF /etc/logrotate.d/zabbix-agent2

setup

cd /etc/zabbix/
mv -i zabbix_agent2.conf zabbix_agent2.conf.dist
grep -vE '^#|^$' zabbix_agent2.conf.dist > zabbix_agent2.conf.clean
grep -vE '^#|^$' zabbix_agent2.conf.dist > zabbix_agent2.conf

ping ZABBIX-SERVER

vi zabbix_agent2.conf

Server=ZABBIX-SERVER

# only when necessary (agent is passive / listening)
#ServerActive=ZABBIX-SERVER

Hostname=HOSTNAME

(remove includes)

systemctl restart zabbix-agent2
systemctl status zabbix-agent2

acceptance

from the zabbix server

apt install jq
zabbix_get -s ZABBIX-AGENT2 -k web.certificate.get[some.domain.tld] | jq

resources

https://www.zabbix.com/integrations/ssl

https://www.zabbix.com/documentation/current/en/manual/appendix/config/zabbix_agent2

https://www.zabbix.com/documentation/current/en/manual/guides/monitor_certificate


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun