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

Template App Apache by Zabbix agent - Preprocessing server version regex

    XMLWordPrintable

Details

    • Problem report
    • Status: Need info
    • Major
    • Resolution: Unresolved
    • 6.0.4rc1, 6.2.0alpha2
    • None
    • Templates (T)
    • None
    • Debian 11
    • Team INT
    • Support backlog

    Description

      Hi,

      First issue, I don't really know how to contribute.

      Steps to reproduce:

      1. Execute Apache: Get status item on host with mod_status enabled

      Result:

      1. Get only "Apache" in ServerVersion field if there is a / in the server version (ex: Apache/2.4.53 (Debian) OpenSSL/1.1.1n)

      Expected:

      Solved by modifying preprocessing Javascript //Convert apache to JSON:

      Line 12, change

      var line = lines[i].match(/([A-z0-9 ]+): (.*)/);

      by

      var line = lines[i].match(/([A-z0-9 ]+): (.*$)/);

      Thanks.

      Attachments

        Issue Links

          Activity

            People

              esneiders Eriks Sneiders
              ethn84 ethn84
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated: