[ZBXNEXT-1561] Increase zabbix_sender Timestamp parameter's resolution to millisecond Created: 2013 Jan 09  Updated: 2020 Mar 04  Resolved: 2020 Mar 04

Status: Closed
Project: ZABBIX FEATURE REQUESTS
Component/s: Agent (G)
Affects Version/s: 2.0.4
Fix Version/s: 5.0.0alpha3, 5.0 (plan)

Type: New Feature Request Priority: Major
Reporter: Simon Tsang Assignee: Aleksejs Sestakovs
Resolution: Fixed Votes: 9
Labels: millisecond, nanoseconds, patch, timestamp
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux


Attachments: File sender_timestamp_millisecond.patch     File zabbix_sender.c    
Team: Team C
Sprint: Sprint 61 (Feb 2020), Sprint 62 (Mar 2020)
Story Points: 0.5

 Description   

The parameter of the -T used by zabbix_sender to read the time in the resolution of second. It will be very useful if zabbix_sender can take millisecond as its time stamp.

Thank you.



 Comments   
Comment by richlv [ 2013 Jan 09 ]

it should take nanoseconds, of course.

Comment by Raymond Kuiper [ 2013 Apr 23 ]

So, is this fix implemented or just planned?

Comment by Dimitri Bellini [ 2013 Jun 13 ]

Hi hope in a fix very soon! is very useful for data loggin and string macthing!
Thanks

Comment by Constantin Oshmyan [ 2014 Mar 12 ]

Of course, the fractions of second (at least, milliseconds; preferable - micro- or nanoseconds) could be very useful. For example, during parsing of log files for some events that could occur irregularly - sometimes once per hour, sometimes many times per second.

Comment by jpka [ 2014 Apr 18 ]

I also need it.
Related posts:
1. https://www.zabbix.com/forum/showthread.php?t=38473
2. https://www.zabbix.com/forum/showthread.php?p=148564
Thanks.

Comment by Vladimir [ 2015 Oct 25 ]

Hello.
I create litle path for support nanoseconds in zabbix_sender.
I add option "-N". Where this option present, data file have this format:
"hostname item_name timestamp nanoseconds value".
This work, but i do not very good programmer.

I attach files in this forum https://www.zabbix.com/forum/showpost.php?p=173756&postcount=5

Comment by richlv [ 2015 Oct 25 ]

heya, thank you - could you please attach the patch here ? thanks

Comment by Vladimir [ 2015 Oct 26 ]

Hello.
I fix one file only - zabbix-2.4.6/src/zabbix_sender/zabbix_sender.c
New file is attached.

Comment by richlv [ 2015 Oct 26 ]

thanks, but it would be really great if you could attach a patch - it could be created by running :

diff -u old_file.c new_file.c > sender_timestamp_millisecond.patch
Comment by Vladimir [ 2015 Oct 26 ]

Ok.
I attach diff for 2.4.6 version

Comment by Aleksejs Sestakovs [ 2020 Feb 27 ]

Available in versions:

Generated at Thu Mar 28 17:02:18 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.