in my application there is a .bat file that is running. I want to monitor it and i want know when it stops running? is this possible? How i can achieve this?
Article Comments
Thank a lot for the reply. Can you please describe step by step process how to monitor whether exe process is running or not? regular intervals will be ok.
Jul, 2016 - Permalink
Dear Thiwanka
To monitor a process (again, this cannot discern individual bat files, just exe processes) please create a Windows process sensor on a PRTG device for which you already entered its Windows login credentials. The sensor creation dialogue allows you to enter a process name. That corresponds to the exe file name however without the ".exe" suffix.
Jul, 2016 - Permalink
Hi Thiwanka,
As a workaround you can alter the .bat file to create a dummy file when it starts and delete the dummy file when it has finished. Next you can have PRTG check the existence of the dummy file.
Jul, 2016 - Permalink
Dear Thiwanka
As PRTG is no realtime monitor, you can only scan at regular intervals if a process is running or not. PRTG however can only do that for exe processes, not for a bat.
It is not easy to see if a particular bat is running. What actually is running, is the cmd.exe process. But you cannot easily check which bat file it processes.
Jul, 2016 - Permalink