ableev / Zabbix-in-Telegram

Zabbix Notifications with graphs in Telegram
MIT License
771 stars 235 forks source link

Not receive messages in Telegram( #192

Closed TonyNoIT closed 1 year ago

TonyNoIT commented 4 years ago

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.

ableev commented 4 years ago

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

TonyNoIT commented 4 years ago

All this things works

Screenshot 2020-01-07 at 16 14 11
ableev commented 4 years ago

Read the article

TonyNoIT commented 4 years ago

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 commented 4 years ago
Screenshot 2020-01-07 at 16 57 55
TonyNoIT commented 4 years ago

ok - sorry Add to readme this plz

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