amazonlinux / amazon-linux-2023

Amazon Linux 2023
https://aws.amazon.com/linux/amazon-linux-2023/
Other
521 stars 39 forks source link

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

Open raywang opened 1 year ago

raywang commented 1 year ago

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

jalbstmeijer commented 1 year ago

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

azfdgdasfgdagf commented 1 year ago

One more here requesting nagios be added

IkKan commented 1 year ago

+1

seanthebear commented 1 year ago

Need this

jalbstmeijer commented 11 months ago

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.

reddyshyam commented 11 months ago

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! 🙏

jalbstmeijer commented 11 months ago

@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
reddyshyam commented 11 months ago

@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.

jalbstmeijer commented 11 months ago

@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.

reddyshyam commented 11 months ago

@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 commented 11 months ago

@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?

jalbstmeijer commented 11 months ago

@reddyshyam I would guess

yum install --enablerepo fedora nagios-plugins-*
reddyshyam commented 11 months ago

@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! 👍

mbialozor commented 11 months ago

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
csabattier commented 10 months ago

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

qbazak commented 10 months ago

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

s4a-mjarosz commented 10 months ago

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

amelnikoff commented 10 months ago

@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
jalbstmeijer commented 10 months ago

@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.

Al2Klimov commented 10 months ago

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

amelnikoff commented 10 months ago

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.

thowat commented 9 months ago

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 :(

reddyshyam commented 9 months ago

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

bahaines commented 3 weeks ago

+1

Al2Klimov commented 2 weeks ago

+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... 😅🙈