Ad Widget

Collapse

zabbix_get not getting any data from agentd

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mrmurdock
    Member
    • Aug 2009
    • 85

    #1

    zabbix_get not getting any data from agentd

    I have my server configured and a solaris host setup to run zabbix_agentd. when I run zabbix_get from the server, i get a return, but no data in the return string. I have tried several different items as listed in the manual, but still only get empty strings.
    When I run the zabbix_get on my client it returns a value.

    [root@zabbix-slc sbin]# zabbix_get -s 10.44.XX.XX -p 10050 -I <zabbix-slc> -k "kernel.maxproc"

    [root@zabbix-slc sbin]#
    barney:>tail /tmp/zabb*
    389:20090914:083652 zabbix_agentd started. ZABBIX 1.4.6.
    393:20090914:083652 zabbix_agentd collector started
    394:20090914:083652 zabbix_agentd listener started
    395:20090914:083652 zabbix_agentd active check started [10.44.XX.XX:10051] <== Client IP

    barney:>zabbix_get -s 10.44.XX.XX -p 10050 -k "kernel.maxproc"
    16170
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    most likely server ip address in the agentd config file is not set correctly. you should set it to the zabbix server ip and perform all further tests from that host.
    Zabbix 3.0 Network Monitoring book

    Comment

    • mrmurdock
      Member
      • Aug 2009
      • 85

      #3
      Server=10.44.XX.XX

      # Server port for sending active checks

      ServerPort=10051

      Here is my clients zabbix_agentd.conf file.
      # Unique hostname. Required for active checks.

      Hostname=zabbix-slc.bsd.com<== Server Name

      # Listen port. Default is 10050

      #ListenPort=10050

      # IP address to bind agent
      # If missing, bind to all available IPs

      #ListenIP=10.44.255.44

      # Source IP address for outgouing connections
      SourceIP=10.44.XX.XX <====Client IP

      Comment

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

        #4
        i couldn't figure out much from these extracts. first, define what you want to achieve - do you want to use active checks ? passive ? both ?

        in any case, you must have zabbix server ip set in the agentd configuration file for the monitored host with the "Server" parameter.

        also, unless really required, you should first get it up and running without sourceip set.
        Zabbix 3.0 Network Monitoring book

        Comment

        • mrmurdock
          Member
          • Aug 2009
          • 85

          #5
          I really do appreciate the help you are giving to me.

          This a upgrade from 1.6.5 to 1.6.6 of Zabbix Server.

          Well, nothing seems to help. I have tried your suggestion, but to no avail. The Zabbix server is a Linux VM, but zabbix_get on the server side does recognize if agentd is running on the client or not, so some communication is occuring.

          When I initially setup the server I ran the zabbix_server
          -c /etc/zabbix/zabbix_server.conf -n 1 command, but in my zabbix_server.conf file, its set to 0. Would that cause any issues? And what would happen if I re-run "zabbix_server -c /etc/zabbix/zabbix_server.conf -n 0" ?
          Is there a Mysql command to pull out data from the mysql database to see if the mysql db is getting updated or not?

          I can run the "zabbix_sender" command from the client, and it sends the <data> to the zabbix server successfully (as indicated by the result code).

          What Mysql command and what table do I use to query the mysql db directly for data?

          The solaris snoop command does show communication to/from the client and server, but not intelligent data I could recognize anyways...

          Comment

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

            #6
            Originally posted by mrmurdock
            When I initially setup the server I ran the zabbix_server
            -c /etc/zabbix/zabbix_server.conf -n 1 command, but in my zabbix_server.conf file, its set to 0. Would that cause any issues? And what would happen if I re-run "zabbix_server -c /etc/zabbix/zabbix_server.conf -n 0" ?
            are you using distributed monitoring ? if not, why did you run -n 1 ?
            that converts database for distributed monitoring, thus it could lead to all kinds of weird problems if not properly set up elsewhere. i would suggest trying same nodeid in the zabbix server config file as you passed on the startup (1).
            Zabbix 3.0 Network Monitoring book

            Comment

            • yas
              Junior Member
              • Apr 2010
              • 25

              #7
              how to added hosts on my zabbix server

              how i can add the node or host on the server pls im so tire from this problem

              Comment

              • viconstg
                Junior Member
                • May 2011
                • 8

                #8
                I had the same problem -- zabbix_get returning the empty string. I've fixed this by adding -I<Zabbix Server IP> to the call of zabbix_get.

                Comment

                Working...