Ad Widget

Collapse

How to separate data of the same type but from different sources

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jader.dias
    Junior Member
    • Mar 2010
    • 13

    #1

    How to separate data of the same type but from different sources

    I have a machine that receives data from multiple sources. This machine forwards the data to the Zabbix Trapper.

    I want to be able to view this data separately. One way of doing that is to send data from each source with a different fake hostname. But this is not ideal.

    I can receive this data in more than one host. I would like to be able to see data from source 1 on host A separately from source 2 on host A and from source 1 in host B.
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    so what's wrong with sending the data to different hosts and different items ?
    Zabbix 3.0 Network Monitoring book

    Comment

    • jader.dias
      Junior Member
      • Mar 2010
      • 13

      #3
      @richlv

      I am currently doing this manually. I send:

      datatypeA[source1]
      datatypeA[source2]

      I create a item per source. All the data shows separately in the host latest data. But what if I wanted to add a third source? I would have to create a third item manually, right? How to automatize this?

      Comment

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

        #4
        yes, adding new items isn't as easy. while that could be achieved by curl-scraping web frontend, better solution might be through the api - nelsonab was talking about getting trapper item adding for zabcon, i believe
        Zabbix 3.0 Network Monitoring book

        Comment

        • nelsonab
          Senior Member
          Zabbix Certified SpecialistZabbix Certified Professional
          • Sep 2006
          • 1233

          #5
          Trapper has been added as an item type.
          RHCE, author of zbxapi
          Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
          Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

          Comment

          Working...