Ad Widget

Collapse

zabbix_sender submits data not visibile in zabbix?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • validom
    Junior Member
    • Feb 2016
    • 1

    #1

    zabbix_sender submits data not visibile in zabbix?

    hi!

    I'm a total Zabbix beginner so please excuse this question if it is too simple. During evaluation of zabbix, I've got the VMWare appliance running. So I set up a host, set up a host group, created an application and created a zabbix trapper item (numeric).

    When I use zabbix_sender (from the shell) to submit a value, the -vv Option returns ok. But no data is shown in "Latest data" within Zabbix nor when I create a graph based on the item.

    Any ideas?

    Code:
    linux-yd68:/etc/zabbix # zabbix-sender -vv -z localhost -p 10051 -s kunde1 -k key1 -o 1
    zabbix-sender [4184]: DEBUG: answer [{"response":"success","info":"processed: 1; failed: 0; total: 1; seconds spent: 0.000028"}]
    info from server: "processed: 1; failed: 0; total: 1; seconds spent: 0.000028"
    sent: 1; skipped: 0; total: 1
    Thanks a lot in advance for any help or suggestion!

    Vali
  • sedat
    Junior Member
    • Mar 2017
    • 7

    #2
    hostname is important and may be the key problem

    For ones who lived such problem (like me),

    I knew about the importance that:
    Hostname in the zabbix_agentd.conf file (/etc/zabbix/zabbix_agentd.conf) and host name field of the host definition must match.

    What I was missing was hostname must be the same also for zabbix_sender.

    I was using full hostname for zabbix sender for scripting purposes whereas defined hostnames with just short hostname.

    I set them all to FQDN then I got my data flowing to zabbix server!

    Have a nice day!

    Comment

    • Abhiram_Cloud4c
      Junior Member
      • Nov 2016
      • 10

      #3
      facing issue with zabbix agent active

      hi sedat,

      can you help me in the below request.

      i have configured active items in zabbix web....i am manually trying to push the data from zabbix proxy to zabbix app server using zabbix sender but facing the below error.

      [root@cloudpro zabbix]# zabbix_sender -z 127.0.0.1 -s abhiram_test -k icmppingsec -o 0.13
      info from server: "processed: 0; failed: 1; total: 1; seconds spent: 0.000341"
      sent: 1; skipped: 0; total: 1

      127.0.0.1 dummy ip.


      Facing same issue with input file also.

      Comment

      • sedat
        Junior Member
        • Mar 2017
        • 7

        #4
        Hi Abhiram_Cloud4c,

        I have installed Zabbix inside firewall so I never got any need of installing zabbix proxy.

        According to my experience you need to define host with the "Host name" value of "abhiram_test". This value also must be the value of the "Hostname" parameter in the zabbix_agentd.conf file.

        If we relate my experience with your proxy use case, I may suggest you checking proxy definition in the web UI and proxy host name of the proxy configuration file. From the documentation:

        "Proxy name : Enter the proxy name. It must be the same name as in the Hostname parameter in the proxy configuration file."
        Last edited by sedat; 21-07-2017, 17:16.

        Comment

        • Abhiram_Cloud4c
          Junior Member
          • Nov 2016
          • 10

          #5
          working......but not for input file option

          hi sedat,

          thanks

          I got it resolved after mentioning my proxy ip for -z.
          but my doubt.. i'm executing this in same proxy which i mentioned in -z option.Behalf i need to mention zabbix app server ip.

          anyway its working after mentioning proxy ip...but its working for sending single data but not working for input file option.

          any help please.

          Comment

          • sedat
            Junior Member
            • Mar 2017
            • 7

            #6
            Good to hear you gained some progress.

            Your input file should be whitespace delimited. Did you check that?
            From man page:

            -i, --input-file input-file

            Load values from input file. Specify - as <input-file> to read values from standard input. Each line of file contains whitespace delimited: <hostname> <key> <value>. Each value must be specified on its own line. Each line must contain 3 whitespace delimited entries: <hostname> <key> <value>, where "hostname" is the name of monitored host as registered in Zabbix frontend, "key" is target item key and "value" - the value to send. Specify - as <hostname> to use hostname from agent configuration file or from --host argument.
            An example of a line of an input file:
            "Linux DB3" db.connections 43


            For your case content of your input file can be like:

            "abhiram_test" icmppingsec 0.13
            "abhiram_test" otherkey 55
            "abhiram_test" anotherkey 98000

            Comment

            • Abhiram_Cloud4c
              Junior Member
              • Nov 2016
              • 10

              #7
              with timestamp its not working

              its not working with epoch timestamp mentioning in the file.

              "Vcenter DB" net.received.kiloBytesPerSecond.average 1500640852 68
              "Vcenter DB" net.received.kiloBytesPerSecond.average 1500640870 44
              "Vcenter DB" net.received.kiloBytesPerSecond.average 1500640899 34
              "Vcenter DB" net.received.kiloBytesPerSecond.average 1500640912 21
              "Vcenter DB" net.received.kiloBytesPerSecond.average 1500640950 88
              "Vcenter DB" net.received.kiloBytesPerSecond.average 1500640976 45

              Comment

              • sedat
                Junior Member
                • Mar 2017
                • 7

                #8
                Hmm..

                Just thinking outloud but you can check your timezone configured in php file. You can remember from the installation steps.

                Can you send without timestamp?

                Comment

                • Abhiram_Cloud4c
                  Junior Member
                  • Nov 2016
                  • 10

                  #9
                  unable to send data with timestamps

                  All the date time configuration of PHP is correct.

                  i followed the traditional method in zabbix documentation.

                  but unable send data with timestamp.

                  any help.....

                  Comment

                  Working...