manual

GFI Network Server Monitor Writing your own monitoring functions 174
All variables must be 'dimmed', except EXPLANATION.
EXPLANATION is a GFI Network Server Monitor system variable
automatically dimmed by the GFI Network Server Monitor service.
The function must be written according to the following template:
Const retvalUnknown = 1
Function Function_i( var1, var2, ..., varn )
If ( Not Pre-condition ) Then
EXPLANATION = "Unable to determine..."
Function_i = retvalUnknown
Else
If( condition ) Then
EXPLANATION = "Yes it is true because ..."
Function_i = True
Else
EXPLANATION = "No it’s not true because ..."
Function_i = False
End If
End If
End Function
where Function_i is an arbitrary name for the function.
You can save this function in either one of the standard VBS files (i.e.
ads.vbs, exchange.vbs, hardware.vbs, os.vbs or sample.vbs), or in a
new VBScript file. In case of a new file ensure that your VBS file is
accessible via the GFI Network Server Monitor Share.
Adding a monitor function written in VBscript
After you have written a monitor function in VBscript, you must add it
in the Network Server Monitor Manager as a check. To do this:
1. Right Click on ‘Monitoring Checks Configuration’ and go on New >
Monitoring Check.