Comments (13)
The image is working correct:
[bebe:~] 1 % docker run --pull --rm -ti --entrypoint /bin/bash jordan/icinga2
root@6282c151c20d:/# sudo -u nagios ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=122 time=16.9 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=122 time=16.4 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=122 time=16.0 ms
^C
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 16.059/16.480/16.926/0.384 ms
root@6282c151c20d:/# ls -la /bin/ping
-rwsr-sr-x 1 root root 61240 Nov 10 2016 /bin/ping
Please verify, that your ping executable has got +s permissions. If it lacks them, you have to check your docker host filesystem. It may be, that setuid isn't allowed there.
from icinga2.
I had the same CRITICAL error message. Docker Host: Debian GNU/Linux 8 (jessie) with Linux 3.16.0-4-amd64 on a Hyper-V-Host. chmod u+s /bin/ping and chmod u+s /bin/ping6 solved the problem.
from icinga2.
Sorry about missing the comment on Docker Hub. I don't get notifications for comments so I usually miss them.
What version of the container are you using? The only two checks that should fail with the default setup is the SSH and swap check.
from icinga2.
No worries! I am running the latest container version on Docker 1.6.2.
SSH fails as expected, swap check is fine. Because the ping check fails, it marks the whole host as down though.
Do you have any idea how to debug this issue?
from icinga2.
By the way, the IPv6 check fails as well:
/bin/ping6 -n -U -w 10 -c 5 ::1
Output: CRITICAL - Could not interpret output from ping command
As there seems to be an error, is there any way to look up the output of the above command as seen by Icinga?
from icinga2.
That's strange. You should be able to see it in the icinga2.log under /var/logs/icinga2
I'll run some more tests tomorrow with the version of docker you're using so I can (hopefully) reproduce the issue
from icinga2.
We had a similar issue while upgrading from ubuntu 14.04 to 16.04, but I don't remember the correct fix.
from icinga2.
I can't reproduce this issue still 😞
Do you mind running this inside the container and see if it works?
chmod u+s /bin/ping
from icinga2.
Thanks for your suggestions! I tested further and can't reproduce the error on my OSX docker host either.
I also realized that the docker container on my original host (which is a Synology DSM NAS) can't establish network connections at all (so no internet access). It's really weird. Still, as this seems to be a host specific problem, I will close the issue here.
from icinga2.
Thanks @nbickel - that fixed it for me as well!
from icinga2.
Thanks @nbickel
Changes are in: f006814
from icinga2.
Hi @jjethwa, I'm testing this image (jordan/icinga2:latest) in Kubernetes v1.11.6.
I have the exact same problem.
Plugin Output
/bin/ping -n -U -w 30 -c 5 127.0.0.1
CRITICAL - Could not interpret output from ping command
Running ping as root in the container works. But when I try running it as the user 'nagios' (which i guess icinga is using) I get the following error:
root@icinga-568cbffdc7-dbd5t:/# sudo -u nagios /bin/ping www.google.com
ping: socket: Operation not permitted
I tried to manually chmod u+s /bin/ping and chmod u+s /bin/ping6 but no luck there.
from icinga2.
Thank you @bebehei.
I solved it with adding the following to my deployment in kubernetes:
securityContext:
allowPrivilegeEscalation: true
from icinga2.
Related Issues (20)
- Adding Vsphere Module HOT 5
- Cant restart an exited container HOT 11
- Your MySQL Database Server is running currently inside the icinga2 container. In future, the MySQL will be located in a separate container by default. HOT 22
- Corrupt File? HOT 5
- No Graphs from graphite for 12 hours or more (Days, Weeks, Months and Years) HOT 6
- Permissions building the image HOT 2
- Additional App HOT 1
- DockerFile issue: Access denied for user root (using password NO) HOT 16
- have issue with check_http HOT 9
- Director supervisor script should not run when director is disabled HOT 7
- mail notification problem HOT 7
- Environment variable to specify icinga2 `log-level` HOT 7
- Class 'Icinga\Util\Translator' not found HOT 4
- permission error on /var/cache/icinga2 folder under Windows HOT 1
- Weird behaviour when mounting /etc/icinga2/* HOT 8
- Errors after upgrade HOT 2
- Documentation mismatch HOT 1
- Dockerfile: deb http://packages.icinga.org/debian does not exist anymore (?) HOT 2
- MySQL user 'root' has no password HOT 2
- Disable Icinga default host and service HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from icinga2.