Factory sensors & PRTG API

Votes:

0

Your Vote:

Up

Down

Hi,

I'm using PRTG API to automatically add factory sensors into the system. To do so, I use a copy of a "template" factory sensor. The copy works great.

Now I'd like to modify channel definition of the factory sensor with the API. I checked the source code of the web page, and noticed this field was not an <input> field but a <textarea> field.

So I'd like to know if there is a way to modify this field with the API ?

Thanks, Jerome

api prtg sensor-factory

Created on Sep 9, 2010 1:37:58 PM by  jbourdin (0) 2



3 Replies

Accepted Answer

Votes:

0

Your Vote:

Up

Down

Dear Jerome,

it should work, if you do HTTP-encode the line breaks and put these into the API-call as well.

Best regards.

Created on Sep 20, 2010 7:24:41 PM by  Torsten Lindner [Paessler Support] (15,450) 3 1



Votes:

0

Your Vote:

Up

Down

Thanks Torsten for your answer.

It now works perfectly. I'm working with .Net and coding in C#. Just for everybody's information, the method HttpUtility.UrlEncode (System.Web) must be applied on each argument of the URL used with the PRTG API.

Created on Sep 24, 2010 9:40:39 AM by  jbourdin (0) 2



Votes:

0

Your Vote:

Up

Down

Hi,

I need a way to create Factory Sensor automatically. These Factory Sensors will be an aggregation of traffic sensors of a specific group.

Is there a way to verify all traffic sensor on a group, verify which of then are up and then create a Factory Sensor automatically with these informations?

Is it possible using PRTG API?

Thank you!

Created on Jan 10, 2011 12:55:25 PM by  Bruno Ruy (0) 2

Last change on Jan 11, 2011 4:51:48 PM by  Daniel Zobel [Paessler Support] (21,383) 3 3



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.

PRTG
Network Monitor
Intuitive to Use.
Easy to manage.

150.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Visit
www.paessler.com

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

Top Tags


View all Tags