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?
Add comment