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.xml not delivering correct counts for newMessages & newAlarms when using passhash

Votes:

0

Hi,

we are using the API for various purposes in other applications and had great experience using it so far.

Know we are faced with a problem:

When trying to get the counts of messages and alarms by calling https://zzz/api/getstatus.xml?id=0&username=XXXX&passhash=YYYYYYY we are always getting zeros for newMessages and newAlarms although there are new Messages and new Alarms.

If i login through the WebGUI (with the same user) and directly use /api/getstatus.xml?id=0 then i get the correct numbers

I now found that using the password in the URL String instead of the passhash gives me at least correct count for "newMessages".

Is there a restriction using passhash which i missed?

api getstatus passhash password

Created on Apr 30, 2014 10:49:20 AM



1 Reply

Votes:

0

Hello,

thank you very much for your KB-Post. I'm afraid this is due to the fact that the API-Call causes a new login each time, and thus these values are reset to zero.

best regards.

Created on May 6, 2014 4:12:42 AM by  Torsten Lindner [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.