[ZBXNEXT-1468] timeout option for zabbix_get Created: 2012 Oct 12 Updated: 2022 Jul 27 Resolved: 2022 Jul 27 |
|
Status: | Closed |
Project: | ZABBIX FEATURE REQUESTS |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | New Feature Request | Priority: | Minor |
Reporter: | richlv | Assignee: | Unassigned |
Resolution: | Duplicate | Votes: | 11 |
Labels: | patch, timeout, trivial, zabbix_get | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Attachments: | zabbix-2.2-zabbix_get_timeout.patch | ||||||||
Issue Links: |
|
Description |
zabbix_get can sometimes be used to quickly gather some value from a lot of hosts, but it uses system timeouts when target is not reachable. sometimes this can be very slow. would be nice to get an additional option to always override all timeouts |
Comments |
Comment by Volker Fröhlich [ 2013 Dec 05 ] |
It actually uses Zabbix' hardcoded GET_SENDER_TIMEOUT which translates to 60 seconds. The attached patch adds a -t/--timeout option to specify the timeout in seconds. It has no limitations and isn't validated any better than "port" is. It applies to the head of the 2.2 branch (r40766). |
Comment by dimir [ 2013 Dec 18 ] |
The problem here is Windows platform support as I understood. Can you check if this will work on Windows? |
Comment by Juris Miščenko (Inactive) [ 2014 Jan 31 ] |
Implemented in svn://svn.zabbix.com/branches/dev/ZBXNEXT-1468 |
Comment by Volker Fröhlich [ 2014 Feb 01 ] |
Doesn't compile! zabbix_get.c:31:12: error: missing binary operator before token "(" You forgot a "d" there. jurism Typo corrected. |
Comment by Alexander Vladishev [ 2014 Oct 31 ] |
Specification is not available now. I reopen the issue. |
Comment by Roy Sigurd Karlsbakk [ 2019 Jul 09 ] |
This has been here for almost five years now, and it's a very nice feature, not requiring much code. Any chance of this getting implemented? |
Comment by Alexei Vladishev [ 2022 Jul 10 ] |
I am not sure why it is still open since we already support timeout (-t) option for zabbix_get. I am closing it. |
Comment by dimir [ 2022 Jul 27 ] |
Duplicate of |