What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

API Extract: Who acknowledged an Alarm

Votes:

0

Hi,

I need to create a report that lists who has ack'd a sensor alarm.

I believe something similar to the following should have the username in the message column: api/table.csv?id=125881&content=messages&filter_status=620&filter_status=608&filter_status=607&count=*&columns=objid,datetime,parent,type,name,status,user

However, this does not contain the user info as it does in the interface.

I think this is a similar issue to: https://kb.paessler.com/en/topic/84318-message-status-acknowledged-does-not-showing-user#reply-295773

Any answers would be gratefully recieved.

api down-acknowledged user

Created on Oct 8, 2020 11:18:17 AM



1 Reply

Votes:

0

Hi there,

Thank you very much for your request. Please check our PRTG web interface and navigate to Setup | PRTG API | Live Data to find an overview and documentation of API queries that can be used to extract live data out of PRTG. On this page you'll find an example query Log entries of the last 7 days for object id 2003 with the following API query:
api/table.xml?content=messages&id=2003&start=0&filter_drel=7days&columns=objid,datetime,type,name,status,message
If you change the ID to the desired object's ID of the sensor (and optional the table from table.xml to table.csv) you'll get the following output:

2213,"2213","2020-10-09 07:33:07 AM","44113.2313349421","EXE/Script Advanced","exexml","State of 'Email and push notification to admin'","State of 'Email and push notification to admin'","Down (Acknowledged)","619","","Acknowledged at 2020-10-09 07:33:07 AM by PRTG System Administrator until 2020-10-09 07:38:07 AM"

Further filtering options, for instance for other time periods, can be also found within the API documentation under Sorting and Advanced Filtering.

Best regards,
Sebastian

Created on Oct 9, 2020 5:51:20 AM by  Sebastian Kniege [Paessler Support]




Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.