Ad Widget

Collapse

zabbix_sender and data from file format

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jancs
    Member
    • Jul 2014
    • 30

    #1

    zabbix_sender and data from file format

    Hi!

    manual says:
    zabbix_sender -z 192.168.1.113 -i data_values.txt
    Send values from file data_values.txt to server with IP 192.168.1.113.
    Host names and keys are defined in the file.

    What is the format of such file?
    is it one line per value in the form:
    HOST ITEM1 VALUE1
    HOST ITEM2 VALUE2

    or it is possible to give many ITEM VALUE pairs for particular host in one line? For example:
    HOST ITEM1 VALUE1 ITEM2 VALUE2 ITEM3 VALUE3 etc?
    May be it is worth mentioning in the man?

    Janis
  • ingus.vilnis
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Mar 2014
    • 908

    #2
    Hi Janis,

    The 1st option is correct - each line of the input files contains whitespace delimited hostname, key and value.

    You cannot have values per one host lined up as you have in your 2nd example.

    You can however send values to multiple hosts and also include timestamps.

    Check out -i and -T options on the same page of Sender's manual.


    Best Regards,
    Ingus

    Comment

    Working...