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

Gettreenodestats from api remotley

Votes:

0

Good afternoon Paessler. I am using the gettreenodes api call to produce weekly reports on the status of our sensors however am having issues calling this remotely as it does not appear to accept &username=&passhash authentication when called upon from a script.

Is there any way i can remotely authenticate this request or failing that turn off whatever is requesting a login as publicly visible paused device stats doesn't really threaten security.

Happy fridays :)

sam

api authentication gettreenode

Created on Nov 24, 2017 2:21:55 PM

Last change on Nov 27, 2017 9:19:27 AM by  Luciano Lingnau [Paessler]



1 Reply

Accepted Answer

Votes:

0

Hello there,
thank you for your KB-Post.

The first parameter in the call needs to be invoked using ?. The & is only used for additional parameters. This means that you can easily invoke api/gettreenodestats.xml with the following URL's:

  • /api/gettreenodestats.xml?username=prtgauser&passhash=user_passhash
  • /api/gettreenodestats.xml?username=prtgauser&password=user_password

Best Regards,

Created on Nov 27, 2017 9:34:02 AM by  Luciano Lingnau [Paessler]

Last change on Nov 27, 2017 9:34:07 AM by  Luciano Lingnau [Paessler]




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.