External executable task to see if xStarter is running?

General questions about xStarter, how to create tasks, etc.
Heyitsrick
Posts: 10
Joined: Mon Jan 18, 2010 6:16 pm

External executable task to see if xStarter is running?

Postby Heyitsrick » Sat Aug 14, 2010 4:33 pm

Not often, but every once in awhile we find that xStarter itself has crashed, and of course none of the tasks run. Headaches ensue! Is there a way to create a compiled executable task that can be run on a different server to check to see that xStarter is, in fact, running? This external task would check every few minutes to make sure that xStarter is running, and would send out an administrative alert if detected that xStarter was no longer running on its server.

I don't want xStarter to have to send out a million "Hey, I'm running!" messages. I'd rather have something outside on another server check on it and just alert me if/when xStarter stops working. Heck, it might be nice if this task could also automatically restart xStarter, too, if it found it had crashed.

Thanks.

Heyitsrick
Posts: 10
Joined: Mon Jan 18, 2010 6:16 pm

Re: External executable task to see if xStarter is running?

Postby Heyitsrick » Tue Aug 17, 2010 5:41 pm

Nothing, eh? Ok, how about this? Is it possible to use the "LaunchedProcessCount" task remotely (in a compiled executable)? Seems like that's the xStarter task that would check to see if an app is running, but it looks like it's designed to only look at the pc xStarter is running on. I would want to use this to:

Access the remote server xStarter is installed on
Check to see if xStarter.exe is running (using LaunchedProcessCount)
IF not running, send out an admin email which I can have automatically forwarded to SMS recipients

Make sense? Doable?

User avatar
Alex
Site Admin
Posts: 341
Joined: Mon May 21, 2007 4:09 pm
Contact:

Re: External executable task to see if xStarter is running?

Postby Alex » Thu Aug 19, 2010 12:59 am

Hello,

You can try to install xStarter in an addtional folder, this copy will able to work simultaneous with main xStarter. In the main xStarter prepare task what will start this addtional copy at start. So, each one of this xStarter's can chech is another xStarter working or not and if it need - run again.

Heyitsrick
Posts: 10
Joined: Mon Jan 18, 2010 6:16 pm

Re: External executable task to see if xStarter is running?

Postby Heyitsrick » Thu Aug 19, 2010 12:12 pm

Hi Alex,

Thanks for the response. I was thinking about something like you suggested, too, but I was thinking of just running a compiled executable instead of the full program.

I'm assuming that in order for this 'xStarter checks xStarter" routine to work, I'd have to employ the "Use Full Path" option to point the second copy of xStarter to check to see if the main xStarter is running, correct? Otherwise, it would simply see that a process called xstarter.exe was running, and that could, in fact, be itself (i.e. the second copy).

Would there be any problem renaming the xStarter executable on the second copy of the program to something like "xstarter2.exe" so it shows up differently in the process list?

This is an important task, because we have a lot of automation running via xStarter, and if the program itself crashes/exits without our knowledge, it can be a real pain to fix the mess of work left undone.

User avatar
Alex
Site Admin
Posts: 341
Joined: Mon May 21, 2007 4:09 pm
Contact:

Re: External executable task to see if xStarter is running?

Postby Alex » Fri Aug 20, 2010 2:12 am

No, it's not possible to rename xstarter.exe to xstarter2.exe, it have use processname somethere inside the program. But you can use full path to check process.

fauzdar1990
Posts: 4
Joined: Mon May 30, 2011 9:10 pm

Re: External executable task to see if xStarter is running?

Postby fauzdar1990 » Wed Feb 29, 2012 3:18 am

I am using a registered version of Xsatrter 1.9 and when i am trying to Sync Local folder with FTP Folder then this is showing an error and that is

Exception: Invalid argument to date encode
------------------------------------------------------------------------------------
|Address |Module |Unit |Class |Procedure/Method |Line |
------------------------------------------------------------------------------------
|007624C6|xStartUI.exe|FtpSend.pas |TFTPList |FillRecord |1758[69] |
|007629A6|xStartUI.exe|FtpSend.pas |TFTPList |ParseLines |1850[23] |
|0075FBAB|xStartUI.exe|FtpSend.pas |TFTPSend |List |1015[20] |
|00B4B39C|xStartUI.exe|FTPSyncComp.pas |TFtpFilesTree|ScanFtpDir |704[59] |
|00B4B154|xStartUI.exe|FTPSyncComp.pas |TFtpFilesTree|ScanFtpDir |645[0] |
|00B4B6E1|xStartUI.exe|FTPSyncComp.pas |TFtpFilesTree|ScanTree |800[16] |
|00B4B64C|xStartUI.exe|FTPSyncComp.pas |TFtpFilesTree|ScanTree |784[0] |
|00B4D817|xStartUI.exe|FTPSyncComp.pas |TFTPSyncComp |StartSync |1560[99] |
|00530C6A|xStartUI.exe|x86.inc | |RealCall_Register |113[16] |
|00530C48|xStartUI.exe|x86.inc | |RealCall_Register |97[0] |
|00531B45|xStartUI.exe|x86.inc |TPSExec |InnerfuseCall |540[47] |
|0053335D|xStartUI.exe|x86.inc |TPSExec |InnerfuseCall |709[216] |
|005315E0|xStartUI.exe|x86.inc |TPSExec |InnerfuseCall |493[0] |
|0053392F|xStartUI.exe|uPSRuntime.pas | |ClassCallProcMethod|9442[39] |
|008B17FC|xStartUI.exe|uPSDebugger.pas |TPSDebugExec |RunLine |558[37] |
|0052C5B8|xStartUI.exe|uPSRuntime.pas |TPSExec |RunScript |7427[270]|
|0052BB54|xStartUI.exe|uPSRuntime.pas |TPSExec |RunScript |7157[0] |
|008B5C57|xStartUI.exe|uPSComponent.pas|TPSScript |Execute |681[8] |
|00B5BBEC|xStartUI.exe|TaskThread.pas |TTaskCompiler|Execute |508[12] |
|00B5BB84|xStartUI.exe|TaskThread.pas |TTaskCompiler|Execute |496[0] |
|00B5C65A|xStartUI.exe|TaskThread.pas |TTaskThread |Execute |707[28] |
------------------------------------------------------------------------------------



Please Help

Awgeewhiz
Posts: 21
Joined: Tue Nov 29, 2011 8:13 pm

Re: External executable task to see if xStarter is running?

Postby Awgeewhiz » Wed Feb 29, 2012 2:47 pm

Why not just Settings / Control Panel / Administrative Tools / Services then click on
xStarter then goto Recovery Tab. There you can have the xStarter Service restart on
failures. Set reset fail count after 1 day.


Return to “Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest