Dear Danny,
regarding the API, you can do this:
- Generate a list of devices per probe
/api/table.csv?id=1content=devices&columns=objid,name,host,status,message,comments&count=*
id=1 refers to the local probe. Use the according IDs for other probes.
- Now iterate over each objid for each device to query its sensors:
/api/table.csv?id=40&content=sensors&columns=objid,device=text,sensor=htmllong,status,message,lastvalue,comments&count=*
id=40 points to the probe device of the local probe. If you use IDs for other devices, you get the respective sensors.
The raw output included in the CSV can be omitted with adding the parameter &noraw=1 however some properties, like messages, are available only in the raw version of the property.
Add comment