Zabbix-in-Telegram icon indicating copy to clipboard operation
Zabbix-in-Telegram copied to clipboard

Not receive messages in Telegram(

Open TonyNoIT opened this issue 5 years ago • 6 comments

Hello Everything works not with Zabbix Screenshot 2020-01-07 at 16 14 11 Inside Zabbix - the same Screenshot 2020-01-07 at 16 14 56 Screenshot 2020-01-07 at 16 12 10

As i understand - Zabbix run script, but in Telegram - nothing In Zabbix log - nothing, here zbx_tg_tmp_dir = "/var/lib/zabbix/" + zbx_tg_prefix # directory for saving caches, uids, cookies, etc. nothing.

TonyNoIT avatar Jan 07 '20 15:01 TonyNoIT

https://github.com/ableev/Zabbix-in-Telegram/wiki/How-to-test-script-in-command-line

ableev avatar Jan 07 '20 15:01 ableev

All this things works Screenshot 2020-01-07 at 16 14 11

TonyNoIT avatar Jan 07 '20 15:01 TonyNoIT

Read the article

ableev avatar Jan 07 '20 15:01 ableev

Sorry, but i read and test many times - text arrives in Telegram in this way.

In case of success you will see no errors and you will get your message.

TonyNoIT avatar Jan 07 '20 15:01 TonyNoIT

Screenshot 2020-01-07 at 16 57 55

TonyNoIT avatar Jan 07 '20 16:01 TonyNoIT

ok - sorry Add to readme this plz

Идем в Администрирование — Способы оповещений, жмем кнопку «Создать способ оповещений». В поле «Имя» вводим название способа оповещения. В поле «Тип» нужно выбрать «Скрипт». В поле «Имя скрипта» нужно указать имя файла-скрипт, без пути; например, zbxtg.py В поле «Параметры скрипта» нужно нажать «Добавить» 3 раза и ввести в появившиеся поля {ALERT.SENDTO}, {ALERT.SUBJECT} и {ALERT.MESSAGE}.

TonyNoIT avatar Jan 07 '20 16:01 TonyNoIT