First of all, I am very much new to linux and zabbix, so I apologize in advance.
We have tried a slack integration and I cannot seem to get it to work
If I run this script manually, it works like a charm. I just cannot get Zabbix to call it.
We have followed this page https://github.com/ericoc/zabbix-slack-alertscript
I turned the debug level to 5 in /etc/zabbix/zabbix_server.conf and restarted the zabbix server service to make it work
I then did a tail | grep on /var/log/zabbix/zabbix_server.log and nothing is showing up for the script name. Not sure if that is the right log to look at.
The name of the script is slack.sh
The perms are currently 777 (were 755 initially) on the file
the directory the script is in is /usr/lib/zabbix/alertscripts (also have it in /usr/local/share/zabbix/alertscripts in case)
Zabbix conf file points the alertscript directory to /usr/lib/zabbix/alertscripts
When my colleague initially created the zabbix server, zabbix was a nologin system account, it is now bin/bash as I read that the account that runs the zabbix-server.service needs to be able to run the script, but still no dice.
So my questions are
1) am I looking at the right log?
2) is my alert set up properly. Below are screen shots of my settings



Odds are there is something fairly obvious here, again sorry for the newbie questions
We have tried a slack integration and I cannot seem to get it to work
If I run this script manually, it works like a charm. I just cannot get Zabbix to call it.
We have followed this page https://github.com/ericoc/zabbix-slack-alertscript
I turned the debug level to 5 in /etc/zabbix/zabbix_server.conf and restarted the zabbix server service to make it work
I then did a tail | grep on /var/log/zabbix/zabbix_server.log and nothing is showing up for the script name. Not sure if that is the right log to look at.
The name of the script is slack.sh
The perms are currently 777 (were 755 initially) on the file
the directory the script is in is /usr/lib/zabbix/alertscripts (also have it in /usr/local/share/zabbix/alertscripts in case)
Zabbix conf file points the alertscript directory to /usr/lib/zabbix/alertscripts
When my colleague initially created the zabbix server, zabbix was a nologin system account, it is now bin/bash as I read that the account that runs the zabbix-server.service needs to be able to run the script, but still no dice.
So my questions are
1) am I looking at the right log?
2) is my alert set up properly. Below are screen shots of my settings



Odds are there is something fairly obvious here, again sorry for the newbie questions
Comment