Hi, I'm running a few things on a client PC when it's online, and two are dropbox and teamviewer. What I'm looking to do is make sure they are both always running, and will restart it if the program crashes or is closed by the user. I've set up a sensor with a state trigger to send a notification when the service is off for more than 60 seconds, and I have the notification set to run a .bat file when the state is triggered. Problem is, while the .bat file runs perfectly fine and the program will fully restart when I tested it by clicking on it myself, PRTG seems to be blocking something, because it will start the processes, but it will not fully initialize. The process is running - which sends an OK message back to the sensor - but the process itself will not function: no notification, no online status, no sync/remote access available, nothing to indicate it's running at all except for a (smaller than normal) memory footprint and the process listing in the task manager.

What is PRTG doing with these .bat files to prevent them from running correctly? I even tried just making a bat file to call another command window with the start command I needed, but that didn't work either. I've tried 5 or 6 different ways to call these programs but none of them work when PRTG is the trigger - they only work when I physically click the batch file or run it as a scheduled task in windows. Is there a way to do this using PRTG?


Article Comments

Often times this is the cause of one of two issues.

1. The PRTG service that will be executing the batch file doesn't have the right to execute the commands in the batch file

2. The batch file running windowlessly is an issue for the commands being run.

You can try and get around the first one by changing the credentials that are used for the PRTG Server service and see if PRTG is able to execute the command then but the second issue is tough to work around if it's possible at all.


Sep, 2014 - Permalink

Hi. The administrator rights isn't required to start the programs, so it most likely isn't 1. I understand the second might be difficult to work around, but would you have any idea where I might be able to begin? As it is I've never had to deal with a program that runs the batch files windowlessly before, so I wouldn't even know where to start.


Sep, 2014 - Permalink

I can try and test this out and will let you know what I find. Have you tried to change the security context of the core service just as a test to see if they will restart properly?


Sep, 2014 - Permalink

Another thing to consider is that PRTG runs as a service and cannot launch applications that interact with the desktop.

You might want to have a look at PTF.Launcher to overcome this limitation.


Sep, 2014 - Permalink

I'm not sure I follow you completely. I am sort of new to using this kind of monitoring software. What exactly are you referring to?


Sep, 2014 - Permalink

PRTG Tools Family is talking about an EXE that he has programmed that you can use with an EXE notification to launch applications with notifications. The issue is that PRTG cannot launch applications that interact with the desktop since the PRTG Server.exe runs as a service. If you download and place the exe from his link above in your PRTG program data folder then you can set up a notification to use that EXE to launch the applications you asked about in the first thread.


Sep, 2014 - Permalink

Oh I see. I did download and try it but the trial apparently doesn't work autonomously. PRTG Tools Family, is this the same once I pay for the service? If so, it's not what I need, as I would still need to be accessible in order to fix the situation.


Sep, 2014 - Permalink

Yes, the acknowledgment window only pops up in the trial version and the full version will work autonomously.


Sep, 2014 - Permalink