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.


Article Comments

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