Ad Widget

Collapse

Nodata / Registry

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • auqanicke
    Junior Member
    • Apr 2025
    • 4

    #1

    Nodata / Registry

    Hello everyone,

    Greetings to you all!

    I have a question regarding a trigger that reacts to a registry value. I'm reading the following registry value via an ITEM:
    "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows \Cur rentVersion\Policies\System", "inactivitytimeoutsecs"

    If the value is configured, it is correctly read and my trigger is fired. The trigger looks like this:
    max([Name of the Trigger], 15m) > 0

    To resolve the "error", the registry key is deleted on the target system. The item then shows the following under Latest Data (which makes sense):
    "The system cannot find the file specified"

    Unfortunately, the recovery expression doesn't work. It looks like this:
    nodata([Name of the Trigger], 900) = 1

    Am I missing something here, or is there a more elegant solution?

    I’ve already posted this in the German forum, but I think it might get more reach here.

    Best regards,
    Benni
  • Answer selected by auqanicke at 08-04-2025, 13:36.
    cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    How do you check for value and do you set any value, if nothing is found...? You can have preprocessing for "check for not supported value"... and then set your item to specific value...
    Again... recovey expression is considered only after your original expression is calculated to false. If your trigger never gets to that, you can write whatever in recovery, it will not be considered.. I have a feeling your item turns to "not supported" when there is no registry key? Or.... ?? If item is "not supported" your trigger will be "unknown" (which is not "false")... and recovery never kicks in...
    I would not use recovery at all... just use that nodata() in same expression ... "max(item,15m)>0 and nodata(item, 15m)=0", that means, you have some data during last 15m and max value there is over 0.

    Comment

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

      #2
      How do you check for value and do you set any value, if nothing is found...? You can have preprocessing for "check for not supported value"... and then set your item to specific value...
      Again... recovey expression is considered only after your original expression is calculated to false. If your trigger never gets to that, you can write whatever in recovery, it will not be considered.. I have a feeling your item turns to "not supported" when there is no registry key? Or.... ?? If item is "not supported" your trigger will be "unknown" (which is not "false")... and recovery never kicks in...
      I would not use recovery at all... just use that nodata() in same expression ... "max(item,15m)>0 and nodata(item, 15m)=0", that means, you have some data during last 15m and max value there is over 0.

      Comment

      • auqanicke
        Junior Member
        • Apr 2025
        • 4

        #3
        Hi Cyber, thank you so much! That was the solution. Great help

        Comment

        Working...