-
Incident report
-
Resolution: Won't fix
-
Trivial
-
None
-
5.2.4
-
None
-
Arch Linux 5.10.13-arch1-2
PHP 8.0.2
MariaDB 10.5.8
Zabbix: 5.2.4
Steps to reproduce:
- Setup Zabbix and Mattermost on the same machine
- Follow the official documentation to setup the mattermost integration
- Try to test the media types (Administration -> Media types -> Mattermost -> Test) and keep this advice in mind
- Go back to the Dashboard or Problems
- Wait for a Problem to became real
Result:
In the problems overview, I get a "Status" of "failed" for the user "Mattermost user".
My log says notthing.
The log was created the following way:
- Change `DebugLevel` in `zabbix_server.conf` to `4`
- Restart service
- `sudo journal -xfn | grep zabbix | grep mattermost
Feb 11 08:53:24 rh-414-pc-43 zabbix_server[142830]: In substitute_key_macros_impl() data:'mysql.dbsize["{$MYSQL.HOST}","{$MYSQL.PORT}","mattermostdb"]' Feb 11 08:53:24 rh-414-pc-43 zabbix_server[142830]: End of substitute_key_macros_impl():SUCCEED data:'mysql.dbsize["localhost","3306","mattermostdb"]' Feb 11 08:53:24 rh-414-pc-43 zabbix_server[142830]: In get_value() key:'mysql.dbsize["{$MYSQL.HOST}","{$MYSQL.PORT}","mattermostdb"]' Feb 11 08:53:24 rh-414-pc-43 zabbix_server[142830]: In get_value_agent() host:'Zabbix server' addr:'127.0.0.1' key:'mysql.dbsize["localhost","3306","mattermostdb"]' conn:'unencrypted' Feb 11 08:53:24 rh-414-pc-43 zabbix_server[142830]: Sending [mysql.dbsize["localhost","3306","mattermostdb"]]
Is there another way of addming more logging information?
My `media types` settings. The tab messages and options wheren't touched.
User settings of tab user.
User settings of tab media
User settings of tab permissions
If I am running a test by using the channel id as the "send_to" value, I get a message inside mattermost.
So basic stuff like token/authentication is working but I don't know how to debug more.
I am on this issue since yesterday and all the howtos are doing the same. Especially since the variables I have to provide are such less, it either is a stupid mistake on my side, a little thing missing in the documentation or something else.
Expected:
A message is sent via the zabbix bot in mattermost when a problem is detected.