amazon-linux-2023 icon indicating copy to clipboard operation
amazon-linux-2023 copied to clipboard

[Package Request] - nrpe, nagios-plugins-nrpe

Open raywang opened this issue 2 years ago • 26 comments

What package is missing from Amazon Linux 2023? Please describe and include package name. nrpe: Host/service/network monitoring agent for Nagios nagios-plugins-nrpe: Provides nrpe plugin for Nagios

Is this an update to existing package or new package request? new package request

Is this package available in Amazon Linux 2? If it is available via external sources such as EPEL, please specify. Not in AL2, but available in EPEL 9

Any additional information you'd like to include. (use-cases, etc) There is open issue which include part of this request, https://github.com/amazonlinux/amazon-linux-2023/issues/54 However, the latest comments was from 2021

raywang avatar Jun 05 '23 03:06 raywang

Similar request here. Still using Nagios checks a lot. Packages missing now compared to AmazonLinux2 (mostly through EPEL):

nagios-plugins perl-Nagios-Plugin perl-Net-DNS perl-Net-Telnet perl-Cache-Memcached perl-Getopt-Mixed perl-LWP-UserAgent-Determined nagios-plugins-users nagios-plugins-http nagios-plugins-disk nagios-plugins-load nagios-plugins-dns nagios-plugins-mailq nagios-plugins-ping nagios-plugins-procs nagios-plugins-tcp nagios-plugins-log nagios-plugins-ldap nagios-plugins-file_age

jalbstmeijer avatar Jul 10 '23 12:07 jalbstmeijer

One more here requesting nagios be added

azfdgdasfgdagf avatar Jul 13 '23 19:07 azfdgdasfgdagf

+1

IkKan avatar Aug 25 '23 11:08 IkKan

Need this

seanthebear avatar Aug 30 '23 14:08 seanthebear

In the meantime started using the Nagios plugin packages from

https://archives.fedoraproject.org/pub/archive/fedora/linux/updates/36/Everything/x86_64/Packages/

Not a great option, but at least something.

Hope we will see Nagios plugins support in AmazonLinux2023 soon.

jalbstmeijer avatar Sep 26 '23 08:09 jalbstmeijer

In the meantime started using the Nagios plugin packages from

https://archives.fedoraproject.org/pub/archive/fedora/linux/updates/36/Everything/x86_64/Packages/

Not a great option, but at least something.

Hope we will see Nagios plugins support in AmazonLinux2023 soon.

Hi @jalbstmeijer, any instructions for these please? I tried installing all missing packages via dnf, rpm (from your source), still it complains with one final thing

error: Failed dependencies: libldap.so.2()(64bit) is needed by nagios-plugins-ldap-2.4.0-6.fc36.x86_64 libldap.so.2(OPENLDAP_2.200)(64bit) is needed by nagios-plugins-ldap-2.4.0-6.fc36.x86_64

Already openldap is installed on the instance by default. Installed Packages Name : openldap Version : 2.4.57 Release : 6.amzn2023.0.6 Architecture : x86_64 Size : 697 k Source : openldap-2.4.57-6.amzn2023.0.6.src.rpm Repository : @System

Any help will be greatly appreciated! 🙏

reddyshyam avatar Sep 27 '23 08:09 reddyshyam

@reddyshyam sure, trying to resolve dependencies manually is a pain. So leave that up to yum/dnf. And yes indeed the openldap package from Fedora36 is a dependency of the nagios ldap check package.

/etc/yum.repos.d/fedora.repo

[fedora]
name=Extra Packages Fedora 36 packages for nagios - $basearch
baseurl=https://archives.fedoraproject.org/pub/archive/fedora/linux/updates/36/Everything/x86_64/
failovermethod=priority
enabled=0
gpgcheck=0
yum install --enablerepo fedora nagios-plugins-load nagios-plugins-ldap

jalbstmeijer avatar Sep 27 '23 08:09 jalbstmeijer

@reddyshyam sure, trying to resolve dependencies manually is a pain. So leave that up to yum/dnf. And yes indeed the openldap package from Fedora36 is a dependency of the nagios ldap check package.

