[ZBX-18645] Media type test failed - Telegram integration Created: 2020 Nov 13 Updated: 2020 Nov 17 Resolved: 2020 Nov 17 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Frontend (F) |
Affects Version/s: | 5.2.1 |
Fix Version/s: | None |
Type: | Problem report | Priority: | Trivial | |||
Reporter: | Lubomir Spacek | Assignee: | Zabbix Support Team | |||
Resolution: | Won't fix | Votes: | 0 | |||
Labels: | frontend | |||||
Remaining Estimate: | Not Specified | |||||
Time Spent: | Not Specified | |||||
Original Estimate: | Not Specified | |||||
Environment: |
Debian GNU/Linux 10. Zabbix has been instaled from deb packages. Desired=Unknown/Install/Remove/Purge/Hold
|
Attachments: |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Description |
Steps to reproduce:
Result:
Expected: |
Comments |
Comment by Lubomir Spacek [ 2020 Nov 16 ] |
What does it take to run the script correctly? Is it necessary to install something? Any template? Next media types?
``` script: | sendMessage: function() { , if (Telegram.parse_mode !== null) { params['parse_mode'] = Telegram.parse_mode; }if (Telegram.proxy) { request.setProxy(Telegram.proxy); } request.addHeader('Content-Type: application/json'); // Remove replace() function if you want to see the exposed token in the log file. try { response = JSON.parse(response); }catch (error) { response = null; } if (request.getStatus() !== 200 || typeof response.ok !== 'boolean' || response.ok !== true) { else { throw 'Unknown error. Check debug log for more information.' } } try { if (typeof params.Token === 'undefined') { throw 'Incorrect value is given for parameter "Token": parameter is missing'; }Telegram.token = params.Token; if (params.HTTPProxy) { Telegram.proxy = params.HTTPProxy; }
if (['Markdown', 'HTML', 'MarkdownV2'].indexOf(params.ParseMode) !== -1) { Telegram.parse_mode = params.ParseMode; } Telegram.to = params.To; return 'OK'; ``` |
Comment by Aleksandrs Pahomovs [ 2020 Nov 16 ] |
Good day, Please try to use Administration -> Media types -> Telegram Press button Test and use settings like mine: You can use mine ids and tokens for test purposes. To: -249182871 Token: 1440084741:AAH2MHIzD7Wr-6-KeX-sKA9DpOs6LfoDIC4 It's working fine on:
|
Comment by Lubomir Spacek [ 2020 Nov 17 ] |
Same result. |
Comment by Lubomir Spacek [ 2020 Nov 17 ] |
May be, I will be must reinstall server from start point. I use zabbix from any version 2 (I think) and I do update this only from deb packages over couple years. Maybe it is time to do it. I monioring over 300 hosts and 23000 items. So, if there is no any chance |
Comment by Aleksandrs Pahomovs [ 2020 Nov 17 ] |
Please be advised that this section of the tracker is for bug reports only. The case you have submitted can not be qualified as one, so please reach out to [email protected] for commercial support or consultancy services. Alternatively, you can also use our IRC channel or community forum (https://www.zabbix.com/forum) for assistance. With that said, we are closing this ticket. Thank you for understanding. |