Hi All,

I wonder if any of you can share from their experience with a situation similar to the following:

We have a windows server with PRTG network monitor, which monitors mostly windows servers. We are currently using "advanced exe" sensors to run windows .bat files that use PsExec64 to access the monitored servers. I am not very happy with this solution and would like to switch to python sensors.

The problem is that I tried using several methods for accessing the severs directly from python but each has its own problems. So again, I wonder if anyone has a similar setup and can share from their experience.

Many thanks,

Oren


Article Comments

Would it be possible to have the target hosts run scripts periodically and instead push the data to PRTG?


Oct, 2019 - Permalink

Stephan,

Thank you for pointing out this option, however, I rather not use it. I prefer monitor solutions to be "agent-less" as possible. In facet, this is one of the reason I don't like our current solution, as it requires installing and running batch files on the system components.


Oct, 2019 - Permalink

Unfortunately, there's no proper way around this, as you need to work your way around the 32bit Probe service. It's either launching via a bat file or using scheduled tasks to execute them directly, either on the PRTG Core Server or the target host :(


Oct, 2019 - Permalink

Stephan,

I ended up using the python subprocess class to execute PsExec64 from python. I know it's a bit dirty but since Microsoft official endorsed PsTools for remote-accessing Windows servers, I guess it is the safest method.

Thank you for your help,

Oren


Oct, 2019 - Permalink