Hello, I'm trying to extract probes status by API call
/api/table.json?content=probes&columns=objid,status&filter_parentid=0
But the result always showing that the probes are all up even if i'm sure i have 2 probes disconnected
{ prtg-version: "18.1.37.13946", treesize: 7, probes: [ { objid: 1, status: "Up", status_raw: 3 }, { objid: 10588, status: "Up", status_raw: 3 }, { objid: 2056, status: "Up", status_raw: 3 }, { objid: 5537, status: "Up", status_raw: 3 }, { objid: 6226, status: "Up", status_raw: 3 }, { objid: 7881, status: "Up", status_raw: 3 }, { objid: 9834, status: "Up", status_raw: 3 } ] }
Can you please tell me what i'm doing wrong ?
Article Comments
Thanks for your answer, it works fine this time one last question, this parameter is not included in this list : https://www.paessler.com/manuals/prtg/live_single_object_status
Is there any other documentation to check ?
Oct, 2019 - Permalink
Dear anass,
the documentation describes the public part of the API. There are a number of undocumented parameters, which are not listed in any resources we provide.
One of the reasons is that when we work on PRTG, the API can change as well. We only document parts which we consider stable for a long time.
You can &filter_type=probenode to filter for probes, "content=probes" has no effect.
Oct, 2019 - Permalink
Hi anass,
Within the context of devices, groups and probes the "status" property refers to whether the object has been paused by flipping the Status setting on the Settings page of the object. In order to get the connected state of a probe you need to inspect the condition field
When looking at the condition_raw field, a condition of 0 means Disconnected, while 2 means Connected
Regards,
lordmilko
Oct, 2019 - Permalink