Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-19901

templates/app/nginx_agent/ item/key nginx.version fails

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Won't fix
    • Icon: Trivial Trivial
    • None
    • None
    • Templates (T)
    • None
    • Debian

      Steps to reproduce:

      1. Add the template "Nginx by to Zabbix agent" to a linux host running nginx
      2. Navigate to screen title "items" on said host
      3. The item "Nginx: Version" is in failed state.

      Result:

      The item fails with:

      Preprocessing failed for: HTTP/1.1 200 OK..Server: nginx..Date: Wed, 01 Sep 2021 14:59:55 GMT..Content-Type: text/plain..Co...
      1. Failed: cannot perform regular expression "Server: nginx\/(.+(?<!\r))" match for value of type "string": pattern does not match
      

      Also can be seen in Zabbix server logs:

      2456147:20210901:150610.940 error reason for "worker02:nginx.connections.active" changed: Preprocessing failed for: HTTP/1.1 200 OK..Server: nginx..Date: Wed, 01 Sep 2021 15:06:10 GMT..Content-Type: text/html..Con...
      1. Failed: cannot perform regular expression "Active connections: ([0-9]+)" match for value of type "string": pattern does not match
      

      See screenshot attached:

      Expected:
      Nginx version number.

       

      The nginx status stub page displays:

      Active connections: 2 
      server accepts handled requests
       39210 39210 14447 
      Reading: 0 Writing: 1 Waiting: 1 
      

      Like stated here http://nginx.org/en/docs/http/ngx_http_stub_status_module.html

      I don't think there's actually a version number to be found so this might give the error. But since I'm pretty new to Zabbix this might not be the case.

            ksalins Karlis Salins
            captaindog jasper
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: