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

PRTG Ticket Sensor

Votes:

0

Hi there! How can i create a Sensor who shows me the actuel open Tickets (from PRTG Ticket system)

api sensor tickets

Created on Mar 29, 2019 10:54:21 AM



3 Replies

Votes:

0

Hi Albert,

Thank you for your post.

PRTG does not have a native Sensor to monitor the number of (open) tickets in PRTG. However, it's possible to receive this data via the PRTG API. In your case, you can use the "PRTG HTTP API: XML Table Query Builder", which can be found here: "Setup > PRTG API > Live Data". With this feature it's simple to create the required API Call. For example, the following API call will list all tickets with the status "1" (="open"):

<Your PRTG Web Server>/api/table.json?content=tickets&output=json&columns=objid,datetime,priority,parentid,message,user,status,name,type&filter_status=1&username=YourUser&passhash=hash

(Please note that you must enter the corresponding username & passhash)

The received JSON result shows the value "treesize"corresponds to the total number of open tickets.
I recommend to use the API Call in combination with the "REST Custom Sensor" (https://www.paessler.com/manuals/prtg/rest_custom_sensor). Please note that you must create a new template for the option "REST Configuration" in the Sensor settings. This template is used to map returned JSON or XML to sensor values.

Best Regards,
Moritz Heller
Paessler Support Team

Created on Apr 1, 2019 11:14:54 AM by  Moritz Heller [Paessler Support]

Last change on Nov 18, 2019 10:52:23 AM by  Stephan Linke [Paessler Support]



Votes:

0

Here is a full request line URL that the author missed:

https://<Your PRTG Web Server>/api/table.json?content=tickets&output=json&columns=objid,datetime,priority,parentid,message,user,status,name&filter_status=1

Created on Nov 15, 2019 3:46:09 PM



Votes:

0

@RG Thanks for the headsup, I've updated it accordingly!

Created on Nov 18, 2019 10:52:52 AM by  Stephan Linke [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.