What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

Example SSH Advanced Script?

Votes:

0

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



3 Replies

Votes:

0

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

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



Votes:

0

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]




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.