Ad Widget

Collapse

Preprocessing step change of order

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BigSmooth
    Member
    • Jun 2023
    • 46

    #1

    Preprocessing step change of order

    Hello,

    I am running Zabbix 6.4.7.

    I am playing with Apache Solr by HTTP template. In the template, item Solr: JVM memory heap usage (key: solr.jvm.memory.heap.usage), there are two preprocessing steps:
    1. JSONPath
    2. Custom multiplier

    This is the order visible in template item.

    When I go in host, item and then preprocessing steps, steps are inverted. This causes a failure:
    Code:
    Failed: cannot apply multiplier "100" to value of type "string": cannot convert value to numeric type
    Did anyone saw that before?

    Olivier
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    Are you sure they are inverted? Maybe your jsonpath returns a string and then second step fails? For example its not just a number, but number in ""-s or in []-s ?

    You should be able to test this item by directly retrieving value from host and you should see all preprocessing steps and their results...

    Comment

    • BigSmooth
      Member
      • Jun 2023
      • 46

      #3
      Apparently, it is my additional template layer (which includes several templates) which causes this. Workaround is simple: Do not include template. Neverthelss, it can still be considered a bug. What do you think ?


      On Apache SOLR template:

      Click image for larger version

Name:	Apache SOLR Template.png
Views:	472
Size:	19.8 KB
ID:	472212


      On my template which include Apache Solr template:

      Click image for larger version

Name:	My Alfresco template.png
Views:	464
Size:	19.3 KB
ID:	472213


      On host:

      Click image for larger version

Name:	host.png
Views:	492
Size:	16.2 KB
ID:	472211

      Comment

      • cyber
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Dec 2006
        • 4807

        #4
        If you can replicate it easily, you can write a bug report here https://support.zabbix.com/projects/ZBX/issues

        Comment

        • arusso
          Junior Member
          • Jun 2022
          • 3

          #5
          BigSmooth did you ever figure this out / submit an issue? I'm seeing this issue myself on 6.4.6.

          Comment

          • arusso
            Junior Member
            • Jun 2022
            • 3

            #6
            I managed to work around it by deleting the last step of the preprocess (discard w/heartbeat), save, then re-add it. Once discovery ran again it sorted itself out.

            Comment

            • duchenpaul
              Junior Member
              • Apr 2024
              • 1

              #7
              I can confirm this issue, it happens to me as well:

              I am using https://github.com/zabbix/zabbix/tre.../db/postgresql, getting errors one of items, and it turns out to be the preprocessing step in revert order.
              I tried to recreate the host using template for multiple times, no luck.



              Click image for larger version

Name:	Snipaste_2024-04-27_18-32-16.png
Views:	390
Size:	63.9 KB
ID:	483152
              Click image for larger version

Name:	Snipaste_2024-04-27_18-32-48.png
Views:	386
Size:	44.9 KB
ID:	483153
              Click image for larger version

Name:	Snipaste_2024-04-27_18-33-02.png
Views:	393
Size:	40.7 KB
ID:	483154
              Attached Files

              Comment

              Working...