GFI Network Server Monitor, Add, 100-249IP, 1Y, ENG Manuál Strana 176

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 183
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 175
166| Writing your own monitoring functions Manual
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.
14.3 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.
Screenshot 160 - VBscript check parameters dialog
2. Select „Generic VB Script‟ and specify the following parameters:
» Script location Specify the path to the VBScript file which will be used. The script
should contain the function specified in the Function name field and should return True (-
1) in case of success, or False (0) in case of an error;
Zobrazit stránku 175

Komentáře k této Příručce

Žádné komentáře