new script ct/icinga - #1343
Conversation
Greptile OverviewGreptile SummaryThis PR adds a new Icinga2 monitoring system container setup with comprehensive installation including Icinga2 Core, IcingaDB, Icinga Web 2, and numerous pre-configured modules (Director, x509, Reporting, Notifications, Businessprocess). The implementation installs MariaDB and Apache locally, sets up multiple databases with generated passwords, and includes Linuxfabrik monitoring plugins for advanced monitoring scenarios. Key Changes:
Issues Found:
Confidence Score: 3/5
Important Files Changed
|
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
| msg_info "Adding Netways extras and plugins repository" | ||
| setup_deb822_repo \ | ||
| "netways-extras" \ | ||
| "https://packages.netways.de/netways-repo.asc" \ | ||
| "https://packages.netways.de/extras/debian/" \ | ||
| "${VERSION_CODENAME}" \ | ||
| "main" | ||
| setup_deb822_repo \ | ||
| "netways-plugins" \ | ||
| "https://packages.netways.de/netways-repo.asc" \ | ||
| "https://packages.netways.de/plugins/debian/" \ | ||
| "${VERSION_CODENAME}" \ | ||
| "main" | ||
| msg_ok "Set up Netways Repositories" |
There was a problem hiding this comment.
| msg_info "Adding Netways extras and plugins repository" | |
| setup_deb822_repo \ | |
| "netways-extras" \ | |
| "https://packages.netways.de/netways-repo.asc" \ | |
| "https://packages.netways.de/extras/debian/" \ | |
| "${VERSION_CODENAME}" \ | |
| "main" | |
| setup_deb822_repo \ | |
| "netways-plugins" \ | |
| "https://packages.netways.de/netways-repo.asc" \ | |
| "https://packages.netways.de/plugins/debian/" \ | |
| "${VERSION_CODENAME}" \ | |
| "main" | |
| msg_ok "Set up Netways Repositories" | |
| setup_deb822_repo \ | |
| "netways-extras" \ | |
| "https://packages.netways.de/netways-repo.asc" \ | |
| "https://packages.netways.de/extras/debian/" \ | |
| "${VERSION_CODENAME}" \ | |
| "main" | |
| setup_deb822_repo \ | |
| "netways-plugins" \ | |
| "https://packages.netways.de/netways-repo.asc" \ | |
| "https://packages.netways.de/plugins/debian/" \ | |
| "${VERSION_CODENAME}" \ | |
| "main" |
I think we have some code in tools.func for handling things like version codename etc, so no need to source them, right @MickLesk ?
| msg_info "Setting up Icinga Repository" | ||
| setup_deb822_repo \ | ||
| "icinga-stable" \ | ||
| "https://packages.icinga.com/icinga.key" \ | ||
| "https://packages.icinga.com/debian/" \ | ||
| "icinga-${VERSION_CODENAME}" \ | ||
| "main" | ||
| msg_ok "Set up Icinga Repository" |
There was a problem hiding this comment.
| msg_info "Setting up Icinga Repository" | |
| setup_deb822_repo \ | |
| "icinga-stable" \ | |
| "https://packages.icinga.com/icinga.key" \ | |
| "https://packages.icinga.com/debian/" \ | |
| "icinga-${VERSION_CODENAME}" \ | |
| "main" | |
| msg_ok "Set up Icinga Repository" | |
| setup_deb822_repo \ | |
| "icinga-stable" \ | |
| "https://packages.icinga.com/icinga.key" \ | |
| "https://packages.icinga.com/debian/" \ | |
| "icinga-${VERSION_CODENAME}" \ | |
| "main" |
| fetch_and_deploy_gh_release "pve" "nbuchwitz/icingaweb2-module-pve" "tarball" "latest" "/usr/share/icingaweb2/modules/pve" | ||
| fetch_and_deploy_gh_release "check_pve" "nbuchwitz/check_pve" |
There was a problem hiding this comment.
those not inside an msg block
…out adding CREATE DATABASE IF NOT EXISTS to function
… module. I'll try to push that directly to the x509 project as you will ask me if it's possible to download it from somewhere
| MARIADB_DB_NAME="reporting" MARIADB_DB_USER="reporting" setup_mariadb_db | ||
| REPORTING_DB_PW=$MARIADB_DB_PASS | ||
| cat <<EOF | mariadb || { msg_error "Failed to alter databases"; exit 1; } | ||
| ALTER DATABASE director CHARACTER SET utf8 COLLATE utf8_unicode_ci; |
There was a problem hiding this comment.
I think this should be default https://github.com/community-scripts/ProxmoxVED/blob/main/misc/tools.func#L3899
5e52452 to
b5171d2
Compare
|
This PR has been marked as stale. It will be closed if no new commits are added in 7 days. |
|
@chrnie Closing stale PR due to inactivity (no commits for 7 days after stale label). |
✍️ Description
New Script for icinga
This will install a LXC container (debian) with
✅ Prerequisites (X in brackets)
🛠️ Type of Change (X in brackets)
README,AppName.md,CONTRIBUTING.md, or other docs.🔍 Code & Security Review (X in brackets)
Code_Audit.md&CONTRIBUTING.mdguidelinesAppName.sh,AppName-install.sh,AppName.json)📋 Additional Information (optional)
📦 Application Requirements (for new scripts)
https://github.com/icinga/icinga2