I don't have a ping sensor in this particular device. I have an 'SNMP Traffic 64' sensor and several other custom SNMP sensors.
Maybe I didn't explain myself too well in the original question.
When I query the same devices and I specify the content to be sensors as shown in the API call below:
/api/table.xml?username=????&passhash=????&content=sensors&output=xml&columns=device,type,sensor,status,message,lastvalue&count=40
The result of the 'status' column(same as <status> xml tag) is Down for every sensor that is down as it should be.
But then If I query the exact same sensors using the following API call:
/api/table.xml?username=????&passhash=????&content=devices&output=xml&columns=device,status,downsens&count=40
The result of the 'status' column is now Up for the exact same device that is reported as down in the sensor query.
Additionally, the 'downsens' column contains the string Down and provides a number specifying how long the sensor has been down for.
In my opinion, there are two possible outcomes. Either the query I am using is wrong or the 'status' column is not properly being updated for API calls containing content=devices .
I am inclined to believe it is me who may be making a mistake, but need to make sure.
Note: The behavior explained above applies to sensors/devices in a 'Down' status only. Sensors/Devices in a 'Paused' status do properly show when queried in the two ways described above content=devices and content=sensors
I hope this clarifies the original question.
Thanks.
Add comment