We are trying to check the frequecy of critical and high alerts, hence we require the logs to check. Is there a way to pull only the critical and high alert logs of all the sensors that were up and down for 1 month in PRTG? Please advice


Article Comments

Attention: This article is a record of a conversation with the Paessler support team. The information in this conversation is not updated to preserve the historical record. As a result, some of the information or recommendations in this conversation might be out of date.

Hello,
we appreciate your inquiry.

Unfortunately it is not possible to filter the Sensor's log by priority in the Log-entry list.
Over the API, there's a parameter called filter_priority (I.E.: ...&filter_priority=5) but that setting can't be used in content=messages API Calls.

The only alternative would be (over the API) to query the list of sensors with a specific priority and then perform individual calls to get the messages for those individual Sensor ID's.

The Sensors API call would be

To get the list of sensors with priority 3 ( * ) http://yourprtg/api/table.xml?content=sensors&output=xml&columns=objid&filter_priority=3 The Sensor's Messages API call would be: http://yourprtg/api/table.xml?content=messages&output=xml&columns=objid,datetime,status,message&id=SENSORID

Please also note that all API calls should contain the following for authentication: &username=prtgadmin&password=prtgadmin or, when using the passhash instead: &username=prtgadmin&passhash=123456789123456789


Sep, 2015 - Permalink