All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
hi there,
i am new and first of all i want to say that this is a great program for monitoring. I use to have Alchemy Eye pro dus they DO NOT have any active/passive way to monitor the remote systems.
i have a small question.
Is there a quick way (test method) to see if there is a special registry key that has a specific value ?
example :
i want to see if the WINDOWS XP firewall is ACTIVE...not the service but the config.
The correct way is to see if the registry key (EnableFirewall) has the value of : 00000001
see the complete string below
I would recommend you to use "Active Script" test method: http://www.ks-soft.net/hostmon.eng/mfra ... htm#script
Example of the script that reads from registry is included into HostMonitor package. You may find regread.js and regread.vbs in \Examples\Scripts subfolder of HostMonitor folder.
Regards,
Max
Last edited by KS-Soft Europe on Tue Nov 18, 2008 6:41 am, edited 1 time in total.
FUNCTION performtest()
Dim WshShell, KeyStr
IF "%Reply%"="%"+"Reply"+"%" THEN
performtest = statusUnknown+"Please enable 'Translate macros' option"
ELSE
Set WshShell = CreateObject("WScript.Shell")
KeyStr = WshShell.RegRead(FWon)
IF (KeyStr<>"%Reply%") THEN
performtest = statusBad+KeyStr
ELSE
performtest = statusOk+KeyStr
END IF
END IF
END FUNCTION
FUNCTION performtest()
Dim WshShell, KeyStr
Set WshShell = CreateObject("WScript.Shell")
KeyStr = WshShell.RegRead(FWon)
IF (KeyStr<>1) THEN
performtest = statusBad+CStr(KeyStr)
ELSE
performtest = statusOk+CStr(KeyStr)
END IF
END FUNCTION