[ZBX-16112] Zabbix-in-Telegram alertscript connection timeout of 3 seconds exceeded Created: 2019 May 10  Updated: 2020 Apr 28  Resolved: 2020 Apr 08

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 4.2.1
Fix Version/s: 4.4.8rc1, 5.0.0beta1, 5.0 (plan)

Type: Problem report Priority: Trivial
Reporter: znssky Assignee: Ivo Kurzemnieks
Resolution: Fixed Votes: 2
Labels: timeout
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

CentOS 7


Attachments: JPEG File bug.jpg     JPEG File bug2.jpg     JPEG File bug3.jpg    
Issue Links:
Duplicate
is duplicated by ZBX-16055 Media type test fails if script takes... Closed
is duplicated by ZBX-16175 Mail error Closed
is duplicated by ZBX-16716 Wrong timeout used when executing tes... Closed
is duplicated by ZBX-16780 Zabbix pjsua alertscript connection t... Closed
Team: Team B
Sprint: Sprint 61 (Feb 2020), Sprint 62 (Mar 2020), Sprint 63 (Apr 2020)
Story Points: 0.125

 Description   

Zabbix-in-Telegram

send message to telegram timeout

 

https://github.com/ableev/Zabbix-in-Telegram

 

Test media type

alertscript connection timeout of 3 seconds exceeded when connecting to Zabbix server "localhost"

 

zabbix_server.conf

Timeout=30

 

zabbix_server.log

121115:20190511:010956.260 End of zbx_ipc_socket_read():SUCCEED
121115:20190511:010956.260 In zbx_popen() command:'/etc/zabbix/scripts/zbxtg_group.py 'test' 'Test subject' 'This is the test message from Zabbix''
121115:20190511:010956.261 End of zbx_popen():7
121421:20190511:010956.261 zbx_popen(): executing script
121115:20190511:011036.261 In zbx_waitpid()
121115:20190511:011036.264 zbx_waitpid() killed by signal 15
121115:20190511:011036.264 End of zbx_waitpid():121421
121115:20190511:011036.264 In zbx_ipc_socket_write()
121115:20190511:011036.264 End of zbx_ipc_socket_write():SUCCEED
121115:20190511:011036.264 zbx_setproctitle() title:'alerter #1 [sent 0, failed 0 alerts, idle 119.129781 sec during 159.133226 sec]'
121115:20190511:011036.264 In zbx_ipc_socket_read()

 

but

use command to send a message from command line is successful

[root@localhost scripts]# ./zbxtg_group.py 'test' 'Test subject' 'This is the test message from Zabbix'

 

 



 Comments   
Comment by Aigars Kadikis [ 2019 May 13 ]

Hello. Is SELinux module persistent on the system? Please try to temporary disable it:

setenforce 0

How long it takes to deliver the message from the command line?

time ./zbxtg_group.py 'test' 'Test subject' 'This is the test message from Zabbix'

 

Comment by Vladislavs Sokurenko [ 2019 Aug 02 ]

I think that this message is misleading:

alertscript connection timeout of 3 seconds exceeded when connecting to Zabbix server "localhost"

Because is that it already connected to Zabbix server and sent alert script and now waiting for response.

Message should be something like

Timeout while waiting for response

Also I think timeout should be set to 1 minute and 30 seconds and let server to timeout by itself which is controlled by "Timeout" configuration parameter or 60 seconds whichever comes first.

Comment by Ivo Kurzemnieks [ 2020 Feb 17 ]

RESOLVED in feature/ZBX-16112-4.4

Comment by Ivo Kurzemnieks [ 2020 Apr 07 ]

Fixed in:

Comment by dimir [ 2020 Apr 28 ]

So, this won't be documented?

Generated at Fri Mar 29 01:48:26 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.