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 }
Add comment