Execute an application

jacobsenmjacobsenm
Hi



I am trying to fire an application when a rule is going to DOWN.



I have created the following in a rule for Application Path:

C:Program FilesServersCheck_MonitoringexternalEUEDEFP01-PLSVR.BAT



When the application is fired I see the following in the file "execute.conf" in folder "C:Program FilesServersCheck_Monitoringalerts"





details of the file are below

[execute.conf]

App=C:Program FilesServersCheck_MonitoringexternalEUEDEFP01-PLSVR.BAT





This looks good !

However, the application does not run.



The contents of EUEDEFP01-PLSVR.BAT is this:

cd C:Program FilesServersCheck_Monitoringexternal

psexec.exe euedefp01 -u domainusername -p password d:appsbexBEX_RESTART.CMD





psexec.exe resides in the folder C:Program FilesServersCheck_Monitoringexternal

and c:windowssystem32





When I run the application manually it goes well ....

And the ServersCheck service is running as a Domain administrative user.

Any ideas how I can fix or trouble shoot this ?



Thank you










Comments

  • AdministratorAdministrator
    Try running in debug mode (see kb.serverscheck.com) and then look at what it is doing.



    First try running the webserver in debug mode and hit test settings



    If that works, then have the monitoring service run in debug mode and see if it works.





    When looking at your scrip it saw the space in cd C:Program FilesServersCheck_Monitoringexternal



    Did you test the batch file?
  • jacobsenmjacobsenm
    The issue is resolved.

    I have tested with another batchfile that in my case copied one file on another file (for testing)

    That went ok.



    My problem was to restart a couple of services on a remote computer, that did not work with psexec.exe.

    After some changes in the "BEX_RESTART.CMD

    ", it does work with ServersCheck



    Thank you for the assist.
This discussion has been closed.