So I’ve tried searching through the previous posts for a relevant situation to mine. I do see several posts related to a could not ping message when trying to add a host. But they seem to be mostly about selinux.
I am running the base docker image. When I try to add a host from the CLI or GUI I get “could not ping”.
I am able to ping and do an snmpwalk from the docker shell.
Here is the validate,php output.
[OK] Composer Version: 1.8.0
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[FAIL] The poller (8616b9cb2a58) has not completed within the last 5 minutes, check the cron job.
[FAIL] The poller (88ebe6420b94) has not completed within the last 5 minutes, check the cron job.
[FAIL] Discovery has never run. Check the cron job
Since I haven’t been able to ping anything I can’t start an autodiscovery.
I do a packet capture from the host OS on the docker interface and I don’t see any traffic coming out when I run ./addhost.
So I tried using Jaris Schaefer’s docker as well. Same problem. However I did have a problem with his docker that nginix started up trying to bind to an ipv6 which I don’t have configured on this host or container.
So I’m guessing that might be the problem here.
Reading this, it looks like there was an issue with fping…