Ad Widget

Collapse

Zabbix 7.2 Setting Dependant Item Value when Parent fails?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Wolfsbane2k
    Member
    • Nov 2022
    • 51

    #1

    Zabbix 7.2 Setting Dependant Item Value when Parent fails?

    Hi All.

    We've got a dashboard with Honeycomb widget that shows the state of a number of boolean type item.values on a single host that are a key performance indicator of the system we're monitoring, and are by design checked every 30 seconds, and we use a throttle with a heartbeat on these values, very similar to that shown in the 11 Honeycomb page for a network switch as shwon below.
    Click image for larger version

Name:	image.png
Views:	244
Size:	60.7 KB
ID:	501983
    We've also got triggers on these items, but currently we can too often loose track the resultant problems in the overall list of problems.

    These item.values are sourced as a child object (dependant) from a data item XML or JSON stream, and we have a number of triggers on this item that reflect the increasing time since we last saw an update, increasing in problem severity.
    However, if the parent item fails to update (error such as timeout), i can't find a way to nullify the values we're got in the host.items dashboard items to show they are out of date. Ideally i'd have the items themselves set to -1 indicating unknown.

    Am i missing a trick here? Is there a way to either mark the whole widget as out of date based on the status of a different item or problem, or overwrite the source items.value based on seeing no-data for them?

    Ta!
    Last edited by Wolfsbane2k; 17-04-2025, 13:31. Reason: Update of draft.
  • Wolfsbane2k
    Member
    • Nov 2022
    • 51

    #2
    Edited - Have just considered using a "Trigger Overview" widget instead, but because the problems are "negatives", the wording doesn't make sense as "not detected" becomes green.. Still, might be a quick workaround.

    Comment

    • kyus
      Senior Member
      • Feb 2024
      • 183

      #3
      I'm not sure if that's what you need, but...
      If you want your items to have the value "-1" when the data collection fails, you can set a preprocessing step "Check for not supported value" with "Custom on fail" "Set value to" "-1"

      Click image for larger version

Name:	image.png
Views:	84
Size:	25.7 KB
ID:	502004

      Comment

      • cyber
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Dec 2006
        • 4841

        #4
        Originally posted by kyus
        I'm not sure if that's what you need, but...
        If you want your items to have the value "-1" when the data collection fails, you can set a preprocessing step "Check for not supported value" with "Custom on fail" "Set value to" "-1"

        Click image for larger version

Name:	image.png
Views:	84
Size:	25.7 KB
ID:	502004
        I think you can do this for master item, but if master fails, then dependent ones are not even populated (thats the main issue for OP)... If you set master value to something when it becomes not supproted, then your dependent preprocessing will also fail... ie no data found on path or something.

        Comment

        • Wolfsbane2k
          Member
          • Nov 2022
          • 51

          #5
          Originally posted by cyber
          @kyrus,

          I think you can do this for master item, but if master fails, then dependent ones are not even populated (thats the main issue for OP)... If you set master value to something when it becomes not supproted, then your dependent preprocessing will also fail... ie no data found on path or something.
          Yep, that's exactly it. I'm investigating setting a custom on fail for the master that meets the dependant's paths but with -1 set for their values, but on things like a timeout that's not triggered either.

          Comment

          Working...