Ad Widget

Collapse

Zabbix and Telegram - Test works but Action does not

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • lpossamai
    Senior Member
    • Jun 2018
    • 119

    #1

    Zabbix and Telegram - Test works but Action does not

    Hi all. I'm trying to get Zabbix and Telegram to work, using this article here.

    The problem I'm having is that, when I test it using the "Test" button, it works. But when using it via Actions, I get: Sending failed: Bad Request: chat not found.

    This is the Zabbix Server log:

    Code:
    38208:20220105:235544.577 [Telegram Webhook] HTTP code: 400
    38208:20220105:235544.578 [Telegram Webhook] notification failed: Bad Request: chat not found
    38206:20220105:235554.605 [Telegram Webhook] URL: https://api.telegram.org/bot<TOKEN>/sendMessage
    38206:20220105:235554.605 [Telegram Webhook] params: {"chat_id":"{ALERT.TO}","text":"Problem: Zabbix agent is not available (for 3m)\nProblem started at 10:55:42 on 2022.01.06\r\nProblem name: Zabbix agent is not available (for 3m)\r\nHost: pgsql-master.example.com\r\nSeverity: Average\r\nOperational data: not available (0)\r\nOriginal problem ID: 70\r\n","disable_web_page_preview":true,"disable_n otification":false,"parse_mode":"Markdown"}
    I've attached a screenshot of the user Media configuration.

    What am I missing here?

    Thanks!
    Attached Files
  • Answer selected by lpossamai at 06-01-2022, 04:41.
    lpossamai
    Senior Member
    • Jun 2018
    • 119

    Well. I re-imported the media type from here, and it worked! My mistake! Thanks!

    Comment

    • lpossamai
      Senior Member
      • Jun 2018
      • 119

      #2
      Well. I re-imported the media type from here, and it worked! My mistake! Thanks!

      Comment

      • wifi75
        Member
        • Apr 2018
        • 45

        #3
        Originally posted by lpossamai
        Well. I re-imported the media type from here, and it worked! My mistake! Thanks!
        hello how I can import it?

        Comment

        • lpossamai
          Senior Member
          • Jun 2018
          • 119

          #4
          Originally posted by wifi75

          hello how I can import it?
          There is an “IMPORT” button on the top right in the Media Types page (Administration > Media Types)

          Comment

          • wifi75
            Member
            • Apr 2018
            • 45

            #5
            Originally posted by lpossamai

            There is an “IMPORT” button on the top right in the Media Types page (Administration > Media Types)
            Hello, my server version Zabbix 5.0.19, can you help me to find the correct file to update?

            Comment

            Working...