Hello Experts,
I am stuck in a weird situation, Actually I am trying to configure PRTG's EXE/XML Advance sensor that runs a powershell script what my scripts does is that it takes values of a system and stops for a period lets say 5 minutes and again takes values, compare them and displays the result back to PRTG in XML notation. I have set the scanning interval of prtg 5 min. Can any body tell me how the sensor will going to behave.
Article Comments
Thomas is correct.
You shouldn't have your script "waiting" for 5 minutes, you may as well write the readings to disk (to any temporary location) and then read it again on the next scanning interval to measure any difference between the current and previous readings and provide PRTG with a quick result.
This article may provide some useful information:
My Powershell scripts takes more than 900 seconds to run and always timeouts, how to get it to work?
Sep, 2015 - Permalink
Hi Frank
It seems that the script is still running and PRTG wants to execute it again, because the script needs longer then 5 minutes to execute, but the PRTG interval is set to 5 minutes. You also have to configure the timeout (which needs to be bigger then 5 minutes in your case). If the timeout is reached it will kill the process (according to PRTG manual).
regards Thomas
Sep, 2015 - Permalink