Ad Widget

Collapse

nodata() on unsupported items

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Calimero
    Senior Member
    • Nov 2006
    • 481

    #1

    nodata() on unsupported items

    Hi,

    We have (userparameter) items that can go "unsupported" because custom scripts return error messages instead of the expected integer value ("Blah blah failed to connect to database" instead of the expected value).

    As items are then considered "unsupported" zabbix_server won't evaluate the .nodata() function on them (looks like it won't evaluate anything at all). Detecting such problems is hence a bit more complicated.

    What's the rationale behind excluding unsupported items from nodata evaluation (looks like the "filtering" occurs in src/zabbix_server/timer/timer.c with the query only fetching functions working on Active items) ? Avoiding too many false positives ?

    On the other hand one may argue that we should harden our scripts so that they catch any error and always return the right type of info. But that's not always as easy as it seems. Plus you would need to define what value means "error / failure" which is not always possible especially with "counter" items.

    Any thoughts on this ?
  • bbrendon
    Senior Member
    • Sep 2005
    • 870

    #2
    I've had this issue and had to (like you said) "harden" the scripts.
    Unofficial Zabbix Expert
    Blog, Corporate Site

    Comment

    • Calimero
      Senior Member
      • Nov 2006
      • 481

      #3
      Originally posted by bbrendon
      I've had this issue and had to (like you said) "harden" the scripts.
      Yes. So far I see no other option apart from patching zabbix_server.

      But I don't like the idea of patching zabbix_server as I doubt my customer will be able to maintain a patch in the long run. (though it looks like a small change to a single SQL query).

      Comment

      Working...