Ad Widget

Collapse

Issue with importing data via zabbix_sender.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ruson
    Junior Member
    • Oct 2018
    • 3

    #1

    Issue with importing data via zabbix_sender.

    Hi,

    Environment: Zabbix 4.0 Appliance VM (testing)

    I need to import Cacti data to Zabbix.

    I've created a python script that converts rrdtoool's dump xml to a file that can be read by zabbix_sender.
    I'm using the OS Linux template Network Interfaces discovery created items.

    To import the data, I changed the item type to Zabbix trapper in the item prototypes and changed discovery time to 1m so it'll recreate the item as trapper.
    I use the zabbix_sender utility to import the data and it says that all was processed.
    Zabbix server looks fine too, I see the items being read fine into the right place

    I don't see any data in mysql or graph/history values.

    When I create a test item as trapper it works fine.
    The file looks like this:
    "Zabbix server" net.if.in[enp0s3] 1540623000 296

    Am I missing something?


  • kloczek
    Senior Member
    • Jun 2006
    • 1771

    #2
    Did you change types of your items to "zabbix trapper"?
    http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
    https://kloczek.wordpress.com/
    zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
    My zabbix templates https://github.com/kloczek/zabbix-templates

    Comment

    • Ruson
      Junior Member
      • Oct 2018
      • 3

      #3
      Hi,
      Thanks for the response.
      I did change the type and I mentioned it in my post.

      Just to be clear: the item is part of the OS Linux template and in the host itself its grayed out. (I edit the template itself)
      That's the only thing I can think of that can make it not work.
      I just don't know if it's a bug or something. I don't see a reason why it shouldn't work.
      The server logs looks fine and I see the item getting the correct data but it's not updating the DB.

      If anyone has an explanation - I'll be happy to hear. Otherwise maybe a bug can be reported (or a feature request)


      As a workaround I will update the SQL itself by creating CSV instead.

      Comment

      • kloczek
        Senior Member
        • Jun 2006
        • 1771

        #4
        BTW just realised hat import will not work.
        Why? Simple zabbix calculates out of last hour data trends tables points. If you will be importing data older than 1h trends will be not calculated.
        http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
        https://kloczek.wordpress.com/
        zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
        My zabbix templates https://github.com/kloczek/zabbix-templates

        Comment

        • Ruson
          Junior Member
          • Oct 2018
          • 3

          #5
          With SQL it kinda works. But you're basically saying that zabbix_sender is useless?
          My test data had less than 1 hour data for testing and it didn't appear when using zabbix_sender.

          When I inserted data to history I saw graphs and all the values for the current day and another 3 days (that was the data's date limit for now)

          I guess there's some other issue.

          Comment

          Working...