New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

200.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


Migrating SSH sensor to Python sensor.

Votes:

0

Your Vote:

Up

Down

Hello.

Currently I have a number of SSH sensors which run a python script on the target host. For whatever reason there are a large number of paessh errors appearing as false positives so I want to move the execution of the sensor script from the target host to the PRTG server.

As the existing python script invoked by the SSH sensor works fine I would like to just run it on the PRTG server.

This would be no problem apart from the fact that the python script returns a string of the form required by the SSH sensor, namely returncode:value:message

If my understanding is correct, if I use the Python sensor then because it is classed as an 'Advanced' sensor then it cannot return the returncode:value:message format and I must use the (useless to me) Channel/Value where Value can only be either an integer or a float.

I guess I can rewrite the script in powershell and have it return returncode:value:message but I would rather not be forced to do that.

Please let me know if there is a way to have a python script run as if it were a EXE/BAT/CMD/VBS/PowerShell/SSH Sensor ... I can see no reason why this should not be allowed.

Thanks.

prtg python return ssh

Created on Dec 2, 2019 6:04:06 PM by  Dave Hughes (0) 1



1 Reply

Votes:

0

Your Vote:

Up

Down

Dave,

You are correct, how is the python script outputting at present? Can you send me copy of the output of just the python?

Benjamin Day
Paessler Support

Created on Dec 2, 2019 6:30:41 PM by  Benjamin Day [Paessler Support]



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.