Ad Widget

Collapse

Add millisecond timestamp to through zabbix_sender

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • simontsang
    Junior Member
    • Dec 2012
    • 1

    #1

    Add millisecond timestamp to through zabbix_sender

    Hi,
    I know Zabbix 2.0 now is supporting nano seconds. I am wondering how to put my own time stamp through zabbix_sender in millisecond resolution.

    Here's what I did
    zabbix_sender -z localhost -T -i /tmp/zabbix/timetestfile

    Inside the timetestfile:
    testHost TimeStampTestKey 1356019739 2

    The "2" at the end is just a value to kick off a trigger.
    The "1356019739" is the unix timestamp in second resolution

    I am wondering does anyone know how to fit the nano second as a parameter into this? Or there's another way to do it.

    In the zabbix database, I looked the events table of zabbix 2.0, I definitely found there's a new column called "ns" added. I also verified the timestamp I put in through zabbix_sender update the column "clock". I hope will be able to update the "ns" column as well through zabbix_sender.

    Thank you.
  • zalex_ua
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2009
    • 1286

    #2
    This is a feature request for zabbix_sender.

    I believe there are not such request, feel free to create it https://support.zabbix.com/browse/ZBXNEXT

    Comment

    • qix
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Oct 2006
      • 423

      #3
      The issue can be found here: https://support.zabbix.com/browse/ZBXNEXT-1561

      Vote if you need it
      With kind regards,

      Raymond

      Comment

      • jpka
        Junior Member
        • Sep 2013
        • 24

        #4
        I also need it

        I need it, and i vote. Looks like not too hard to implement. While i prefer pass timestamp (both second and nano/millisecond parts) via command line key, rather than via '<hostname> <key> <timestamp> <value>' content of text file. Also auto-timestamping using precision local time, would be nice.
        Related reading: https://www.zabbix.com/forum/showthr...564#post148564
        Thanks!

        Comment

        • first-leon
          Junior Member
          • Aug 2014
          • 6

          #5
          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.

          Please review and push to upstream
          Attached Files

          Comment

          Working...