I need to add a bunch of custom exe sensors. They all call a PRTG-plugin ONTAPMON.exe, but each time with a different set of parameters.
Is it possible using API to modify those parameters? And if so: how? And if not so: is there any easy way to accomplish this?
Article Comments
Attention: This article is a record of a conversation with the Paessler support team. The information in this conversation is not updated to preserve the historical record. As a result, some of the information or recommendations in this conversation might be out of date.
I've read the API-documentation, and have used the setobjectproperty for other purposes as well. But, what I am actually asking is the exact property_name for the Parameter-setting! Which I can't find in the HTML-source.
Mar, 2013 - Permalink
Hello,
please try using the SetObjectPropery-Call:
Change properties of objects:
This function can change most string and number properties of objects (names, numerical values, OIDs, etc.) and should be used with caution. The "property_name" parameter can be discerned by opening the "Settings" page of an object and looking at the HTML source of the INPUT fields. For example the INPUT field for the tags of an object has the name "tags_". Leave away the "_" and use the rest ("tags") as value for the "property_name" parameter.
Please also see your very own PRTG, under "Setup"->"PRTG API"->"Object Manipulation".
best regards.
Mar, 2013 - Permalink