External checks

UrbanUrban
I'm using a 5.8.x Enterprise version of ServersCheck.



My problem is an external check with a batch file. It only echos one character "1" (expected value).

If i test the rule during setup, it replies OK. It should test the value "1" every minute with no retry.



After the first minute the Monitor show 2 check with 1 down.

After the second minute it shows 4 check with 2 down (and so on).




Comments

  • AdministratorAdministrator
    What is contained in your main log file (logging subdirectory). Every check is stored there
  • UrbanUrban
    all checks of the external rule say "Status:DOWN - Attempts: 0 of 0 -

    " in logging file.



    I created another check on the same batch file but with 2 minutes intervall. That one works fine ?!?



    My main intention is to check entries in an outlook mailbox with a vbs script. I did redierct the output of that vbs file in a text file, but only if i test the rule manually, it contains my character "1". In normal operation this output file is empty.



    Is ther any timeout on external checks ?


  • AdministratorAdministrator
    Are you sure that the each label for each rule is different and unique?



    An extract of the log file would be helpful
  • UrbanUrban
    Yes, each label of each rule is unique.



    Here an extrakt of my log file:

    #########################

    Wed Mar 2 12:34:45 2005 - EXTERNAL CHECK> TEST1 Status:DOWN - Attempts: 0 of 0 -

    Wed Mar 2 12:35:13 2005 - URL CHECK> CTI_URL_DLF Status:OK - Previous:OK - HTTP Code:200 - HTML Download Time:285 sec

    Wed Mar 2 12:35:16 2005 - URL CHECK> CTI_URL_MCH Status:OK - Previous:OK - HTTP Code:200 - HTML Download Time:1433 sec

    Wed Mar 2 12:35:26 2005 - DRIVE CHECK> DRIVESPACE_INVOICE Status:OK - Previous:OK - Free Drive Space: %

    Wed Mar 2 12:35:33 2005 - DRIVE CHECK> DRIVESPACE_WISSEN Status:OK - Previous:OK - Free Drive Space:1406 8 %

    Wed Mar 2 12:35:53 2005 - EVENTLOG CHECK> EVENTLOG_INVOICE Status:DOWN?

    Wed Mar 2 12:35:53 2005 - PING CHECK> INVOICE_PING Status:OK - Previous:OK - Average RTT:0

    Wed Mar 2 12:35:54 2005 - ODBC CHECK> ODBC_INVOICE Status:OK

    Wed Mar 2 12:35:56 2005 - EXTERNAL CHECK> TEST2 Status:OK

    Wed Mar 2 12:35:59 2005 - URL CHECK> URL_INVOICE Status:OK - Previous:OK - HTTP Code:200 - HTML Download Time:1382 sec

    Wed Mar 2 12:36:22 2005 - ODBC CHECK> ODBC_PERLEINFO Status:OK

    Wed Mar 2 12:36:22 2005 - TCP CHECK> PERLE_PCS_IST Status:OK

    Wed Mar 2 12:36:23 2005 - TCP CHECK> PERLE_PCS_MCH Status:OK

    Wed Mar 2 12:36:23 2005 - TCP CHECK> PERLE_PCS_PDB Status:OK

    Wed Mar 2 12:36:27 2005 - PINGAVG CHECK> PINGAVG Status:OK - Previous:OK - Average RTT:137

    Wed Mar 2 12:36:49 2005 - EXTERNAL CHECK> TEST1 Status:DOWN - Attempts: 0 of 0 -

    Wed Mar 2 12:36:50 2005 - TCP CHECK> WINSET_TCP Status:OK

    Wed Mar 2 12:38:01 2005 - EXTERNAL CHECK> TEST2 Status:OK

    Wed Mar 2 12:38:36 2005 - DRIVE CHECK> DRIVESPACE_UYM140_E Status:DOWN? - Previous:DOWN - Free Drive Space:106 0 %

    Wed Mar 2 12:38:50 2005 - EXTERNAL CHECK> TEST1 Status:DOWN - Attempts: 0 of 0 -

    Wed Mar 2 12:39:14 2005 - PING CHECK> INVOICE_PING Status:OK - Previous:OK - Average RTT:0

    Wed Mar 2 12:39:14 2005 - ODBC CHECK> ODBC_INVOICE Status:OK

    Wed Mar 2 12:39:16 2005 - URL CHECK> URL_INVOICE Status:OK - Previous:OK - HTTP Code:200 - HTML Download Time:362 sec

    Wed Mar 2 12:39:45 2005 - DRIVE CHECK> DRIVESPACE_UM140_D Status:OK - Previous:OK - Free Drive Space:2096 9 %

    Wed Mar 2 12:40:04 2005 - EXTERNAL CHECK> TEST2 Status:OK

    Wed Mar 2 12:40:04 2005 - TCP CHECK> TRENDMICRO_WISSEN Status:OK

    Wed Mar 2 12:40:52 2005 - EXTERNAL CHECK> TEST1 Status:DOWN - Attempts: 0 of 0 -

    Wed Mar 2 12:41:40 2005 - ODBC CHECK> ODBC_PERLEINFO Status:OK

    Wed Mar 2 12:41:40 2005 - TCP CHECK> PERLE_PCS_IST Status:OK

    Wed Mar 2 12:41:41 2005 - TCP CHECK> PERLE_PCS_MCH Status:OK

    Wed Mar 2 12:41:41 2005 - TCP CHECK> PERLE_PCS_PDB Status:OK

    Wed Mar 2 12:41:43 2005 - PINGAVG CHECK> PINGAVG Status:OK - Previous:OK - Average RTT:147

    Wed Mar 2 12:42:06 2005 - EXTERNAL CHECK> TEST2 Status:OK

    Wed Mar 2 12:42:06 2005 - TCP CHECK> WINSET_TCP Status:OK

    Wed Mar 2 12:42:31 2005 - PING CHECK> INVOICE_PING Status:OK - Previous:OK - Average RTT:0

    Wed Mar 2 12:42:31 2005 - ODBC CHECK> ODBC_INVOICE Status:OK

    Wed Mar 2 12:42:33 2005 - URL CHECK> URL_INVOICE Status:OK - Previous:OK - HTTP Code:200 - HTML Download Time:775 sec

    Wed Mar 2 12:42:56 2005 - EXTERNAL CHECK> TEST1 Status:DOWN - Attempts: 0 of 0 -

    Wed Mar 2 12:44:06 2005 - EXTERNAL CHECK> TEST2 Status:OK

    Wed Mar 2 12:45:00 2005 - EXTERNAL CHECK> TEST1 Status:DOWN - Attempts: 0 of 0 -

    Wed Mar 2 12:45:24 2005 - URL CHECK> CTI_URL_MCH Status:OK - Previous:OK - HTTP Code:200 - HTML Download Time:702 sec

    Wed Mar 2 12:45:49 2005 - ODBC CHECK> ODBC_INVOICE Status:OK

    Wed Mar 2 12:47:01 2005 - TCP CHECK> PERLE_PCS_IST Status:OK

    Wed Mar 2 12:47:01 2005 - TCP CHECK> PERLE_PCS_PDB Status:OK

    Wed Mar 2 12:47:04 2005 - EXTERNAL CHECK> TEST1 Status:DOWN - Attempts: 0 of 0 -

    Wed Mar 2 12:47:27 2005 - TCP CHECK> WINSET_TCP Status:OK

    Wed Mar 2 12:48:15 2005 - EXTERNAL CHECK> TEST2 Status:OK

    Wed Mar 2 12:49:02 2005 - ODBC CHECK> ODBC_INVOICE Status:OK

    Wed Mar 2 12:49:06 2005 - URL CHECK> URL_INVOICE Status:OK - Previous:OK - HTTP Code:200 - HTML Download Time:2440 sec

    Wed Mar 2 12:50:39 2005 - EXTERNAL CHECK> TEST2 Status:OK

    Wed Mar 2 12:51:03 2005 - EXTERNAL CHECK> TEST1 Status:DOWN - Attempts: 0 of 0 -

    Wed Mar 2 12:52:13 2005 - ODBC CHECK> ODBC_INVOICE Status:OK

    Wed Mar 2 12:52:14 2005 - TCP CHECK> PERLE_PCS_IST Status:OK

    Wed Mar 2 12:52:14 2005 - TCP CHECK> PERLE_PCS_MCH Status:OK

    Wed Mar 2 12:52:18 2005 - PINGAVG CHECK> PINGAVG Status:OK - Previous:OK - Average RTT:141

    Wed Mar 2 12:52:39 2005 - EXTERNAL CHECK> TEST2 Status:OK

    Wed Mar 2 12:53:04 2005 - EXTERNAL CHECK> TEST1 Status:DOWN - Attempts: 0 of 0 -

    Wed Mar 2 12:55:01 2005 - EXTERNAL CHECK> TEST2 Status:OK

    ##################################
  • UrbanUrban
    Now i'm able to point on my problem.



    It seems to be not possible to access Active-X objects out of an external rule.



    my VBS-script returns the error : ActiveX component can't create object, if its started by ServersCheck



    The ServersCheck service runs on an domain account that is member of lokal administrators. If i logon using this account, and start the script manually it works fine.



    Any hints ?
  • AdministratorAdministrator
    Your batch file does it include a line like following?



    cd whateverdirectory

    cscript myscript.vbs
  • UrbanUrban
    no, the vbs is in the subfolder "external"


  • AdministratorAdministrator
    I am confused... do you use a batch file or not?
  • UrbanUrban
    i do use a batch file (also in external) because serverscheck dont accept parameters for an external comand.



    the batch only launches the vbs with the required parameters.


  • AdministratorAdministrator
    yes but does the batch file first perform a CD command to go to the directory in which the script and all related files are located? You need to do this first in your batch file.
This discussion has been closed.