Forum Discussion
Jul 21, 2009
Therein lies your issue. The method takes two arrays, the first is for the monitor names, the second is for the property types. This method was designed a bit different that some of the others in our API. For this method, you must pass in a pair of monitor name and type for the n'th index in each array. As you noticed, in your code you were querying the following attributes from the following monitor templates:
template -> property
http -> ITYPE_INTERVAL
https -> ITYPE_TIMEOUT
tcp -> ITYPE_PROBE_NUM_PROBES
icmp -> ITYPE_PROBE_NUM_SUCCESSES
udp -> ITYPE_PROBE_TIMEOUT
ftp -> ???
The ftp entry will be ignored since there were only 5 entries in the property type array.
The correct logic would have been to pass in 5 entries with all 5 monitor template names being the same value for the template you were requesting.
Let me know if you run into any other issues...
-Joe