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

App Submission - Zabbix #1376

Merged
merged 15 commits into from
Sep 18, 2024
Merged

App Submission - Zabbix #1376

merged 15 commits into from
Sep 18, 2024

Conversation

DavidGarciaCat
Copy link
Contributor

@DavidGarciaCat DavidGarciaCat commented Aug 24, 2024

I created this Zabbix app for my community store, so I could add it to my Umbrel OS easily.

Given that there are other network tools and that Zabbix is one of the most useful monitoring tools available, it might be interesting to have it here, too.

Feedback is more than welcome!

@DavidGarciaCat DavidGarciaCat changed the title [New App] Zabbix - The all-in-one, open-source solution that lets you monitor anything App Submission - Zabbix Aug 24, 2024
Copy link
Contributor

@sharknoon sharknoon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @DavidGarciaCat for your App Submission! Really good work.
I have only one question in this review (see below). I will test the app and give you feedback.

zabbix/data/.gitignore Outdated Show resolved Hide resolved
zabbix/umbrel-app.yml Outdated Show resolved Hide resolved
@sharknoon
Copy link
Contributor

Thank you so much @DavidGarciaCat for your work! Two things I have noticed:

  • A .gitkeep file is missing for data/postgres
  • The use of the standard container user. Can you try to add user: 1000:1000 to the containers? It could be that some containers won't start with a different user, but those who do work fine with the new user are properly sandboxed.

@DavidGarciaCat
Copy link
Contributor Author

  • A .gitkeep file is missing for data/postgres

We have the .gitkeep file in the data folder; what you are saying is that we should move it inside the data/postgres instead? Please confirm so I can add this fix.

  • The use of the standard container user. Can you try to add user: 1000:1000 to the containers? It could be that some containers won't start with a different user, but those who do work fine with the new user are properly sandboxed.

OK, I will check this UID and set it ASAP

@sharknoon
Copy link
Contributor

Thank you for your quick response 😀
Yes, please move it to data/postgres instead. In the current case, docker would create the postgres directory by itself, with wrong permissions. Therefore we unfortunately have to create for each empty directory a .gitkeep file.
Thanks for checking the UID / GID

@DavidGarciaCat
Copy link
Contributor Author

@sharknoon I was checking the note for the user, and running cat /etc/passwd I can see there's no 1000 user we can use here.

However, running whoami, I can see the primary user seems to be zabbix with UID 1997:

$ whoami
zabbix

$ cat /etc/passwd
...
zabbix:x:1997:1995:Zabbix monitoring system:/var/lib/zabbix/:/sbin/nologin

This user is already set as the default user for the container when pulling the images.

Do we still need to make adjustments for the containers?

@sharknoon
Copy link
Contributor

Hi @DavidGarciaCat
thank you for the update! If there is already a user other than root, this is totally fine 😀 Good catch!

@DavidGarciaCat
Copy link
Contributor Author

@sharknoon, thanks for your confirmation

@nmfretz, I think all feedback has been implemented - are we ready to go live with this new app?

Copy link
Contributor

@nmfretz nmfretz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the submission @DavidGarciaCat. I have left a review below with some items to address.

Let @sharknoon and I know if anything is confusing!

zabbix/umbrel-app.yml Outdated Show resolved Hide resolved
zabbix/umbrel-app.yml Outdated Show resolved Hide resolved
zabbix/umbrel-app.yml Outdated Show resolved Hide resolved
Comment on lines +33 to +34
ports:
- "10050:10050"
Copy link
Contributor

@nmfretz nmfretz Sep 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this port need to be exposed on the host for some reason (e.g., some external application other than zabbix needs to access it), or can we just remove this and rely on Docker DNS? We don't want to expose extra ports than are necessary.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Zabbix Server Port should be open as it is used to get comms from the installed agents in the monitored devices. This one should remain open/exposed.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 👌

zabbix/docker-compose.yml Outdated Show resolved Hide resolved
zabbix/umbrel-app.yml Outdated Show resolved Hide resolved
@getumbrel getumbrel deleted a comment from github-actions bot Sep 18, 2024
@nmfretz
Copy link
Contributor

nmfretz commented Sep 18, 2024

Thanks again for your hard work on Zabbix @DavidGarciaCat! I have pushed some commits to finalize this submission and have added gallery assets:

image

Going live to the app store 🎉

@nmfretz nmfretz merged commit dabf543 into getumbrel:master Sep 18, 2024
1 check passed
@DavidGarciaCat
Copy link
Contributor Author

Thank you, @nmfretz! It has been my pleasure to work providing a new tool that I believe might be very useful, especially for SME users.

I also appreciate your feedback and will try to remember it for other potential submissions.

DavidGarciaCat added a commit to deralia/umbrel-app-store that referenced this pull request Sep 18, 2024
@DavidGarciaCat
Copy link
Contributor Author

Hey, @nmfretz!

As part of the getting ready process you guys ran, there was a typo in the description/setup

Please refer to this new PR to fix it #1496

Cheers!

@nmfretz
Copy link
Contributor

nmfretz commented Sep 18, 2024

Thanks for the eagle-eyes @DavidGarciaCat! Merged.

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

Successfully merging this pull request may close these issues.

3 participants