Hello, i need to interface via restapi to the PRSTG. Im pretty new 0 knowledge of the tool but what i need is simply to connect to the tool via restapi ( i will be using python) to import in an external tool the inventory of netdevices with
- some main attrbutes of the devices
- interfaces and used ports of the devices
I tried to browse a little bit but i did not find a structured list of apis ..., maybe you have specific links to the "standard rest api documentation" connecting to the tool itself as it happens now for all a lot of products exposing rest apis...
Any advice is more than welcome.
Article Comments
What I need is to get data from the PRGT tool:
I need to
- collect all the network devices with their main attributes (name serial number OS, vendor etcc..)
- collect for every device the configured interfaces and ports
Can I be redirected to some quick example? the documentation is not such immediate to consult
Thanks a lot for the help
Lorenzo
Apr, 2020 - Permalink
Hi there,
I'm afraid, that's not possible with PRTG. The mentioned tasks are more fitting to a inventory software, but PRTG is more focused on monitoring the the performance and stability of the infrastructure. Maybe there will be features added like this in the future, but not for the near future.
Kind regards,
Birk Guttmann, Tech Support Team
Apr, 2020 - Permalink
Oh ok, so many thanks for the clarification .
So I m curious about one thing: where do you get the list of devices to be monitored?
I was convinced that the inventory of the devices is managed inside the product . Ok the restapi are focused on monitoring matters....
If the inventory of devices is managed in the tool is ther any way to collect this info in another way (apart restapis...) ?
Apr, 2020 - Permalink
Hello , browsing in the knowledge base I see this:
how can I get the list of most recently added d evices?
Unfortunately, the answer doesn't work because sortby incorrectly sorts objid alphabetically rather than numerically. For example:
https://<IPAddress>/api/table.xml?content=devices&output=xml&columns=objid&sortby=objid&username
So it seems that the apis exist but I reallay need the documentation of all the get methods . Where can I find them?
Thanks again
Apr, 2020 - Permalink
Hi there,
I'm afraid, but that's all we share at the moment. We also work on some changes here, but those won't be available in the near future and we don't have an ETA yet. Since your are very interested in the API here, I want to share an Powershell module written by one of our customers. It is very powerful and helps to handle some requests easier.
Please take a look here.
Kind regards,
Birk Guttmann, Tech Support Team
Apr, 2020 - Permalink
Hi there,
I'm not sure what you want to achieve here. Do you want to gather data from the PRTG Server or get data to the PRTG server via API?
You can find information about the PRTG API in this article.
Kind regards,
Birk Guttmann, Tech Support Team
Apr, 2020 - Permalink