prtg-get-object
Queries message logs for the specified period from a Paessler PRTG server.
Syntax
prtg-get-object profile=PROFILE [days=PERIOD]
Options
- profile=PROFILE
- Required. Identifier of the Paessler PRTG connect profile
- days=PERIOD
- Optional. Period to query. One of
today,yesterday,7days,30days,6months,12months, case-insensitive. (default:7days)
Output Fields
| Field | Type | Name | Description |
|---|---|---|---|
| event_time | date | Event time | Message time |
| event_time_serial | double | Event time serial | Original PRTG numeric value of the message time |
| object_name | string | Object name | e.g. SSL Certificate Sensor (Port 443) |
| raw_object_name | string | Raw object name | |
| object_id | long | Object ID | |
| raw_object_id | long | Raw object ID | |
| status | string | Status | e.g. Up |
| status_code | int | Status code | e.g. 607 |
| msg | string | Message | e.g. State Trigger sends Email (Sensor ID: 2157) |
| msg_html | string | Message (HTML) | Original message including HTML tags |
| parent | string | Parent | e.g. Probe Device |
| raw_parent | string | Raw parent | |
| src_ip | ip | Source IP | Only when the parent value is an IP address |
| app | string | Application type | e.g. paessler.icmp |
| sensor_type | string | Sensor type | e.g. paessler.icmp.ping_sensor.39 |
| base_link | string | Base link | e.g. /sensor.htm?id=2157 |
| raw_base_link | long | Raw base link |
Error Codes
Parse errors
| Error message | Cause | Solution |
|---|---|---|
| Specify valid Paessler PRTG profile. | profile option is missing | Specify the connect profile identifier |
| No available Paessler PRTG profile found. | No Paessler PRTG connect profile with the identifier | Check the connect profile identifier |
days should be one of today, yesterday, 7days, 30days, 6months, 12months | Unsupported days value | Use one of the allowed values |
Runtime errors
| Error message | Cause | Solution |
|---|---|---|
| please check connect profile and araqne log. | The PRTG server response is not normal (wrong account, password, or endpoint, etc.) | Check the endpoint, account, and password of the connect profile, and check the response in araqne.log |
| Connect timed out | Cannot connect to the PRTG server | Check the endpoint address and firewall policy |
Description
Gets message logs from the PRTG HTTP API. It receives up to 50000 records per request and pages through all logs in the specified period. You can also store the same logs with the logger.