GFI Network Server Monitor, 250-499 IP, 3 Years SMA Manual Pagina 180

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 186
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 179
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.
Vista de pagina 179

Comentarios a estos manuales

Sin comentarios