Ad Widget

Collapse

Calculated items created on host works but no in the template

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • userno
    Junior Member
    • Sep 2023
    • 19

    #1

    Calculated items created on host works but no in the template

    I created a calculate item in a template, when i test it doesn't work but it works when i clone the item on the host. They have the same formula, one with the name of the host and one with the name of the template.

    Click image for larger version

Name:	Captura desde 2023-09-27 09-27-59.png
Views:	252
Size:	22.2 KB
ID:	471168

    Click image for larger version

Name:	Captura desde 2023-09-27 09-23-22.png
Views:	290
Size:	70.3 KB
ID:	471167
  • dimir
    Zabbix developer
    • Apr 2011
    • 1080

    #2
    Look, you have "Get value from host" checked but templated item obviously has no "host" attached to.

    Comment

    • userno
      Junior Member
      • Sep 2023
      • 19

      #3
      Originally posted by dimir
      Look, you have "Get value from host" checked but templated item obviously has no "host" attached to.
      Because i executed from the host items, no from the template, there is information to calculate.

      Comment

      • vijayk
        Senior Member
        • May 2023
        • 305

        #4
        Can you share the both Items screenshot?

        Comment

        • userno
          Junior Member
          • Sep 2023
          • 19

          #5
          Originally posted by vijayk
          Can you share the both Items screenshot?
          The left it's created in the host (works) and the right it's in the template (not works).
          Click image for larger version

Name:	Captura desde 2023-09-28 11-42-06.png
Views:	240
Size:	102.7 KB
ID:	471276
          Attached Files

          Comment

          • vijayk
            Senior Member
            • May 2023
            • 305

            #6
            Why you manually create it? Template already have a item with Memory utilization. Calculation is only made with host not with template.

            Comment

            • userno
              Junior Member
              • Sep 2023
              • 19

              #7
              Originally posted by vijayk
              Why you manually create it? Template already have a item with Memory utilization. Calculation is only made with host not with template.
              Because what i want to calculate doesn´t exist as numeric, only porcentage. The unique solution i found is cloning the items in the host and replace with the host name.

              Comment

              • vijayk
                Senior Member
                • May 2023
                • 305

                #8
                I'm saying that item is already available with the template. Please refer the below screenshot.

                Click image for larger version

Name:	image.png
Views:	245
Size:	36.8 KB
ID:	471466

                Comment

                • userno
                  Junior Member
                  • Sep 2023
                  • 19

                  #9
                  Originally posted by vijayk
                  I'm saying that item is already available with the template. Please refer the below screenshot.

                  Click image for larger version

Name:	image.png
Views:	245
Size:	36.8 KB
ID:	471466
                  Like i said it´s available in porcentage, i want like a numeric.

                  Comment

                  Working...