Ad Widget

Collapse

zabbix regular expression to catch wrong data return

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cristifalcas
    Junior Member
    • Apr 2013
    • 5

    #1

    zabbix regular expression to catch wrong data return

    I have an item of type float, but sometimes a string is received in case of error instead of a number. How can I make a trigger regexp to fire in this case?

    I have no idea now to check for "wrong data type".

    Actually this is by design and what I'm trying to do is this: if the data gathering fails, I send the error message in order to see it on zabbix end.

    I tried with nodata(time), but this doesn't seem to work
  • herta
    Senior Member
    • Sep 2011
    • 101

    #2
    Suggestion: why don't you send the error to separate item? If no error, then error-item is blank. Trigger if error-item is not blank.

    That way, if you look at the history of your floating point item in a graph, you don't get funny results.

    Comment

    • cristifalcas
      Junior Member
      • Apr 2013
      • 5

      #3
      eventually I did just that

      Thank you for your answer

      Comment

      Working...