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

getstatus API returning Object not found

Votes:

0

Hello everyone!

I'm using the getstatus API to gather some statistics: http://myprtg/api/getstatus.htm but the returning JSON isn't complete. The fields that i need are not filled correctly (the ones marked "Object not found"). Curiosly, the XML return (getstatus.xml) returns the correct values, like Alarms and NewMessages.

{
  "NewMessages": 0,
  "NewAlarms": 0,
  "Alarms": "(Object not found)",
  "PartialAlarms": "(Object not found)",
  "AckAlarms": "(Object not found)",
  "UnusualSens": "(Object not found)",
  "UpSens": "(Object not found)",
  "WarnSens": "(Object not found)",
  "PausedSens": "(Object not found)",
  "UnknownSens": "(Object not found)",
  "NewToDos": 0,
  "NewTickets": 0,
  "UserId": 100,
  "UserTimeZone": "UTC-03:00",
  "ToDos": "",
  "Favs": 0,
  "Clock": "10/08/2016 11:49:42",
  "Version": "16.2.24.4273",
  "BackgroundTasks": 0,
  "CorrelationTasks": 0,
  "AutoDiscoTasks": 0,
  "ReportTasks": 0,
  "EditionType": "F",
  "PRTGUpdateAvailable": true,
  "MaintExpiryDays": "??",
  "TrialExpiryDays": 0,
  "Overloadprotection": false,
  "ClusterType": "",
  "ClusterNodeName": "",
  "IsAdminUser": true,
  "ReadOnlyUser": "",
  "TicketUser": "true",
  "ReadOnlyAllowAcknowledge": "",
  "LowMem": false,
  "ActivationAlert": "",
  "PRTGHost": "E570AAAE",
  "MaxSensorCount": 100
}

api json prtg

Created on Aug 10, 2016 4:52:55 PM

Last change on Aug 11, 2016 7:22:21 AM by  Torsten Lindner [Paessler Support]



2 Replies

Accepted Answer

Votes:

0

Hello there,

the API call for JSON should be like this: http://myprtg/api/getstatus.htm?id=0

See also http://myprtg/api.htm?tabid=3 (section "Requesting Current System Status").

Kind regards.

Created on Aug 12, 2016 10:46:56 AM by  Erhard Mikulik [Paessler Support]



Votes:

0

Exactly what I needed. Thank you!

Created on Aug 12, 2016 2:42:25 PM




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.