Ad Widget

Collapse

3 Questions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Eppi
    Junior Member
    • Apr 2011
    • 16

    #1

    3 Questions

    Hello,

    i have three questions.

    1) what are the difference between zabbix active and zabbix trapper. i send more parameters with this command: "zabbix_sender.exe -c zabbix_agentd.conf -i zabbix_mysql.txt" if i configurate this parameter as zabbis active it's working. when i try zabber trapper it doesn't work. how i must send the parameters so i can use it as zabbix trapper?

    2) sometimes my parameters on the page "last data" are grey, but only the parameters i sended with "zabbix active".

    3) if the parameters go to black again, i get many resolved messages. but there was not a problem that could be solved. i send all parameters each 60 seconds and have the items interval configurated to 60 seconds too.

    can anybody help me please?

    best regards,
    paul
  • JBo
    Senior Member
    • Jan 2011
    • 310

    #2
    Originally posted by Eppi
    1) what are the difference between zabbix active and zabbix trapper. i send more parameters with this command: "zabbix_sender.exe -c zabbix_agentd.conf -i zabbix_mysql.txt" if i configurate this parameter as zabbis active it's working. when i try zabber trapper it doesn't work. how i must send the parameters so i can use it as zabbix trapper?
    • «zabbix active» : parameters are sent by zabbix agent in active mode (the agent connects to the server)
    • «zabbix trapper» : parameters are sent by zabbix_sender.

    I don't undersand your zabbix_sender options.
    zabbix_sender doesn't take zabbix_agentd.conf as an argument.

    Originally posted by Eppi
    2) sometimes my parameters on the page "last data" are grey, but only the parameters i sended with "zabbix active".

    3) if the parameters go to black again, i get many resolved messages. but there was not a problem that could be solved. i send all parameters each 60 seconds and have the items interval configurated to 60 seconds too.
    Make sure that you use proper item type (zabbix active or trapper).

    Regards,
    JBo

    Comment

    • Eppi
      Junior Member
      • Apr 2011
      • 16

      #3
      i found the -c and -i parameters here: http://www.zabbix.com/documentation/.../zabbix_sender the transfer to zabbix server is working without problems. what is the different between the zabbix_agent and zabbix_sender connection (zabbix active, zabbix trapper)? only the program-name?

      regards,
      paul

      Comment

      • JBo
        Senior Member
        • Jan 2011
        • 310

        #4
        Hi,

        Originally posted by Eppi
        i found the -c and -i parameters here: http://www.zabbix.com/documentation/.../zabbix_sender the transfer to zabbix server is working without problems.
        Sorry, I didn't know that zabbix_sender could extract zabbix server name from zabbix_agentd.conf.
        Your syntax is valid.

        Originally posted by Eppi
        what is the different between the zabbix_agent and zabbix_sender connection (zabbix active, zabbix trapper)? only the program-name?
        zabbix agent collects performance data (either predefined values or UserParameters) and either sends them to zabbix server automatically (active mode) or when zabbix server asks them (passive mode).

        zabbix sender just sends performance data.
        You have to prepare these data with some external program.

        As you haven't described the data you are trying to collect, it is hard to say which one applies in your case.

        Regards,
        JBo

        Comment

        • Bennie
          Member
          Zabbix Certified Specialist
          • Feb 2010
          • 73

          #5
          Eppi,

          Zabbix agent is a process running on a server. Your Zabbix server connects to that agent and requests the item values configured on your host in the Zabbix server.

          Zabbix agent active is a process running on a server. The agent requests the Zabbix server for items it needs information for. When collected he sends the data to the Zabbix server.

          Zabbix trapper is a setting on your host configuration on the Zabbix server. When you enable this you can send values to the server for your host with the zabbix_sender command (not an active process). The Zabbix server will receive the values for your host and store them.

          There is a significant difference between the Zabbix active agent and the zabbix_sender command. Hopefully this will clear it up a little.
          Last edited by Bennie; 27-04-2011, 13:52. Reason: JBo was faster :D

          Comment

          • Eppi
            Junior Member
            • Apr 2011
            • 16

            #6
            i use zabbix_sender.exe to send mysql-data which i collect through php cron.
            if i would like to send it through zabbix trapper i must enable it on zabbix server before -> i will try. thank you!

            but i have still the problem with the resolved messages nearly each minute.

            regards,
            paul

            Comment

            • Bennie
              Member
              Zabbix Certified Specialist
              • Feb 2010
              • 73

              #7
              i use zabbix_sender.exe to send mysql-data which i collect through php cron.
              if i would like to send it through zabbix trapper i must enable it on zabbix server before -> i will try. thank you!
              Correct.

              Create a trapper with a key, in this case demo.key:


              that key must be in your txt file as well with its value. Once sent to the server it will get picked up. You need to do this for every different value type you want to sent.

              but i have still the problem with the resolved messages nearly each minute.
              make sure you make the right use of the trapper or the agent. If you are using the active agent and your trigger and actions are setup for it, it could fire all the time because of no data incoming. Change it all first to trapper and see what happens then.

              Comment

              • Eppi
                Junior Member
                • Apr 2011
                • 16

                #8
                could be that i have the same problem like here?


                regards, paul

                Comment

                • Bennie
                  Member
                  Zabbix Certified Specialist
                  • Feb 2010
                  • 73

                  #9
                  Originally posted by Eppi
                  could be that i have the same problem like here?


                  regards, paul
                  Think not, try to setup the agent and server properly first.

                  Comment

                  • Eppi
                    Junior Member
                    • Apr 2011
                    • 16

                    #10
                    i changed all items to zabbix trapper. but now all items failed. i'm not shure what i have to configurate on zabbix server. i still changed the firewall like documented here: http://www.zabbix.com/documentation/...tion/appliance

                    regards,
                    paul

                    Comment

                    • Bennie
                      Member
                      Zabbix Certified Specialist
                      • Feb 2010
                      • 73

                      #11
                      can you post your zabbix_mysql.txt file here please and a screenshot of the trapper items.

                      Comment

                      • Eppi
                        Junior Member
                        • Apr 2011
                        • 16

                        #12
                        i tested now with: zabbix_sender.exe -vv -c zabbix_agent.conf -i zabbix_mysql.txt and get the debug message:
                        DEBUG: Answer [{'response':'success','info':'Processed 0 Failed 18 Total 18 Seconds spent...'}]

                        the content of the zabbix_mysql.txt is:
                        Code:
                        - mysql[Master_Status_File] master-bin.000078
                        - mysql[Master_Status_Position] 18277282
                        - mysql[Master_Status_Binlog_Do_DB] rucksack
                        - mysql[Slave_IO_State] Waiting for master to send event
                        - mysql[Master_Host] 192.168.30.4
                        - mysql[Master_User] master
                        - mysql[Master_Port] 3306
                        - mysql[Master_Log_File] master-bin.000016
                        - mysql[Read_Master_Log_Pos] 51338790
                        - mysql[Relay_Log_File] master-relay.003861
                        - mysql[Relay_Log_Pos] 22103324
                        - mysql[Relay_Master_Log_File] master-bin.000016
                        - mysql[Slave_IO_Running] 1
                        - mysql[Slave_SQL_Running] 1
                        - mysql[Exec_Master_Log_Pos] 51338790
                        - mysql[Relay_Log_Space] 23042013
                        - mysql[Seconds_Behind_Master] 0
                        - mysql[Slave_running] 1
                        and here is the screenshot:


                        the first 4 items are in another template.

                        thx, paul

                        Comment

                        • Bennie
                          Member
                          Zabbix Certified Specialist
                          • Feb 2010
                          • 73

                          #13
                          can you light out 1 item? Like the mysql[Master_Host] item and put up a screen of that one as well?

                          Comment

                          • Eppi
                            Junior Member
                            • Apr 2011
                            • 16

                            #14
                            of course:


                            regards,
                            paul

                            Comment

                            • Bennie
                              Member
                              Zabbix Certified Specialist
                              • Feb 2010
                              • 73

                              #15
                              Your "allowed hosts" is localhost. That is not correct as the zabbix server is not on the same host as you are sending data from.

                              Or fill in the ip of the host sending from or remove it to test for now and add the ip later
                              Last edited by Bennie; 27-04-2011, 15:00. Reason: more info

                              Comment

                              Working...