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.

        1. Capture d’écran 2022-04-26 à 16.26.36.png
          90 kB
          ethn84
        2. Capture d’écran 2022-04-26 à 16.27.16.png
          145 kB
          ethn84
        3. Screenshot 2022-06-07 at 17.53.35.png
          797 kB
          Edgar Akhmetshin
        4. Screenshot 2022-06-07 at 18.11.55.png
          39 kB
          Edgar Akhmetshin
        5. test-result.png
          135 kB
          Eriks Sneiders
        6. test-string.png
          108 kB
          Eriks Sneiders

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

              Created:
              Updated:
              Resolved: