ableev / Zabbix-in-Telegram

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

zbxtg does not accept sending options from zabbix 4? #170

Closed PangolinYuri closed 5 years ago

PangolinYuri commented 5 years ago

Yesterday I installed Zabbix4 on a new CentOs7 server. Sending notifications does not work. When trying to test

Clip2net_190602125039

In the logs I see this

$ grep zbxtg.py /var/log/zabbix/zabbix_server.log
 10350:20190602:123118.770 In zbx_popen() command:'/usr/lib/zabbix/alertscripts/zbxtg.py'
 10350:20190602:123118.865 /usr/lib/zabbix/alertscripts/zbxtg.py output:
zbxtg.py [TO] [SUBJECT] [BODY]

Other alert options, such as email, work fine.

 10342:20190602:130124.814 trapper got '{"request":"alert.send","sid":"1560d43ee0cc","data":{"mediatypeid":"1","sendto":"mail@mail","subject":"Test subject","message":"This is the test message from Zabbix"}}'
PangolinYuri commented 5 years ago

My mistake