Ad Widget

Collapse

trapper poller and agent

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ghislain
    Senior Member
    • Jun 2005
    • 160

    #1

    trapper poller and agent

    hi,

    It seems zabbix spawn a certain number of process when it start but does not increase them if the load requires it. I was trying to tune them but i have really no idea which does what. All i have in the docs is that trapper are process that trap, poller process that poll etc.. so i need a little help .

    When zabbix agent active is used does they connect to the trapper process or to the poller processes ? Does the trapper proces are only used for trapper item type ?

    To be short it would be kind if anyone can enlighten me on which process is used for what exactly so tuning the numbers would be easier.




    StartDiscoverers seems obvious ok
    StartHTTPPollers seems obvious ok
    StartIPMIPollers seems obvious ok
    StartPingers seems obvious ok
    StartPollersUnreachable seems obvious ok

    StartPollers there it is used to poll but , snmp, agent , agent active , all ?
    StartTrappers only for trapper agent type items ?

    thanks for your help.



    As a side note it would be very cool to be able to have a debug level filtered by host or by process (like postfix you can increase debugging for a domain only and this is awesome, on large install with more that 50 hosts debuglevel4 is simply unreadable).
    Regards,
    Ghislain.
  • ghislain
    Senior Member
    • Jun 2005
    • 160

    #2
    still not able to figure out

    anyone have an idea for that ?
    Regards,
    Ghislain.

    Comment

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

      #3
      regarding improved debugging, feel free to vote on https://support.zabbix.com/browse/ZBXNEXT-136

      zabbix trappers are used for all incoming connections - active agents, zabbix_sender, proxies...
      Zabbix 3.0 Network Monitoring book

      Comment

      • vinny
        Senior Member
        • Jan 2008
        • 145

        #4
        Hi Richards,
        Isn't it possible to write down a description of the interaction flow/processes, between Zabbix master, proxies, agents, etc etc ?
        Like a Visio schema

        vinny
        -------
        Zabbix 1.8.3, 1200+ Hosts, 40 000+ Items...zabbix's everywhere

        Comment

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

          #5
          well.. it's probably possible, but who's doing that and what should it contain ?
          also, visio is proprietary
          Zabbix 3.0 Network Monitoring book

          Comment

          • bashman
            Senior Member
            • Dec 2009
            • 432

            #6
            Hi richlv,

            I'm trying to tune StartPollers and StartTrappers.

            If you say that:

            Originally posted by richlv
            zabbix trappers are used for all incoming connections - active agents, zabbix_sender, proxies...
            StartTrappers most be at least equal to StartPollers.

            1. Do the pollers open all the outgoing connections?.
            2. Do the trappers listen for all the incoming connections?.
            3. If you only have agents without any trapper item defined, do you need to define StartTrappers?.
            4. Does a connection keep open for the agent to response when the polls opens a new connection?.
            5. If you have a high StartPollers value, do you need a high StartTrappers value?.
            Last edited by bashman; 31-08-2010, 13:28.
            978 Hosts / 16.901 Items / 8.703 Triggers / 44 usr / 90,59 nvps / v1.8.15

            Comment

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

              #7
              Originally posted by bashman
              StartTrappers most be at least equal to StartPollers.
              not sure why would that be
              Originally posted by bashman
              1. Do the pollers open all the outgoing connections?.
              2. Do the trappers listen for all the incoming connections?.
              pretty much yes. well, there are also discoverers, pingers...
              Originally posted by bashman
              3. If you only have agents without any trapper item defined, do you need to define StartTrappers?.
              as i mentioned, starttrappers are used for all kinds of incoming connections. if you need any, you need trappers. trapper items is just a subset of things starttrappers handle
              Originally posted by bashman
              4. Does a connection keep open for the agent to response when the polls opens a new connection?.
              didn't understand the question
              Originally posted by bashman
              5. If you have a high StartPollers value, do you need a high StartTrappers value?.
              no, these are not directly connected
              Zabbix 3.0 Network Monitoring book

              Comment

              • bashman
                Senior Member
                • Dec 2009
                • 432

                #8
                Hi richlv, thanks for your response.

                So trappers are used not only for item type trapper, but for any other incoming connection.

                I have tuned MySQL, Apache and front-end already. Take a look at my zabbix_server.conf tuning, all values are default values, except from these:

                Code:
                StartPollers=30
                StartIPMIPollers=1
                StartTrappers=10
                StartPingers=10
                StartDiscoverers=0
                StartHTTPPollers=5
                CacheSize=128M
                UnreachablePeriod=60
                UnavailableDelay=120
                UnreachableDelay=60
                Code:
                Zabbix server is running	Yes	 -
                Number of hosts (monitored/not monitored/templates)	553	410 / 17 / 126
                Number of items (monitored/disabled/not supported)	8409	6653 / 1730 / 26
                Number of triggers (enabled/disabled)[problem/unknown/ok]	4876	3952 / 924  [80 / 60 / 3812]
                Number of users (online)	26	5
                Required server performance, new values per second	54.58	-
                Average online users are 7.

                Zabbix queue performance has improved due to the upgrade version to 1.8.3 from 1.8.2.

                What do you think of my zabbix_server tune?.
                978 Hosts / 16.901 Items / 8.703 Triggers / 44 usr / 90,59 nvps / v1.8.15

                Comment

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

                  #9
                  hrm, i wouldn't want to give any specific performance advice, as that requires careful examination of the environment.
                  i'll just note that cache size most likely is too large - monitor configuration cache usage with internal item and see what the actual usage is
                  Zabbix 3.0 Network Monitoring book

                  Comment

                  • bashman
                    Senior Member
                    • Dec 2009
                    • 432

                    #10
                    Right, I see, but what's CacheSize parameter for?, Isn't it to cache new values from incoming connections?.
                    978 Hosts / 16.901 Items / 8.703 Triggers / 44 usr / 90,59 nvps / v1.8.15

                    Comment

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

                      #11
                      Originally posted by bashman
                      Right, I see, but what's CacheSize parameter for?, Isn't it to cache new values from incoming connections?.
                      http://www.zabbix.com/documentation/.../zabbix_server
                      Zabbix 3.0 Network Monitoring book

                      Comment

                      • bashman
                        Senior Member
                        • Dec 2009
                        • 432

                        #12
                        Ok, thanks.

                        So really it isn't only to cache new values for incoming connections, but to cache host as well.

                        I understand that If you have a large number of hosts and a high new values per second ratio, you need a high CacheSize value.

                        There is no memory space problem in my host.

                        Can a high Server Timeout penalize Zabbix queue performance?.

                        What I noticed in Zabbix v1.8.2 is a penalize Zabbix queue performance due to a high online users value.
                        978 Hosts / 16.901 Items / 8.703 Triggers / 44 usr / 90,59 nvps / v1.8.15

                        Comment

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

                          #13
                          Originally posted by bashman
                          So really it isn't only to cache new values for incoming connections, but to cache host as well.

                          I understand that If you have a large number of hosts and a high new values per second ratio, you need a high CacheSize value.
                          no !
                          you didn't look at config params like TrendCacheSize, HistoryCacheSize and HistoryTextCacheSize

                          Originally posted by bashman
                          Can a high Server Timeout penalize Zabbix queue performance?.
                          yes, if some hosts will be slow to respond they will tie up pollers
                          Zabbix 3.0 Network Monitoring book

                          Comment

                          • bashman
                            Senior Member
                            • Dec 2009
                            • 432

                            #14
                            Thanks richlv for your help, with all this info I'll have no problem to tune my zabbix_server.conf.
                            978 Hosts / 16.901 Items / 8.703 Triggers / 44 usr / 90,59 nvps / v1.8.15

                            Comment

                            • navinkumarrt
                              Junior Member
                              • Jan 2021
                              • 1

                              #15
                              Hey guys

                              From last 3 days I am frequently facing
                              "Problem: Zabbix server - Zabbix trapper processes more than 75% busy"
                              nd because of this complex server get down until restart of Zabbix service on the server.

                              I already tried https://www.zabbix.com/forum/zabbix-...e-than-75-busy

                              Comment

                              Working...