Quantcast
Channel: Spiceworks Community - Latest topics
Viewing all articles
Browse latest Browse all 183419

API Help for PRTG

$
0
0

I'm trying to get PRTG to graph Spiceworks Tickets as they come in, so I've setup a HTTP Transaction Sensor in PRTG and set it up this way: (Settings are default unless otherwise stated)

Transaction URL #1

URL: https://helpdesk_URL/login

Request Method: POST

I've used PRTG's URL Recorder to get the POSTDATA of a login and pasted that into the request.

Transaction URL #2

https://helpdesk_URL/api/tickets.json?total_count=true&filter=unassigned

Request Method: GET

Check for existing key words (positive): Enabled

Response must include: *count*

When this runs, the first part (login) succeeds, however the second part fails (getting the number of unassigned tickets. The error message I receive is URL #2: HTTP/1.1 406 Not Acceptable.

This is the apache access log results:

SPICEWORKS_IP_ADDRESS - - [10/Feb/2013:12:47:56 +1000] "GET /api/tickets.json?total_count=true&filter=unassigned HTTP/1.1" 406 1 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.30 Safari/530.5"
SPICEWORKS_IP_ADDRESS - - [10/Feb/2013:12:47:58 +1000] "POST /login HTTP/1.1" 302 114 "-" "Mozilla/5.0 (compatible; PRTG Network Monitor (www.paessler.com); Windows)"
SPICEWORKS_IP_ADDRESS - - [10/Feb/2013:12:47:58 +1000] "GET /dashboard/ HTTP/1.1" 302 113 "-" "Mozilla/5.0 (compatible; PRTG Network Monitor (www.paessler.com); Windows)"
SPICEWORKS_IP_ADDRESS - - [10/Feb/2013:12:47:58 +1000] "GET /login HTTP/1.1" 200 4695 "-" "Mozilla/5.0 (compatible; PRTG Network Monitor (www.paessler.com); Windows)"
SPICEWORKS_IP_ADDRESS - - [10/Feb/2013:12:47:59 +1000] "GET /api/tickets.json?total_count=true&filter=unassigned HTTP/1.1" 406 1 "-" "Mozilla/5.0 (compatible; PRTG Network Monitor (www.paessler.com); Windows)"
SPICEWORKS_IP_ADDRESS - - [10/Feb/2013:12:48:03 +1000] "POST /tickets/periodic_ticket_table_update/unassigned_tickets HTTP/1.1" 200 66 "https://HELPDESK_URL/tickets"; "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0"

I was wondering if anyone has successfully monitored ticket counts from Spiceworks using PRTG and if someone could help debug this with me?

Thanks everyone!


Viewing all articles
Browse latest Browse all 183419

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>