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.


Article Comments

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.


Sep, 2014 - Permalink

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


Jun, 2016 - Permalink

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.


Jun, 2016 - Permalink