Query devices via REST API

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
4455631471141
Posts: 2
Joined: Wed Jun 26, 2024 2:12 am

Query devices via REST API

Post by 4455631471141 »

Hello,

Does Cacti v1.2.27 support querying devices via RESTful API? Or is there any plugin that allows to do so?

Thanks.
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Query devices via REST API

Post by macan »

Not now. I'm preparing restful api for plugin servcheck only now.

I would like add restful api in core cacti. But it is more work (store tokens, define queries, ...). It definitely will not part of 1.2.x versions. We can work on it after release 1.3.

If you need it, you can use Data collection -> Data Input Metod (script/command). Your script stores token, login, password and does any query and returns result to cacti. I used it for gathering information from Nakivo backup software.

It is described in our documentation:
http://docs.cacti.net/Data-Input-Methods.md
Let the Cacti grow!
4455631471141
Posts: 2
Joined: Wed Jun 26, 2024 2:12 am

Re: Query devices via REST API

Post by 4455631471141 »

Hi macan,

Thank you very much for the speedy reply.

We will need API querying eventually, but not right now, so the workaround you mentioned will be noted and we will check when version 1.3 is released.

Greetings.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests