Ad Widget

Collapse

Zabbix Proxy Template

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • neiromc
    Member
    • Sep 2010
    • 58

    #1

    Zabbix Proxy Template

    Hi all!

    I have some zabbix proxy hosts assigned to default "Zabbix Proxy Template".
    [~]$ zabbix_proxy -V
    zabbix_proxy (Zabbix) 3.0.3
    Revision 60173 18 May 2016, compilation time: May 23 2016 09:00:25

    [~]$ zabbix_server -V
    zabbix_server (Zabbix) 3.0.3
    Revision 60173 18 May 2016, compilation time: May 23 2016 09:00:25
    And I have an "Invalid second parameter" error on all my proxies only with below metrics:

    zabbix[process,data sender,avg,busy]
    zabbix[process,heartbeat sender,avg,busy]


    Thanks for help and advises!
  • pyloor
    Junior Member
    • Jul 2016
    • 5

    #2
    Hi,

    Originally posted by neiromc
    Hi all!
    zabbix[process,data sender,avg,busy]
    zabbix[process,heartbeat sender,avg,busy]
    [/B]
    This is a bit tricky. In the documentation there is a small hint:
    "Values for items and item parameters that are “not supported on proxy” can only be gathered if the host is monitored by server. And vice versa, values “not supported on server” can only be gathered if the host is monitored by proxy."

    I had to read it twice until I understand it. The given items can only collected if you monitor a proxy by another proxy. On the other hand there are items which are only able to be monitored by the zabbix server and not by the proxy.

    I have tested it in my zabbix instance and as soon as the proxy has the configuration packet read, the values were processed, but then other values were invalid.

    For me it is a bit strange to monitor a proxy by another proxy to get these values. I would favourite it, if the zabbix server monitors only the proxies and alerts if they fail. Now I have to think for a third proxy to monitor the missing parameters from the working proxies...

    Best
    pyloor

    Comment

    • Atsushi
      Senior Member
      • Aug 2013
      • 2028

      #3
      Both are items that are not supported by Zabbix server.
      Please make sure not to link the template for a proxy to Zabbix server.

      Comment

      • neiromc
        Member
        • Sep 2010
        • 58

        #4
        Originally posted by pyloor
        Hi,



        This is a bit tricky. In the documentation there is a small hint:
        "Values for items and item parameters that are “not supported on proxy” can only be gathered if the host is monitored by server. And vice versa, values “not supported on server” can only be gathered if the host is monitored by proxy."

        I had to read it twice until I understand it. The given items can only collected if you monitor a proxy by another proxy. On the other hand there are items which are only able to be monitored by the zabbix server and not by the proxy.

        I have tested it in my zabbix instance and as soon as the proxy has the configuration packet read, the values were processed, but then other values were invalid.

        For me it is a bit strange to monitor a proxy by another proxy to get these values. I would favourite it, if the zabbix server monitors only the proxies and alerts if they fail. Now I have to think for a third proxy to monitor the missing parameters from the working proxies...

        Best
        pyloor
        Awesome

        Thanks so much.
        I'm read this in official manual and really confused too.
        I can't understand for a what developer puts this parameters in Proxy Template?

        Thanks again!

        Comment

        • neiromc
          Member
          • Sep 2010
          • 58

          #5
          Originally posted by Atsushi
          Both are items that are not supported by Zabbix server.
          Please make sure not to link the template for a proxy to Zabbix server.
          It's written in official documentation. I'm read this many time.
          I'm not link this template with zabbix server. I'm link this template only with proxy but metrics does not work, I wrote about it above.

          Comment

          • Atsushi
            Senior Member
            • Aug 2013
            • 2028

            #6
            When properly link the proxy of the template for the proxy host value you can get.
            Please check the settings of the host.

            Comment

            • neiromc
              Member
              • Sep 2010
              • 58

              #7
              Originally posted by Atsushi
              When properly link the proxy of the template for the proxy host value you can get.
              Please check the settings of the host.
              I have a host. This host connected to zabbix server as proxy and this host added to host list. This host linked to default proxy template.

              Which parameter(s) I must check?

              Thanks a lot.

              Comment

              • neiromc
                Member
                • Sep 2010
                • 58

                #8
                Originally posted by pyloor
                Hi,
                I had to read it twice until I understand it. The given items can only collected if you monitor a proxy by another proxy. On the other hand there are items which are only able to be monitored by the zabbix server and not by the proxy.

                I have tested it in my zabbix instance and as soon as the proxy has the configuration packet read, the values were processed, but then other values were invalid.

                Best
                pyloor
                How you can monitor proxy metric zabbix[process,heartbeat sender,avg,busy] by another proxy? It's an internal check. You can't set proxy name in this key.

                Comment

                • Atsushi
                  Senior Member
                  • Aug 2013
                  • 2028

                  #9
                  Zabbix server and Zabbix proxy is registered as a different host?

                  Comment

                  • neiromc
                    Member
                    • Sep 2010
                    • 58

                    #10
                    Originally posted by Atsushi
                    Zabbix server and Zabbix proxy is registered as a different host?
                    Yes, sure.
                    I have 3 proxy servers with own database inside, 1 zabbix server, 1 database server for zabbix server only and 1 front-end server.
                    All servers is registered as different hosts in zabbix.

                    Comment

                    • Atsushi
                      Senior Member
                      • Aug 2013
                      • 2028

                      #11
                      Multiple hosts have been registered on the Web frontend?
                      ex.
                      Zabbix server
                      Zabbix proxy 1
                      Zabbix proxy 2
                      Zabbix proxy 3

                      For example, do you link the "Template App Zabbix Proxy" to "Zabbix proxy 1"?

                      Comment

                      • neiromc
                        Member
                        • Sep 2010
                        • 58

                        #12
                        Originally posted by Atsushi
                        Multiple hosts have been registered on the Web frontend?
                        ex.
                        Zabbix server
                        Zabbix proxy 1
                        Zabbix proxy 2
                        Zabbix proxy 3

                        For example, do you link the "Template App Zabbix Proxy" to "Zabbix proxy 1"?
                        Yes. All is correct.
                        I link the "Template App Zabbix Proxy" to "Zabbix proxy 1", "Zabbix proxy 2", "Zabbix proxy 3", and not for "Zabbix server"

                        Comment

                        • Atsushi
                          Senior Member
                          • Aug 2013
                          • 2028

                          #13
                          Do you match the name of each proxies?

                          - Administration -> Proxies
                          - Configuration -> Hosts
                          - zabbix_proxy.conf : Hostname

                          Comment

                          • neiromc
                            Member
                            • Sep 2010
                            • 58

                            #14
                            Originally posted by Atsushi
                            Do you match the name of each proxies?

                            - Administration -> Proxies
                            - Configuration -> Hosts
                            - zabbix_proxy.conf : Hostname
                            1) yes, FQDN
                            2) yes, Hostname and interface equals FQDN
                            3) zabbix_get from zabbix server return FQDN (i know, that return from agent config), but in zabbix_proxy.conf the "Hostname" field is commented out

                            I'll try to uncomment and set Hostname in proxy configure file and reply soon as possible

                            Thanks a lot!

                            Comment

                            • neiromc
                              Member
                              • Sep 2010
                              • 58

                              #15
                              Originally posted by Atsushi
                              Do you match the name of each proxies?

                              - Administration -> Proxies
                              - Configuration -> Hosts
                              - zabbix_proxy.conf : Hostname
                              3) Fixed.

                              No changes

                              Comment

                              Working...