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

Renewing API keys when monitoring via REST API

Votes:

0

Is there a known way to automate renewing API keys in PRTG?

We are using several REST API calls to monitor some cloud systems. These require an API key. The API key in question remains valid until it is no longer used. If it is not used in 30 mins, the API key expires.

The issue is that when we update our PRTG core the API key is not used and expires, after which we have to go trough a lot of effort to manually enter a new API key in our sensors. After that it works again.

api-key rest-api restart

Created on Feb 2, 2023 10:17:42 AM



1 Reply

Votes:

0

Hello Freek,

Thanks for reaching out to us! You could think of a second installation of PRTG (can be a freeware though) to just monitor such pages using API keys to automatically refresh the keys.

Next to this I cannot think of another way to avoid the expiration as the PRTG service are down during maintenance and therefore cannot trigger automatic actions.

By writing that, also scheduled Windows Tasks could be an option which renew the keys.


Kind regards,
Felix Saure, Technical Support Team

Created on Feb 3, 2023 8:45:07 AM by  Felix Saure [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.