Solved

Adding a poller to a Server - API Questions

  • 28 January 2022
  • 1 reply
  • 180 views

Userlevel 1
Badge +6

Hi,

Our company recently bought another one, I want to monitor them as I do for us.

The other copany is linked via an ipsec tunnel, their bandwith is currenly low (2-5Mb/s)

Instead of having two servers, I did install a poller and link it to our current server.

Is the bandwith enough for that ?

--

The poller is currently installed (v21.10.2 as well), i’m trying to register it.

https://docs.centreon.com/current/fr/installation/installation-of-a-poller/using-centreon-iso.html

Instead of using the admin account, I created an api account, that has the right to use the api (for safety reasons)

/usr/share/centreon/bin/registerServerTopology.sh -u USER -t poller -h SERVERIP -n POLLERNAME

 

When I try to log in via http it tells me ‘invalid’ credentials, i’m copying the password directly so it can’t be wrong.

So here is my question, the api account has to exist on the poller or on the server ?

- ERROR - http://SERVERIP:80: {"code":401,"message":"Invalid credentials"}

 

Also at first i wanted to use https for obvious reasons, but seems API is unreachable via https as i get

- ERROR - Couldn't connect to https://SERVERIP:443

Is there a way to setup the API to use https ?

 

Thx for your feedbacks ;)

icon

Best answer by Benjamin_b 31 January 2022, 16:14

View original

1 reply

Userlevel 1
Badge +6

Well, I ended using admin account

Seems everythig work fine now poller and central.

 

Reply