Can I use a custom (user supplied) parameter with a custom sensor? For example, my sensor needs to know the instance name of the SQL database on the host. I want to pass it the instance name.
Custom parameters in custom sensors
Modified on 2025-06-10 12:00:27 +0200
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.
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.
When using an EXE/Script sensor, you can define parameters which will be used when calling your executable or script file (so you can catch and process them within your files). Several default placeholders are available, such as %sensorid, %host, %name, etc.
In the sensor's settings, you can Set placeholders as environment values so you can also use the same placeholders within your file.
For a detailed list of all available placeholders, please see the API documentation within your PRTG installation: From the main menu, select Setup | PRTG API, then click on the Custom Sensors tab.
Feb, 2011 - Permalink