New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

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

Free PRTG
Download >>

 

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


Adding a line break via the API

Votes:

0

Your Vote:

Up

Down

When adding a location to a device via the API I would like to add a line break between the first and second line of the address.

For example how do I get this
123 Smith St.
New York, NY 10000

Out of this /api/setobjectproperty.htm?id=10000&name=location&value=123 Smith St. New York, NY 10000&username=user&password=PW

api geo-maps linebreak location

Created on Jul 16, 2012 4:21:03 PM by  ATI (0) 1

Last change on Jul 17, 2012 9:22:38 AM by  Torsten Lindner [Paessler Support]



3 Replies

Votes:

0

Your Vote:

Up

Down

Sorry, this is not possible.

Created on Jul 17, 2012 9:23:51 AM by  Torsten Lindner [Paessler Support]



Votes:

0

Your Vote:

Up

Down

This is possible by putting "%od" between the 2 lines of location so your example would read: /api/setobjectproperty.htm?id=10000&name=location&value=123 Smith St.%0dNew York, NY 10000&username=user&password=PW

The location field will contain the correct data but the map may not display correctly until you manually go to the location box and press enter after the txt.

Created on Jan 21, 2013 10:26:07 AM by  Andy Dalton (0) 1



Votes:

0

Your Vote:

Up

Down

Sorry, the code in the first line should read "%0d" i.e. a zero not an "o".

Created on Jan 21, 2013 1:36:20 PM by  Andy Dalton (0) 1



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.