Monitor Multicharts Not responding status

Studies that have been contributed to the community by other users. If you’ve got something useful to share, that’s great!
faraz
Posts: 144
Joined: 25 Feb 2011
Has thanked: 26 times
Been thanked: 57 times

Monitor Multicharts Not responding status

Postby faraz » 09 May 2014

Hello,

a) Monitor Multicharts with this below batch file code for Not Responding Status.
b) Install free abyss web server and register for free web site monitoring services. This code will KILL abyss web server if MC is not responding and then you will get alert email.
c) Advance users can register for pay package for web site monitoring for minute or seconds intervals with email/sms/phone alerts
d) or you can purchase one time fee for automatic email alert setup from http://www.smtpinfo.com/index.php
e) code tested on windos server 2012 R2 v6.3.9600
f) some time older MC exe files are not closed properly so we get issue so I suggest to use this file to make sure all older session exe files are closed before we start fresh Multicharts for clean performance http://www.multicharts.com/discussion/v ... =5&t=46468
g) find "ping -n 120 127.0.0.1" to set delay for re-check change 120 to any seconds interval you want.
h) you can further add programs to monitor if any is not listed, MC uses many exe files depending on the process running full MC running exe files list is available here http://www.multicharts.com/trading-soft ... _Processes
i) you can also add run VBScript to send alert email by using this linked code or can find from internet as well http://cmanios.wordpress.com/2012/09/12 ... and-gmail/

Hope this helps. Successful trading.

Thanks

Code: Select all

:: Monitor below listed programms with NOT RESPONDING status
:loop

tasklist /FI "IMAGENAME eq MultiCharts.exe" /FI "status eq NOT RESPONDING" 2>&1 |find ":" >nul || goto StartAlert
tasklist /FI "IMAGENAME eq tsServer.exe" /FI "status eq NOT RESPONDING" 2>&1 |find ":" >nul || goto StartAlert
tasklist /FI "IMAGENAME eq MessageCenter.exe" /FI "status eq NOT RESPONDING" 2>&1 |find ":" >nul || goto StartAlert
tasklist /FI "IMAGENAME eq StudyServer.exe" /FI "status eq NOT RESPONDING" 2>&1 |find ":" >nul || goto StartAlert
tasklist /FI "IMAGENAME eq TradingServer.exe" /FI "status eq NOT RESPONDING" 2>&1 |find ":" >nul || goto StartAlert
tasklist /FI "IMAGENAME eq ATCenterServer.exe" /FI "status eq NOT RESPONDING" 2>&1 |find ":" >nul || goto StartAlert
tasklist /FI "IMAGENAME eq ZFServer.exe" /FI "status eq NOT RESPONDING" 2>&1 |find ":" >nul || goto StartAlert
tasklist /FI "IMAGENAME eq ZFServerProxy.exe" /FI "status eq NOT RESPONDING" 2>&1 |find ":" >nul || goto StartAlert
tasklist /FI "IMAGENAME eq abyssws.exe" /FI "status eq NOT RESPONDING" 2>&1 |find ":" >nul || goto StartAlert

:: Add delay for loop
ping -n 120 127.0.0.1
goto loop

::=========================================
:StartAlert
Msg * Start Alert Not Responding program

:: send email alert from dos software http://www.smtpinfo.com/index.php
SMTPMAIL.EXE server=smtp.gmail.com from=smtpinfo.com@gmail.com to=info@smtpinfo.com user=smtpinfo.com@gmail.com password=mysecret ssl license=20140609cbd64732297c4706bd966f7d416bb3de subject="Alert Multicharts Not Responding" body="Alert Multicharts Not Responding"

:: Shut down Abyss web server to generate 3rd party alerts. Using loop to make sure Abyss is exited. It could be possible above email alerts not issued so this is counter plan. If not using Abyss web server then remove this below section. http://www.aprelium.com/
:Abyss
TASKKILL /F /IM abyssws.exe /T
ping -n 5 127.0.0.1
TASKLIST /NH | FIND /I "abyssws.exe"
SET NodLevel=%ERRORLEVEL%
IF %NodLevel%==0 GOTO Abyss


If above code is not working then try this, I tested on windows xp v5.1.2600

Code: Select all

::=========================================
:: Monitor below listed programms with NOT RESPONDING status
:loop
Tasklist /fi "STATUS eq NOT RESPONDING" >c:\NotResponding.txt

:: Find our application in txt file
findstr "MultiCharts.exe" c:\NotResponding.txt
if %errorlevel%==0 goto StartAlert
::========
findstr "tsServer.exe" c:\NotResponding.txt
if %errorlevel%==0 goto StartAlert
::========
findstr "MessageCenter.exe" c:\NotResponding.txt
if %errorlevel%==0 goto StartAlert
::========
findstr "StudyServer.exe" c:\NotResponding.txt
if %errorlevel%==0 goto StartAlert
::========
findstr "TradingServer.exe" c:\NotResponding.txt
if %errorlevel%==0 goto StartAlert
::========
findstr "ATCenterServer.exe" c:\NotResponding.txt
if %errorlevel%==0 goto StartAlert
::========
findstr "ZFServer.exe" c:\NotResponding.txt
if %errorlevel%==0 goto StartAlert
::========
findstr "ZFServerProxy.exe" c:\NotResponding.txt
if %errorlevel%==0 goto StartAlert
::========
findstr "abyssws.exe" c:\NotResponding.txt
if %errorlevel%==0 goto StartAlert
::========

:: Add delay for loop
ping -n 120 127.0.0.1
goto loop

::=========================================
:StartAlert
Msg * Start Alert Not Responding program

:: send email alert from dos software http://www.smtpinfo.com/index.php
SMTPMAIL.EXE server=smtp.gmail.com from=smtpinfo.com@gmail.com to=info@smtpinfo.com user=smtpinfo.com@gmail.com password=mysecret ssl license=20140609cbd64732297c4706bd966f7d416bb3de subject="Alert Multicharts Not Responding" body="Alert Multicharts Not Responding"



:: Shut down Abyss web server to generate 3rd party alerts. Using loop to make sure Abyss is exited. It could be possile above email alerts not issued so this is counter plan.
:Abyss
TASKKILL /F /IM abyssws.exe /T
ping -n 5 127.0.0.1
TASKLIST /NH | FIND /I "abyssws.exe"
SET NodLevel=%ERRORLEVEL%
IF %NodLevel%==0 GOTO Abyss

Return to “User Contributed Studies and Indicator Library”