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?
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?