Ad Widget

Collapse

zabbix_get returns no data.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ineptsmeagol
    Junior Member
    • Nov 2015
    • 7

    #1

    zabbix_get returns no data.

    Hi,

    I have created a script that counts the number of a process and I have added it to the zabbix_agentd.conf file. I can sucessfully use zabbix_get from the agent machine with localhost as the -s parameter

    c:\zabbix\bin\win64\zabbix_get.exe -s localhost -k stimviewer.count
    11

    but when i try and use the IP address of the zabbix server i get no data back

    c:\zabbix\bin\win64\zabbix_get.exe -s 10.15.x.x -k stimviewer.coun

    In my zabbix_agentd.conf I do have the zabbix server defined for the Server= parameters.


    any tips?
  • Stefan_D
    Junior Member
    • Sep 2015
    • 18

    #2
    Waht about the connection between server and agent?
    Did you discover or add the machine to a group? Is it monitored yet?

    --
    SD

    Comment

    • Ineptsmeagol
      Junior Member
      • Nov 2015
      • 7

      #3
      I am connected to the zabbix server via the agent with no issue. It's something with using the userparams

      Comment

      • Stefan_D
        Junior Member
        • Sep 2015
        • 18

        #4
        Hi,

        shouldn it be stimviewer.count ?

        c:\zabbix\bin\win64\zabbix_get.exe -s 10.15.x.x -k stimviewer.coun

        Comment

        • Ineptsmeagol
          Junior Member
          • Nov 2015
          • 7

          #5
          Yes that is a typo in the post. I think it could be something in the conf file. because when I am on the server where the agent is installed and I run it with the IP of the Zabbix server:

          c:\zabbix\bin\win64\zabbix_get.exe -s <Zabbix Server> -k stimviewer.count
          returns nothing

          but when I run it with the IP of the agent server it returns a value:

          c:\zabbix\bin\win64\zabbix_get.exe -s <Agent server> -k stimviewer.count
          11

          Comment

          • Stefan_D
            Junior Member
            • Sep 2015
            • 18

            #6
            Ok,

            just for clarification. lets call the zabbix server "Server" and the server with the zabbix agent "Agent".

            You should be able to do on "Server":

            c:\zabbix\bin\win64\zabbix_get.exe -s "Agent" -k stimviewer.count

            And on "Agent" (depending on installation):

            c:\zabbix\bin\win64\zabbix_get.exe -s "Agent" -k stimviewer.count

            Comment

            • Ineptsmeagol
              Junior Member
              • Nov 2015
              • 7

              #7
              I do not have zabbix_get on my server I have been running zabbix_get only on the Agent machine

              Comment

              • Ineptsmeagol
                Junior Member
                • Nov 2015
                • 7

                #8
                Another piece of info is that the zabbix server is ubuntu

                Comment

                • Stefan_D
                  Junior Member
                  • Sep 2015
                  • 18

                  #9
                  Originally posted by Ineptsmeagol
                  I do not have zabbix_get on my server I have been running zabbix_get only on the Agent machine
                  Please install it on the server. The server polls this stuff (items).

                  Using zabbix_get on the agent machine with the server ip doe not make sense.

                  Comment

                  • Ineptsmeagol
                    Junior Member
                    • Nov 2015
                    • 7

                    #10
                    Thank You!!! once i installed the zabbix_get I saw the message from the server and found another typo in the agent config file and now it is working.

                    thanks again

                    Comment

                    Working...