Page 1 of 1

NRPE agent install fails on RHEL / CentOS 8.3

Posted: Tue Jan 19, 2021 9:33 am
by WillemDH
Hello,

NRPE Agent fails to install on RHEL / CentOS 8.3, as it requires the rpm package centos-release in get-os-info which is called by fullinstall.

centos-release no longer exists in 8.3 and is replaced by centos-linux-release

So as a temporary workaround we replaced:

Code: Select all

    if rpm -q centos-release; then
By

Code: Select all

    if rpm -q centos-linux-release; then

But it would be nice if this was added by nagios, so this happens out of the box.

Grtz

Willem

Re: NRPE agent install fails on RHEL / CentOS 8.3

Posted: Wed Jan 20, 2021 12:44 pm
by dchurch
Great! If it's working for you now, it sounds like you successfully squashed this bug.

You can feel free to submit an issue or a pull request to the NCPA GitHub project. If you're not comfortable doing that, I would be happy to do it for you.

Re: NRPE agent install fails on RHEL / CentOS 8.3

Posted: Wed Jan 20, 2021 4:28 pm
by WillemDH

Re: NRPE agent install fails on RHEL / CentOS 8.3

Posted: Wed Jan 20, 2021 5:30 pm
by jomann
Thanks Willem, the linux-nrpe.agent.tar.gz has been updated with changes to fix this.