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

ssh not installed - unable to run check_by_ssh (returned status 3) #27

Closed
tr1plus opened this issue May 14, 2021 · 3 comments
Closed

ssh not installed - unable to run check_by_ssh (returned status 3) #27

tr1plus opened this issue May 14, 2021 · 3 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@tr1plus
Copy link

tr1plus commented May 14, 2021

Hi

The check_by_ssh plugin only started working after I manually re-added the openssh package

/opt/nagios # apk update

fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86_64/APKINDEX.tar.gz

fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/community/x86_64/APKINDEX.tar.gz

v3.11.11-26-gaa55c5a654 [http://dl-cdn.alpinelinux.org/alpine/v3.11/main]

v3.11.11-24-g127ddb5cee [http://dl-cdn.alpinelinux.org/alpine/v3.11/community]

OK: 11274 distinct packages available

/opt/nagios # apk add openssh

(1/6) Installing openssh-keygen (8.1_p1-r0)

(2/6) Installing openssh-client (8.1_p1-r0)

(3/6) Installing openssh-sftp-server (8.1_p1-r0)

(4/6) Installing openssh-server-common (8.1_p1-r0)

(5/6) Installing openssh-server (8.1_p1-r0)

(6/6) Installing openssh (8.1_p1-r0)

I see in the dockerfile you are adding the openssh-client, but it doesn't seem to be enough (as ssh wasn't found)

@tr1plus tr1plus changed the title ssh not installed ssh not installed - unable to run check_by_ssh (returned status 3) May 14, 2021
@manios
Copy link
Owner

manios commented May 15, 2021

Hi @tr1plus !

Thanks for the finding! Indeed it is missing and check_by_ssh does not work. I will add the openssh package it in the next version.

Best regards,
Christos

manios added a commit that referenced this issue Jul 18, 2021
@manios manios self-assigned this Jul 18, 2021
@manios manios added the bug Something isn't working label Jul 18, 2021
@manios manios added this to the build-5 milestone Jul 18, 2021
@manios
Copy link
Owner

manios commented Aug 15, 2021

Hi @tr1plus !

I have released a new latest tag based on alpine:3.14 with the appropriate changes. Can you please give it a try

docker pull manios/nagios:latest
# or
docker pull manios/nagios:4.4.6

and provide me with feedback ? I am closing the issue. If you find any discrepancy please post a comment here and we will take a look.

Thanks,
Christos

@manios manios closed this as completed Aug 15, 2021
@tr1plus
Copy link
Author

tr1plus commented Aug 17, 2021

seems to be working! Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants