scline / docker-cacti

Cacti version 1+ under Docker
113 stars 56 forks source link

FATAL: You are not authorized to use this service | Multiple pollers #90

Open zuka1337 opened 3 years ago

zuka1337 commented 3 years ago

Hello,

Very simple to replicate. Go a head and compose up:

  1. _docker-compose -f cacti_multishared.yml up -d
  2. Install cactimaster and cactipoller

Add any machine to the cactipoller, I get this error:

image

What I'm missing here?

Both fqdns are resolvable.. no problem in pinging those.

zuka1337 commented 3 years ago

Hello, can you give some help, I think is related to #68

scline commented 3 years ago

Taking a look, it appears to be related to DNS + Docker NAT. If the poller and master host are on different boxes you likely would not see this error. Otherwise network_mode: host would be required. It will take me some time to look into this docker-compose file and see if I can fake some DNS to get things working better, but the local master+poller config is more for basic testing on deployments and not really a good idea for actual monitoring.

scline commented 3 years ago

https://github.com/Cacti/cacti/issues/738