Skip to main content
Solved

Adding a poller to a Server - API Questions

  • January 28, 2022
  • 1 reply
  • 230 views

Forum|alt.badge.img+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 ;)

Best answer by Benjamin_b

Well, I ended using admin account

Seems everythig work fine now poller and central.

 

1 reply

Forum|alt.badge.img+6
  • Author
  • Steward ***
  • Answer
  • January 31, 2022

Well, I ended using admin account

Seems everythig work fine now poller and central.