New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

300.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free PRTG
Download >>

 

What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

 

Top Tags


View all Tags


python sensors and accessing windows server

Votes:

0

Your Vote:

Up

Down

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

prtg-network-monitor python-script-advanced-sensor windows-server

Created on Oct 24, 2019 8:47:21 AM by  orenshani7 (0) 1



4 Replies

Votes:

0

Your Vote:

Up

Down

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

Created on Oct 25, 2019 10:24:28 AM by  Stephan Linke [Paessler Support]



Votes:

0

Your Vote:

Up

Down

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.

Created on Oct 27, 2019 5:53:43 AM by  orenshani7 (0) 1



Votes:

0

Your Vote:

Up

Down

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 :(

Created on Oct 28, 2019 12:12:06 PM by  Stephan Linke [Paessler Support]



Votes:

0

Your Vote:

Up

Down

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

Created on Oct 28, 2019 2:24:29 PM by  orenshani7 (0) 1



Please log in or register to enter your reply.


Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.