manual

GFI Network Server Monitor Writing your own monitoring functions 176
upon execution of the function or directly specified as a string (e.g.
“JasonM”)
NOTE 1: Enclose string parameter values within quotes (e.g. “CPU0”).
NOTE 2: You can make changes to the selected script by clicking on
the ‘Edit script …’ button.
WMI (Windows Management Instrumentation)
If you plan to write monitor functions based on WMI (Windows
Management Instrumentation), be sure you have WMI installed on the
GFI Network Server Monitor server and on the target computer/server
that you want to monitor.
WMI is by default included as part of the Windows 2000/2003
operating system only. For NT4 systems download the file (for free)
from the Microsoft website;
GFI has collected more than a hundred WMI samples. You can use
these samples as a base for new monitor functions that you write
yourself. You can find them on the GFI website.
ADSI (Active Directory Service Interfaces)
GFI Network Server Monitor can check several Directory Services
including Active Directory, and NTDS (NT4 SAM database) directory
services.
You can program GFI Network Server Monitor to check user accounts
(locked out, disabled, etc.), computer accounts, groups, group
membership, organizational units, and so on.
If you plan to write monitor functions based on ADSI (Active Directory
Service Interfaces), be sure you have ADSI installed on the GFI
Network Server Monitor server and on the server that you want to
monitor. ADSI allows you to access Windows 2000/2003 Active
Directory, but also NT4 User information from the SAM database, and
other User Databases. ADSI is part of the Windows 2000 operating
system; and it’s not part of NT4. For NT4, please download the file
from the Microsoft website; ADSI is available for free.
GFI includes a sample script that uses ADSI, called ads.vbs. In
addition, GFI provides some sample ADSI scripts on the website. You
can use these samples as a base for new monitor functions that use
ADSI.