cpanel / elevate

elevate your cPanel&WHM CentOS 7 server to Almalinux 8
https://cpanel.github.io/elevate/
BSD 2-Clause "Simplified" License
45 stars 30 forks source link

Zabbix repo not supported #123

Open kenneth-vkd opened 2 years ago

kenneth-vkd commented 2 years ago

We monitor our servers using Zabbix During /scripts/elevate-cpanel --check it reports that this is not supported

* 21-08:07:25 (3018) [ERROR] 1 package(s) installed from unsupported YUM repo 'zabbix' from /etc/yum.repos.d/zabbix.repo
* 21-08:07:25 (3018) [ERROR] 1 package(s) installed from unsupported YUM repo 'zabbix-agent2-plugins' from /etc/yum.repos.d/zabbix-agent2-plugins.repo

During upgrade we can remove the agent and reinstall the repo for AlmaLinux 8, but would be much easier to have it "just work"

zuckerbrin commented 1 year ago

try to add zabbix.repo to VETTED_YUM_REPO block of elevate-cpanel script: use constant VETTED_YUM_REPO => qw{ CentOS-Base.repo CentOS-CR.repo CentOS-Debuginfo.repo CentOS-fasttrack.repo CentOS-Media.repo CentOS-Sources.repo CentOS-Vault.repo CentOS-x86_64-kernel.repo cPAddons.repo cpanel-plugins.repo cp-dev-tools.repo EA4.repo ELevate.repo elasticsearch.repo epel-testing.repo epel.repo imunify-rollout.repo imunify360.repo influxdb.repo kernelcare.repo wp-toolkit-cpanel.repo imunify360-ea-php-hardened.repo droplet-agent.repo zabbix.repo }

toddr commented 1 year ago

try to add zabbix.repo to VETTED_YUM_REPO block of elevate-cpanel script: use constant

Doing so may fail to upgrade zabbix appropriately. We would still recommend you remove it. elevate, and re-install later. We are working with upstream to make this easier in the future.

zuckerbrin commented 1 year ago

understood, will use the trick in tesing env only. thanks for reply,

toddr commented 1 year ago

@zuckerbrin were you successful with the recommended plan?

toddr commented 1 year ago
$>cat /etc/yum.repos.d/zabbix.repo
[zabbix]
name=Zabbix Official Repository - $basearch
baseurl=https://repo.zabbix.com/zabbix/6.4/rhel/8/$basearch/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591

[zabbix-non-supported]
name=Zabbix Official Repository non-supported - $basearch
baseurl=https://repo.zabbix.com/non-supported/rhel/8/$basearch/
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX
gpgcheck=1