Ad Widget

Collapse

Discussion thread for official Zabbix Template Nginx

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AlexL
    Zabbix Certified Specialist
    Zabbix Certified Specialist
    • Aug 2019
    • 55

    #1

    Discussion thread for official Zabbix Template Nginx

    This thread is designed to provide grounds for discussion of the upcoming official Zabbix Template for Nginx.
    The template and details of the template is available in GIT repository.



    Zabbix is always looking for ways to improve our services and to make our users happier.
    We pride ourselves on doing our best each and every day, but we know that there is always something more to learn.
    We would like to hear back from you to know what have you liked and what would you improve in the template.
    Last edited by AlexL; 23-12-2020, 11:17.
  • AlexL
    Zabbix Certified Specialist
    Zabbix Certified Specialist
    • Aug 2019
    • 55

    #2
    Templates have been released and are available under the following URL:
    HTTP Monitoring Template: https://git.zabbix.com/projects/ZBX/...app/nginx_http
    Agent Monitoring Template: https://git.zabbix.com/projects/ZBX/...pp/nginx_agent

    Comment

    • scriptracer
      Junior Member
      • Sep 2016
      • 3

      #3
      Why unpossible branchs release/4.0 and release/4.2 ?

      Comment

      • AlexL
        Zabbix Certified Specialist
        Zabbix Certified Specialist
        • Aug 2019
        • 55

        #4
        Originally posted by scriptracer
        Why unpossible branchs release/4.0 and release/4.2 ?
        The template relies heavily on JS pre-processing which was added to version 4.2 only, with 4.4 being released very soon and becoming limited support it will be only included in 4.4 version of Zabbix. However it should most likely work on 4.2 version if you import the xml file.

        Comment

        • scriptracer
          Junior Member
          • Sep 2016
          • 3

          #5
          What is mean limited support? Not LTS?
          What about future releases like 5.0?

          Comment

          • AlexL
            Zabbix Certified Specialist
            Zabbix Certified Specialist
            • Aug 2019
            • 55

            #6
            Originally posted by scriptracer
            What is mean limited support? Not LTS?
            What about future releases like 5.0?
            Please see the life cycle policy. LTS are released every 1.5 years with two standard releases in between.

            So the releases look the following:
            4.0 LTS, 4.2 Standard, 4.4 Standard, 5.0 LTS, 5.2 Standard

            Comment

            • gospodin.horoshiy
              Senior Member
              • Sep 2008
              • 272

              #7
              There is automatically converted version for 4.2 that can be found here, yet it doesn't have the official support:
              https://github.com/v-zhuravlev/zbx_t...out/4.2/EN/app
              Zbx 2.0.4 on Debian and MYSQL5 on Ubuntu Server 64bit 8.04,
              200+ Win Agents, 50+ Linux Agents, 150+ Network Devices

              Comment

              • stratos
                Junior Member
                • Jul 2013
                • 10

                #8
                Hello, I'm testing the official nginx agent template with zabbix 5.0.1. Everything works fine except the Nginx: Version item which reports Not supported with the following message:

                Code:
                [COLOR=#E45959][FONT=Arial][SIZE=12px]Preprocessing failed for: HTTP/1.1 200 OK..Server: nginx..Date: Thu, 18 Jun 2020 13:57:27 GMT..Content-Type: text/plain..Co...[/SIZE][/FONT][/COLOR]
                [COLOR=#E45959][FONT=Arial][SIZE=12px]1. Failed: cannot perform regular expression "Server: nginx/(.+)" match for value of type "string": pattern does not match[/SIZE][/FONT][/COLOR]
                I'm with nginx 1.18.0. Is there any incompatibility or I'm missing something. Thanks.
                Last edited by stratos; 18-06-2020, 16:09.

                Comment

                • Vlad2020202020
                  Junior Member
                  • Jul 2020
                  • 1

                  #9
                  Stratos, check your macros settings in zabbix templates, it helped me.Click image for larger version

Name:	Screenshot_5.png
Views:	5857
Size:	48.9 KB
ID:	404571

                  Comment

                  • t-131
                    Junior Member
                    • Jul 2020
                    • 1

                    #10
                    Hi
                    Have weird problem out-of-the-box

                    Have just installed zabbix 5
                    Have one linux webserver for monitoring
                    All templates works fine (OS, apache, mysql) except nginx

                    Its just do not collecting some items


                    local curl request returns info with external or internal IP



                    a have pointed out status path and port


                    i can successfully do
                    web.page.get["{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STAT US.P ATH}","{$NGINX.STUB_STATUS.PORT}"]
                    with external or internal webserver's IP


                    Any suggestions?

                    wow
                    looks like it was necessary to add {$NGINX.STUB_STATUS.HOST} to host macros
                    here's full list


                    resolved
                    Last edited by t-131; 08-07-2020, 10:49.

                    Comment

                    • vlad@zolotous.com
                      Junior Member
                      • Jan 2021
                      • 1

                      #11
                      Zabbix 5.2.1
                      trying to use the standard template "Nginx by Zabbix agent"

                      for collect metrics from multiple nginx on the same host
                      (each nginx uses its own ip address)

                      we cloning template and fix items, triggers, graphs and other, added a domain name everywhere.

                      add Macros
                      {$NGINX.STUB_STATUS.HOST.DOMAIN.ONE}
                      {$NGINX.STUB_STATUS.PATH.DOMAIN.ONE}
                      {$NGINX.STUB_STATUS.HOST.DOMAIN.TWO}
                      {$NGINX.STUB_STATUS.PATH.DOMAIN.TWO}
                      etc.

                      add first template to some_host
                      and check Latest data - all is ok, metrics for the first domain are visible.

                      then trying to add a second template and get an error:
                      ---
                      Details Cannot update host
                      Item "nginx.connections.accepted.rate" already exists on "some_host", inherited from another template.

                      ---


                      is it a bug?
                      "nginx.connections.accepted.rate" not Item, but Key

                      or this template cannot be used to collect metrics for multiple nginx from the same host?



                      while back to the old scheme with .sh scripts and UserParameter for each domain.

                      ---
                      Thank you for your time,
                      With sincere respect, Vlad.

                      Comment

                      • mevalenzuela
                        Junior Member
                        • Sep 2018
                        • 5

                        #12
                        Buenos Días: estoy trabajando con Zabbix Version 5.02 y precisamos Monitorear los Servicios Nginx en varios Servidores con Ubuntu. Se agregaron los Host en Zabbix, se agregó el Template App Nginx by Zabbix agent en Zabbix
                        y cuando desplegamos un Dashboard para mostrar los Gráficos de las Métricas de los Nginx nos encontramos que no nos está trayendo todas las Métricas que precisamos.
                        Por ejemplo: cuando muestro el Grafico Data Overview me trae algunas Métricas como por Ejemplo: Utilización de CPU, memory usage (rss), memory usage (vsize), Number of Processes running, etc.
                        Pero NO me muestra otras Métricas como por ej. Connections accepted per second, Connections active, Connections dropped per second, Connections handled per second, Connections reading, Connections waiting, etc.
                        Alguien que me pueda indicar cuál puede ser el PROBLEMA?? Muchas Gracias.

                        Comment


                        • imartinezs
                          imartinezs commented
                          Editing a comment
                          I have exactly the same problem.
                          Did you find a solution?

                          Encontraste una solución?
                      • wei
                        Junior Member
                        • Dec 2023
                        • 1

                        #13
                        Hello,

                        I am new here. I am trying to use one of this Nginx template, but have some issues.

                        - Nginx by Zabbix agent

                        I only see 1 trigger for this template on my server, however, the official wiki shows it has 6 pre-build triggers.

                        Click image for larger version

Name:	Screenshot 2023-12-08 100330.jpg
Views:	1711
Size:	109.3 KB
ID:	475571








                        Comment

                        • dunnsland
                          Member
                          • Dec 2021
                          • 81

                          #14
                          I have installed the Nginx by Zabbix agent on 2 servers. It installed without hassles on the one server but on the second I have a lot of errors.

                          See below.
                          Click image for larger version  Name:	image.png Views:	0 Size:	64.9 KB ID:	499503

                          Click image for larger version  Name:	image.png Views:	0 Size:	53.0 KB ID:	499504

                          The error is listed below.
                          Preprocessing failed for: HTTP/1.1 404 Not Found..Server: nginx..Date: Fri, 21 Feb 2025 21:51:22 GMT..Content-Type: text/ht...
                          1. Failed: cannot perform regular expression "Reading: ([0-9]+) Writing: ([0-9]+) Waiting: ([0-9]+)" match for value of type "string": pattern does not match

                          Click image for larger version  Name:	image.png Views:	0 Size:	20.5 KB ID:	499505

                          Why is it that all the dependant items are all showing errors, and why can I not get the nginx stub status.
                          Click image for larger version  Name:	image.png Views:	0 Size:	16.3 KB ID:	499506

                          A little about the server.
                          I am running nginx version

                          nginx version: nginx/1.24.0 (Ubuntu)
                          built with OpenSSL 3.0.13 30 Jan 2024
                          TLS SNI support enabled

                          I am running 7 sites under my nginx server. Will this cause me any issues.

                          I am running zabbix_agentd (daemon) (Zabbix) 6.0.38

                          I am also running zabbix srever 6.0.38 and the related Nginx by Zabbix Agent version.

                          I hope that someone can help me understand that why I am not able to get the monitoring of my nginx instance.

                          Thanks in advance.

                          I hope that I have not forgotten any info that might be needed to understand my situation.

                          Lawrence​

                          Comment

                          • PavelZ
                            Senior Member
                            • Dec 2024
                            • 165

                            #15
                            Did you notice marcos {$NGINX.STUB_STATUS.HOST} and {$NGINX.STUB_STATUS.PATH}?

                            Start by checking with curl
                            For example, running the command
                            curl http://localhost/server-status
                            should print the page, not a 404 error.

                            This url is often configured in nginx, but always.

                            Comment

                            Working...