What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

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

Adding a line break via the API

Votes:

0

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

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



3 Replies

Votes:

0

Sorry, this is not possible.

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



Votes:

0

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



Votes:

0

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




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.