Ad Widget

Collapse

How to enter past data with timestamp

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • danarmak
    Junior Member
    • Jan 2013
    • 2

    #1

    How to enter past data with timestamp

    I can't establish a direct network connection from the monitoring server to some of my monitored appliances (and I don't want to set up a Zabbix node). I was planning to write custom software to transfer the data and send it to the Zabbix trapper, which would involve a few minutes of delay.

    However, there doesn't seem to be an option to register data with an explicit timestamp from the past; the data Zabbix receives always applies to the moment when it is received. Is there a way around this?

    Thanks!
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2

    Code:
    -T, --with-timestamps
     Each line of file contains whitespace delimited: <hostname> <key> <timestamp> <value>.
    This can be used with --input-file option. Timestamp should be specified in Unix timestamp format.
    If target item has triggers referencing it, all timestamps must be in an increasing order, otherwise event calculation will not be correct.
    Zabbix 3.0 Network Monitoring book

    Comment

    • danarmak
      Junior Member
      • Jan 2013
      • 2

      #3
      Thanks, that worked! I hadn't realized -T required an input file and couldn't be used with -k -s -o, that's why it didn't work for me before.

      Thanks again!

      Comment

      • romale
        Member
        • Mar 2013
        • 53

        #4
        And, how to keep trigger time of status changing?
        Using zabbix v2.2.6, when i pass data with zabbix_sender -T .... (previous month data file for example), the trigger PROBPLEM state appear correctly - with timestamp of the data passing via zabbix_sender (from file with timestamp), but trigger status OK appear with current timestamp at the end only of the data file send. So, we have trigger states along of all data some like this:
        PROBLEM..PROBLEM..PROBLEM..OK
        but should be some like this:
        PROBLEM..OK..PROBLEM..PROBLEM..OK.

        Is it so designed?

        Comment

        Working...