External Rule

trevorwtrevorw
Hi,



I have written a VB script to trawl through the Event logs looking for specific events in a certain time frame without the need to clear or archive the logs. However when I launch it as a enxternal command it fails. If run as a Test settings it simply sits there and does nothing. I have an echo back to screen with a value and entered in the expected result that value but nothing just simply fails.



Were am I going wrong.



Thanks

Comments

  • AdministratorAdministrator
    1/ See help file on creating external rules.



    2/ See forum thread on feature request you posted
  • trevorwtrevorw
    I looked and you need to add some more information on the help file with regards to running VB scripts.



    When you exit the VB script you need to get it to output a value ?



    WSCRIPT.QUIT(value)



    This passes back to the Batch command a value and can be accessed with %errorlevel%



    Batch File Example :--



    echo off

    cd C:Program FilesServersCheck_Monitoringexternal

    cscript check.vbs test //nologo

    echo %errorlevel%



    Ensure NOTHING else is echoed back or it can fail or pass the check.






This discussion has been closed.