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

Hello,

please try using the SetObjectPropery-Call:
Change properties of objects:

/api/setobjectproperty.htm?id=id_of_object&name=property_name&value=new_value 

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

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

It's:

exeparams_

Mar, 2013 - Permalink