Ad Widget

Collapse

Depended item: Value "None" not suitable for float

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rootus
    Junior Member
    • Oct 2007
    • 19

    #1

    Depended item: Value "None" not suitable for float

    I used zbxwmi to get info from a windows workstation. Processor load.
    Sometimes it returns "None" and I get the error : Value "None" of type "string" is not suitable for value type "Numeric (float)"
    Is there a way to handle this.
  • valentins.grins
    Member
    • Nov 2019
    • 38

    #2
    Hello,

    You can try to use the preprocessing to this item. For example if you receive None add the preprocessing step:
    Name: Regular expression
    Parameters: None
    Output: 0
    This will replace your string from "None" to 0

    Comment

    • rootus
      Junior Member
      • Oct 2007
      • 19

      #3
      It also replaces the other value's.

      Comment

      • valentins.grins
        Member
        • Nov 2019
        • 38

        #4
        rootus,

        this is strange as it shall not replace the value if it does not match regex pattern. Can you show your sample received values and what are the results?

        Comment

        Working...