I'm installing zabbix agent on my machines and i've noticed that sometimes the agent doesn't have the TLS
lines
### Option: TLSKeyFile
# Full pathname of a file containing the agent private key.
#
# Mandatory: no
# Default:
# TLSKeyFile=
### Option: TLSPSKIdentity
# Unique, case sensitive string used to identify the pre-shared key.
#
# Mandatory: no
# Default:
# TLSPSKIdentity=
### Option: TLSPSKFile
# Full pathname of a file containing the pre-shared key.
#
# Mandatory: no
# Default:
# TLSPSKFile=
So when I add those parameters, the agent won't start.
Can someone tell me what am I missing ?
Entries from your log files that would give you some clues as to what is happening.
I would go looking for the zabbix agent log file and see what relevant error messages it has then work from there.
The zabbix agent log file is frequently found in
/var/log/zabbix
and could be namedzabbix_agentd.log
but YMMV depending on distro and or OS.You may also get some useful information out of other system logs or even journalctl.
You need to reinstall the zabbix-agent service.
Beside I have noticed that on some Windows Servers like 2003 32 bit when I install the agent I have a problem with start service cause of using file with tls config.