Ad Widget

Collapse

External check return (no) value

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Pedro.Almeida
    Junior Member
    • Sep 2014
    • 22

    #1

    External check return (no) value

    Hi there,

    I create a set of external checks that are supposed to return numeric data.

    Everything works fine until I want to (under certain conditions) do return no data.

    What am I supposed to return in order for Zabbix not to stop executing the checks at all by marking the items as not supported?

    I tried to return an empty value but that just gives me an improper value.
    I can always return 0, but... I'd rather have an empty graph when no data was available.

    Or... should I return an exit code different from 0 to make it consider as "no data available" and not entering the "not supported state" ?
  • Linwood
    Senior Member
    • Dec 2013
    • 398

    #2
    Did you ever find an answer to this?

    What I'm trying (and it's not exactly graceful) is just sleeping for 30 seconds (my timeout) so that the item goes unsupported.

    That's all kind of a bad way to do it.

    For some things I converted to zabbix trapper items, since those return data asynchronously, and so can simply not return data. But to do that for all items means building your own polling loop which is painful.

    Found this, and hoping you found a better way?

    Comment

    Working...