Ad Widget

Collapse

Prevent a key from becoming unsupported

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • frater
    Senior Member
    • Oct 2010
    • 340

    #1

    Prevent a key from becoming unsupported

    I'm successfully using the Visual Basic script from this thread: http://www.zabbix.com/forum/showthread.php?t=16456

    I'm now able to get all kind of registry keys.

    I'm having a little problem with this key:

    HKLM\SYSTEM\CurrentControlSet\services\DNS\Paramet ers\Forwarders

    This key will tell me which DNS-forwarders are configured on the Windows DNS-server.
    I like to have a trigger when it changes.....

    It works for the Windows Servers that already have DNS Forwarding turned on, but when no DNS Forwarding is set, the script will return nothing. Which in itself is correct.
    The key Forwarders is then gone.

    The problem is that it will turn the item into unsupported.
    This is something I don't want

    Currently the Item is this:

    reg.info[2, "SYSTEM\CurrentControlSet\services\DNS\Parameters" , 3, "Forwarders"]

    Can I change the item key into some formula in a way that it returns a value in case the returned one is empty?
    Last edited by frater; 27-06-2012, 12:55.
    Zabbix agents on Linux, FreeBSD, Windows, AVM-Fritz!box, DD-WRT and QNAP
Working...