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


Example SSH Advanced Script?

Votes:

0

Your Vote:

Up

Down

Are there any examples of the Custom SSH Advanced scripts generating XML output? I'd like to see a functional script that is working. My objective is to collect inventory data through PRTG and I'd like to have the sensors reports strings filled with distributions, usernames and things like that.

ssh-advanced-custom-script string xml

Created on Sep 12, 2014 7:31:29 PM by  Josiah Ritchie (110) 1 1



3 Replies

Votes:

0

Your Vote:

Up

Down

The format for script outputs can be seen under Setup->PRTG API->Custom Sensors.

Sensor's channel values have to be a 64 bit integer or float value but the last message can be any string (maximum length: 2000 characters) and will be stored in the database.

Created on Sep 15, 2014 7:17:58 AM by  Greg Campion [Paessler Support]



Votes:

0

Your Vote:

Up

Down

Can you elaborate on what "last message" means and how we would get it out of the database?

Created on Jun 14, 2016 5:57:35 PM by  Kyle Tucker (70) 1 1



Votes:

0

Your Vote:

Up

Down

The last message is the Message field of the sensor, above the channels. Unfortunately, the last message is not stored in the sensors historic data. That given, it might be a bit difficult to track this using PRTG. You could also use the comments field of any object to store its properties like usernames, distributions, etc.

Created on Jun 15, 2016 8:42:09 AM by  Stephan Linke [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.