/etc/yum.repos.d/fedora.repo

[fedora]
name=Extra Packages Fedora 36 packages for nagios - $basearch
baseurl=https://archives.fedoraproject.org/pub/archive/fedora/linux/updates/36/Everything/x86_64/
failovermethod=priority
enabled=0
gpgcheck=0
yum install --enablerepo fedora nagios-plugins-load nagios-plugins-ldap

Thanks @jalbstmeijer, bit of a noob here so please excuse me. I ran the above yum after adding the repo, it downloaded 30%, froze for a while and the process got killed. Not sure what happened. System rebooted too I think.

I tried again and get the below now.

yum install --enablerepo fedora nagios-plugins-load nagios-plugins-ldap
Killed

Checked verbose option, it complained "Unknown configuration option: failovermethod = priority in /etc/yum.repos.d/fedora.repo"

Commented it out and ran again

yum install --enablerepo fedora nagios-plugins-load nagios-plugins-ldap -v Loaded plugins: builddep, changelog, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, groups-manager, needs-restarting, playground, release-notification, repoclosure, repodiff, repograph, repomanage, reposync, supportinfo YUM version: 4.12.0 cachedir: /var/cache/dnf User-Agent: constructed: 'libdnf (Amazon Linux 2023; generic; Linux.x86_64)' repo: using cache for: amazonlinux amazonlinux: using metadata from Fri Aug 4 00:09:01 2023. repo: using cache for: kernel-livepatch kernel-livepatch: using metadata from Wed Aug 16 04:49:13 2023. Extra Packages Fedora 36 packages for nagios - x86_64 19 kB/s | 8.1 kB 00:00 reviving: 'fedora' can be revived - repomd matches.

It just hung after this.

reddyshyam avatar Sep 27 '23 09:09 reddyshyam

@reddyshyam Sorry, no idea why you have that problem. Maybe a very small instance type, running out of resources? Also check "dmesg", maybe the OOM memory killer intervenes.

jalbstmeijer avatar Sep 27 '23 10:09 jalbstmeijer

@reddyshyam Sorry, no idea why you have that problem. Maybe a very small instance type, running out of resources? Also check "dmesg", maybe the OOM memory killer intervenes.

You are spot on! 👏 Let me upgrade, run and then downgrade. Thanks again, you have been a great help. 🙏🙏🙏

reddyshyam avatar Sep 27 '23 10:09 reddyshyam

@jalbstmeijer, a quick question, not urgent at all, so please answer at your convenience. You did mention about resolving dependencies manually is a pain which indeed is.

Is there a single line yum command to install all nagios plugins resolving all dependencies please?

reddyshyam avatar Sep 27 '23 11:09 reddyshyam

@reddyshyam I would guess

yum install --enablerepo fedora nagios-plugins-*

jalbstmeijer avatar Sep 27 '23 11:09 jalbstmeijer

@reddyshyam I would guess

yum install --enablerepo fedora nagios-plugins-*

Thanks @jalbstmeijer. That would be too good to be true. 😄 Would try it out on the next instance If I need to build.

Once again many thanks for your and patience! 🙏 Really appreciate it! 👍

reddyshyam avatar Sep 27 '23 11:09 reddyshyam

Similar request here. Here are the packages we use on AL2:

nrpe
nagios-plugins-nrpe

nagios-common
nagios-plugins-ping
nagios-plugins-http
nagios-plugins-tcp
nagios-plugins-perl
nagios-plugins-sensors
nagios-plugins-swap
nagios-plugins-users
nagios-plugins-procs
nagios-plugins-ssh
nagios-plugins-icmp
nagios-plugins-nrpe
nagios-plugins-2.2.1
nagios-plugins-mailq
nagios-plugins-disk
nagios-plugins-load
nagios-plugins-file_age

mbialozor avatar Sep 29 '23 08:09 mbialozor

Hello, I have build a nagios nrpe for Amazon Linux 2023 based on EPEL 9 repository, i had to disable plugin freerad who was not compatible and disable some feature who was useless in my case and impossible to compile, hope that will work for you. You can find source in same location https://github.com/csabattier/amazonlinux/tree/main/packages/SRPMS, if you want use it as is add this in your /etc/yum.repo/amazonlinux-nagios.repo

