Ad Widget

Collapse

Is it possible to send a "missing data" value for a trapper item?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • michaill
    Junior Member
    • May 2014
    • 18

    #1

    Is it possible to send a "missing data" value for a trapper item?

    I have a trapper item that calculates a statistic (int) about some local resource.
    When the resource is not available, I'd like to send a "missing data" value for the item as an indication that the resource is down. However I cant figure out how to do that. If an empty string is sent, then it shows up in zabbix as an empty string, not missing data.

    Any suggestions are welcome. If anything is unclear, I can elaborate more.
    Mike
  • LenR
    Senior Member
    • Sep 2009
    • 1005

    #2
    Typically, 0 is "service not running", but if 0 is already valid, try -1. I think I did that by accident once, but I don't remember if an int item was disabled or if the sender got a bad return code. You might be able to change the item to float, then test for less than 0 as unavailable.

    Comment

    Working...