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

Regex too restrfictive in rabbit cluster/node templates

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 6.0.41, 7.0.20
    • Templates (T)
    • None

      Steps to reproduce

       

      This applies to at least the zabbix6.0 and zabbix 7.0 version of rabbitmq_agent template.

       

      Both templates, `RabbitMQ node by Zabbix agent`, & `RabbitMQ cluster by Zabbix agent` have item prototypes for `Item prototypes for Health Check 3.8.10+ discovery`.

      Those templates have pre-processing steps that match a regex of the following form

      HTTP\/1\.1\b\s(\d+), returning the first match block to get status code.

       

      This is too restrictive, in our case we have a rabbit setup behind haproxy, returning HTTP/2 + status codes.

      I suggest these regexs should be 

      HTTP\/\d+(.\d+)?\b\s(\d+), returning the second block

      There is one of these in the cluster template, and 5 in the node template that need fixing. 

       

      The cluster item prototype.

      • RabbitMQ: Healthcheck: alarms in effect in the cluster{#SINGLETON}

       

      The node template item prototypes.

      1. RabbitMQ: Healthcheck: expiration date on the certificates{#SINGLETON}
      2. RabbitMQ: Healthcheck: local alarms in effect on this node{#SINGLETON}
      3. RabbitMQ: Healthcheck: classic mirrored queues without synchronized mirrors online{#SINGLETON}
      4. RabbitMQ: Healthcheck: queues with minimum online quorum{#SINGLETON}
      5. RabbitMQ: Healthcheck: virtual hosts on this node{#SINGLETON}

            zabbix.support Zabbix Support Team
            Callie Calliope Clarke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: