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

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

Custom parameters in custom sensors

Votes:

0

Your Vote:

Up

Down

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-sensor parameters prtg

Created on Feb 14, 2011 10:41:54 PM by  Ismael J. Carlo (55) 2 1



1 Reply

Accepted Answer

Votes:

0

Your Vote:

Up

Down

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.

Created on Feb 15, 2011 1:19:11 PM by  Daniel Zobel [Product Manager]

Last change on Feb 15, 2011 1:19:25 PM by  Daniel Zobel [Product Manager]



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.