I have an interesting yet frustration issue with my Zabbix server (v4.0) I am troubleshooting a notification issue and noticed the following issue.
In my /etc/zabbix/zabbix_server.conf config file, I have the alert scripts directory set to /usr/local/bin.
but even after a restart, the zabbix server keeps reporting that it is using the default directory for my alerts.
(From my Action Log)
I am asking this question because sometimes my alert script works (I have copies if the script in both the default location AND /usr/local/bin) and sometimes it fails with the above error. I am perplexed as to why it sometimes fails and sometimes works.
Might anyone know what I am missing by chance?
Carl
In my /etc/zabbix/zabbix_server.conf config file, I have the alert scripts directory set to /usr/local/bin.
Code:
### Option: AlertScriptsPath
# Full path to location of custom alert scripts.
# Default depends on compilation options.
#
# Mandatory: no
# Default:
# AlertScriptsPath=${datadir}/zabbix/alertscripts
AlertScriptsPath=/usr/local/bin
(From my Action Log)
Cannot exectue command "/usr/lib/zabbix/alertscripts/zbx-notify": [2] No such file or directory
Might anyone know what I am missing by chance?
Carl
Comment