install zabbix agent in the baseline

This commit is contained in:
Peter 2025-07-14 18:32:39 +02:00
parent c7a3cb40e9
commit 1df77aa74d
7 changed files with 67 additions and 0 deletions

View file

@ -0,0 +1,10 @@
Server={{ zabbix_server }}
ServerActive=
TLSConnect=psk
TLSAccept=psk
TLSPSKFile=/etc/zabbix/zabbix.psk
TLSPSKIdentity={{ inventory_hostname }}
UserParameter=smartctl.health[*],sudo /usr/sbin/smartctl -H /dev/$1 | grep 'overall-health' | awk '{print $NF}'

View file

@ -0,0 +1,5 @@
#!/bin/bash
# Zabbix agent firewall
iptables -A INPUT -p tcp -s {{ zabbix_server }} --dport 10050 -j ACCEPT