I'm trying to add a Custom Perf Counter using the API using the following URL.
https://prtg/api/setobjectproperty.htm?id=3487&name=counters&value=
Category\Reads+Per+Second
Whenever I use this URL, PRTG treats the \R (at the beginning of "Reads") as a carriage return. When I view the settings for the sensor, the List of Counters setting looks like this:
Category
eads Per Second
I've tried escaping the slash (
R) and url encoding the slash (%5CR), but nothing helps. It's always treated as a carriage return. Is there something else I can do to get around this?
Article Comments
I see that this has been fixed in the current version. Thanks for the quick turnaround on this!
Aug, 2013 - Permalink
Hi,
this is indeed a bug and at the moment it is not possible setting this values via API. A fix will be released with the next stable version.
Best regards
Jul, 2013 - Permalink