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

    • Icon: Problem report Problem report
    • Resolution: Won't fix
    • Icon: Major Major
    • None
    • 6.0.4rc1, 6.2.0alpha2
    • Templates (T)
    • None
    • Debian 11
    • Support backlog

      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.

            asebiskveradze Aleksandre Sebiskveradze
            ethn84 ethn84
            Team INT
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: