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

[Enhancement] include two optional perl modules in build #70

Open
bradyr opened this issue May 26, 2024 · 2 comments
Open

[Enhancement] include two optional perl modules in build #70

bradyr opened this issue May 26, 2024 · 2 comments

Comments

@bradyr
Copy link

bradyr commented May 26, 2024

Greetings -- I am wondering if it would be possible to include the following additional modules in the base config/build which would allow for out-of-the-box compatibility with additional notification methods (slack, teams):

perl-lwp-protocol-https 
perl-json

With these additional modules installed, one could drop in the "popular" teams and slack notification scripts in the custom plugins directory, reference it and nagios would be able to fire off notifications to those platforms as well as email if the user wants.

thanks for your consideration.

@martijnv
Copy link

One way to do this would be to create a Dockerfile with the following contents:

FROM manios/nagios:latest

RUN apk update && apk add perl-json && apk add perl-lwp-protocol-https

And then create your image:

$ docker build -t my/nagios:latest .

And then use that. This works like a charm in my case.

@bradyr
Copy link
Author

bradyr commented May 29, 2024

@martijnv thanks for the advice -- I was also able to test that out using a Dockerfile and build command like that. I'm running my setup in docker compose so I need to figure out the best way to incorporate it into that config so that when i do a compose pull and/or up/down that i get those modules added in.

thanks again.

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

No branches or pull requests

2 participants