[amazonlinux-nagios] name=Nagios for Amazon Linux 2023 baseurl=https://raw.githubusercontent.com/csabattier/amazonlinux/main/packages enabled=1 repo_gpgcheck=0 type=rpm gpgcheck=0

csabattier avatar Oct 25 '23 12:10 csabattier

+1 for nrpe, nagios-plugins-nrpe & nagios-common

qbazak avatar Oct 25 '23 12:10 qbazak

+1 for nrpe, nagios-plugins-nrpe & nagios-common

s4a-mjarosz avatar Oct 25 '23 12:10 s4a-mjarosz

@reddyshyam sure, trying to resolve dependencies manually is a pain. So leave that up to yum/dnf. And yes indeed the openldap package from Fedora36 is a dependency of the nagios ldap check package.

/etc/yum.repos.d/fedora.repo

[fedora]
name=Extra Packages Fedora 36 packages for nagios - $basearch
baseurl=https://archives.fedoraproject.org/pub/archive/fedora/linux/updates/36/Everything/x86_64/
failovermethod=priority
enabled=0
gpgcheck=0
yum install --enablerepo fedora nagios-plugins-load nagios-plugins-ldap

@jalbstmeijer bad idea to disable gpgcheck, much better to enable it back gpgcheck=1 and add key:

wget https://src.fedoraproject.org/rpms/fedora-repos/raw/rawhide/f/RPM-GPG-KEY-fedora-36-primary

rpm --import RPM-GPG-KEY-fedora-36-primary

amelnikoff avatar Nov 09 '23 07:11 amelnikoff

@amelnikoff you are absolutely right, good you added the improvement remark as it seems my quick/dirty workaround might actually be used while waiting for official Amazon packages.

jalbstmeijer avatar Nov 09 '23 08:11 jalbstmeijer

Mixing repos of different OS sounds a bit Frankenstein-ish, I'd rather just take those source packages and re-build binary ones on the target OS (with whatever modifications necessary).

CC @julianbrost CC @bobapple

Al2Klimov avatar Nov 09 '23 09:11 Al2Klimov

Mixing repos of different OS sounds a bit Frankenstein-ish, I'd rather just take those source packages and re-build binary ones on the target OS (with whatever modifications necessary).

CC @julianbrost CC @bobapple

@Al2Klimov I think, this what been asked initially from Amazon Linux team.

amelnikoff avatar Nov 09 '23 11:11 amelnikoff

Huge +1 for nrpe, nagios modules and perl modules to support them. Already having to rebuild enough stuff in house to fill gaps without basic monitoring stuff :(

thowat avatar Nov 23 '23 12:11 thowat

Huge +1 for nrpe, nagios modules and perl modules to support them. Already having to rebuild enough stuff in house to fill gaps without basic monitoring stuff :(

AWS isn't listening to users anymore. I am quite tempted to move away to Ubuntu or something. Just to keep the maintence minimum at their end, they are restricting almost everything

reddyshyam avatar Nov 23 '23 13:11 reddyshyam

+1

bahaines avatar Aug 22 '24 17:08 bahaines

+1

For us as monitoring company this is especially awkward:

https://github.com/Icinga/icinga2/pull/9864/files#diff-ec6d1e4d67a6159d6a20deb0b605ed229f49686e8bc30f186836e04769336001R425-R433

Like, err, here – our super-cool @Icinga 2! It monitors your entire infrastructure using Nagios Plugins- Oh. AL 2023 doesn't provide such... 😅🙈

Al2Klimov avatar Aug 26 '24 08:08 Al2Klimov

We decided to move to AlmaLinux 9 instead of Amazon Linux 2023 to get the support of Nagios and EPEL in general.

mbialozor avatar Oct 04 '24 05:10 mbialozor

Thank you for your patience. These packages are now available as part of the SPAL Repository for AL2023. Please use these resources to familiarize yourself on installing SPAL repository and the packages. SPAL Technical Documentation, SPAL list of packages.

SreeSunku avatar Nov 24 '25 19:11 SreeSunku