Ad Widget

Collapse

Custom multipler in preprocessing using xml template

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shilpab
    Junior Member
    • Jun 2020
    • 17

    #1

    Custom multipler in preprocessing using xml template

    Hello,

    I want to add a custom multiplier "0.1" to all the items in a xml template for zabbix 5.0. I am using the below template for an item, but it does not give any preprocessing value when i import the template.Can anyone help me in this please.
    <preprocessing>
    <step>
    </type> MULTIPLIER </type>
    <params>0.1</paramas>
    </step>
    </preprocessing>

  • shilpab
    Junior Member
    • Jun 2020
    • 17

    #2
    Thanks for the reply.
    I have a complete XML file with items and triggers for zabbix 5.0 version. This is going to be just a part for each item.
    And i also have xml for zabbix 3.0 version in which the preprocessing is not supported. How can i give the custom multiplier like" 0.1" in the xml?

    Comment

    • shilpab
      Junior Member
      • Jun 2020
      • 17

      #3
      Thank you, But does the same code work zabbix version 3 also?
      As per i know version 3 supports only integer multiplication.

      Comment

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

        #4
        This does not seem to be a template, but just a step you need to add to template, to each item. It does not work this way, that you add only preprocessing into "template" and hope it applies to all items already present...

        Comment

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

          #5
          You need to add it to each items config...

          <items>
          <item>
          <name>your item</name>
          <key>your key</key>
          <history>1h</history>
          <trends>0</trends>
          <value_type>type</value_type>
          <description>description </description>
          <applications>
          <application>
          <name>your app name</name>
          </application>
          </applications>
          <preprocessing>
          <step>
          </type> MULTIPLIER </type>
          <params>0.1</paramas>
          </step>

          </preprocessing>
          </item>
          <item>
          ....
          </item>
          </items>
          Last edited by cyber; 24-12-2021, 12:19.

          Comment

          Working...