Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Plugin Error, Python Error #20

Open
Therodox opened this issue Feb 1, 2021 · 2 comments
Open

Custom Plugin Error, Python Error #20

Therodox opened this issue Feb 1, 2021 · 2 comments
Labels
question Further information is requested

Comments

@Therodox
Copy link

Therodox commented Feb 1, 2021

Python3 is missing in your Image File, if I add it, Nagios can't ping clients. Google said depends on the "Lang" set in Container.

Error after adding "apk add python3"

CRITICAL - Could not interpret output from ping command

@manios
Copy link
Owner

manios commented Feb 2, 2021

Hi @Therodox ,

Thanks for using the image! Python3 is deliberately missing as this image is targetted to lightweight size and basic features. Check the README file for more information. Also, I cannot reproduce the error you mention. I have created a Dockerfile with the following contents:

FROM manios/nagios:latest

RUN apk update && apk add python3

, I created and run it and nothing happened.

docker build -t manios/nagios:python .
docker run -d --name nagios4 -p 0.0.0.0:8080:80 manios/nagios:python

The ping plugin works as expected. Can you please provide more details and steps to reproduce the error you are having?

Thank you,
Best regards,
Christos

@manios manios added the question Further information is requested label Apr 7, 2021
@HankB
Copy link

HankB commented Nov 21, 2022

I ran into the 'missing Python3' in the container and resolved with the following commands (executed interactively in the container.)

apk update && apk add python3
ln -s /usr/bin/python3 /usr/bin/python

Python is apparently needed for "Active Checks (check_ncpa.py)" https://www.nagios.org/ncpa/getting-started.php#using-the-gui

As near as I can tell (Nagios Noob here) everything else is still working as expected. If there is further information or testing I can help with, let me know.

This is using manios/nagios:latest installed 2022-11-04 on Debian Bullseye and with Docker 20.10.5+dfsg1.

best,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants