Ad Widget

Collapse

Error in calculated check item.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mudit.gupta
    Member
    • Aug 2016
    • 39

    #1

    Error in calculated check item.

    Hello All

    I have created an item using calculated check but I am getting below error :

    Item configuration :::

    Name : % free on root
    Type : Calculated
    Key : free.root
    Formula : 100*last("vfs.fs.size[/,free]",0)/last("vfs.fs.size[/,total]",0)
    Type of information : Numeric float
    Units : %

    This item status shows Error :: Cannot evaluate function "last(0)": item "Ubuntu-Client 10.0.4.32:vfs.fs.size[/,free]" does not exist.

    May I get some help ?

    Thanks
    Mudit Gupta
  • Semiadmin
    Senior Member
    • Oct 2014
    • 1625

    #2
    IMHO, there is extra "0" in your formula. The right one:

    100*last("vfs.fs.size[/,free]")/last("vfs.fs.size[/,total]")

    But... may be just use vfs.fs.size[/,pfree] ?

    Comment

    • mudit.gupta
      Member
      • Aug 2016
      • 39

      #3
      Hello Semiadmin

      I have removed extra "0" and used ::

      100*last("vfs.fs.size[/,free]")/last("vfs.fs.size[/,total]")

      but same Error :: Cannot evaluate function "last(0)": item "Ubuntu-Client 10.0.4.32:vfs.fs.size[/,free]" does not exist.

      Tried also :: 100*last("vfs.fs.size[/,pfree]") / last("vfs.fs.size[/,pfree]")

      Error :: Cannot evaluate function "last()": item "Ubuntu-Client 10.0.4.32:vfs.fs.size[/,pfree]" does not exist.

      Please help me , any one .

      Thanks
      Mudit

      Comment

      • mudit.gupta
        Member
        • Aug 2016
        • 39

        #4
        Dear All

        Please help me on below mentioned issue.


        Thanks
        Mudit

        Comment

        • mudit.gupta
          Member
          • Aug 2016
          • 39

          #5
          Error in calculated check item.

          Dear all members ,

          Hope you all are fine.

          I am facing issue with calculated check , can you please help me in this ?

          Thanks
          Mudit

          Comment

          • glebs.ivanovskis
            Senior Member
            • Jul 2015
            • 237

            #6
            Error message says it all:
            Cannot evaluate function "last(0)": item "Ubuntu-Client 10.0.4.32:vfs.fs.size[/,free]" does not exist.
            Items you use in calculated item formula must exist!

            Comment

            • mudit.gupta
              Member
              • Aug 2016
              • 39

              #7
              Error in calculated check item.

              Dear glebs.ivanovskis

              Can you please explain it more "Items you use in calculated item formula must exist!" ?

              Thanks
              Mudit

              Comment

              • glebs.ivanovskis
                Senior Member
                • Jul 2015
                • 237

                #8
                Which part of it don't you understand?

                In your case you need to have item "vfs.fs.size[/,free]" on host "Ubuntu-Client 10.0.4.32".

                Comment

                • mudit.gupta
                  Member
                  • Aug 2016
                  • 39

                  #9
                  Error in calculated check item.

                  Dear glebs.ivanovskis

                  I have created an item but still same error , please have a look at the attachment and suggest me, if anything is wrong .

                  Thanks
                  Mudit
                  Attached Files

                  Comment

                  • dimir
                    Zabbix developer
                    • Apr 2011
                    • 1080

                    #10
                    "Calculated" item works on an existing other item:
                    • I have item A
                    • I create Calculated item B, that uses item A


                    In your case item A is "vfs.fs.size[/,free]" and it is missing.

                    More information can be found here.

                    Comment

                    • kloczek
                      Senior Member
                      • Jun 2006
                      • 1771

                      #11
                      BTW using this calculated item is completely pointless as long as zabbix agent on side of vfs.fs.size[/,free] provides vfs.fs.size[/,pfree] which returns in % free space.

                      http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
                      https://kloczek.wordpress.com/
                      zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
                      My zabbix templates https://github.com/kloczek/zabbix-templates

                      Comment

                      Working...