Page 1 of 1

nrpe install

Posted: Thu Feb 08, 2018 7:53 am
by junkertf
Hello,

I try to install a fresh nagios client (Oracle Linux 7) regarding the manual, found on

https://assets.nagios.com/downloads/nag ... _Agent.pdf

My problem, that i can't set epel repo on the (every) server where i want to use nagios.

Is there any way to install linux nrpe client without epel repo set, or from .rpm package?
Is there any parameter to jump that precheck?
What packages must be installed from that repo?
Is there any supported solution?

Best regards,

Ferenc

Re: nrpe install

Posted: Thu Feb 08, 2018 12:04 pm
by kyang
Hello junkertf,

You could download the rpm from the EPEL mirror. (Although it won't allow for upgrades)

https://support.nagios.com/kb/article.php?id=515#RHEL

Re: nrpe install

Posted: Fri Feb 09, 2018 11:38 am
by junkertf
Hello,

Still same problem there, all OS version install epel release for monitoring plugins.

wget https://dl.fedoraproject.org/pub/epel/e ... noarch.rpm
rpm -ihv epel-release-latest-X.noarch.rpm

Must all monitoring plugin compiled on the server where will be used, or is it possible to naturally scp-ed there?

Another question that perl-Net-SNMP package can be substituted with net-snmp-perl package or not?
On our OEL5 and OEL6 platform i found only the net-snmp-perl installed...

thx, regards,

Ferenc

Re: nrpe install

Posted: Fri Feb 09, 2018 3:30 pm
by tgriep
The link below is Oracle Linux repository where you can download the RPM packages and then manually install them on your server.
http://yum.oracle.com/repo/OracleLinux/ ... index.html

The NRPE Agent rpm should be this link
http://yum.oracle.com/repo/OracleLinux/ ... x86_64.rpm
The plugins should be this link
http://yum.oracle.com/repo/OracleLinux/ ... x86_64.rpm

The net-snmp-perl packages should be the same package, it is just named differently. (lower case)

There may be other required packages so keep track of them so you can use them for your other servers.

If you have some sort of automation tool you can use to copy the RPM files and install them, that should work for you.

Re: nrpe install

Posted: Sat Feb 10, 2018 3:55 am
by junkertf
Thank you for the OL7 packages link!

So actually EPEL repo is needed only for perl-Net-SNMP package what can be substituted with net-snmp-perl package on all other OS version?

More clearly can i use that net-snmp-perl package for the oel5-6 and rhel 5-6-7 nagios-plugins installations (compile) also,
regarding the link https://support.nagios.com/kb/article.php?id=515#RHEL

Except CentOS-OEL-Rhel5 because there autoconf package must be also exists....

Best regards,

Ferenc

Re: nrpe install

Posted: Mon Feb 12, 2018 1:37 pm
by tgriep
I took a look at the packages and you do need to install the perl-Net-SNMP package from the EPEL repo.
They have different contents and both of them need to be installed.

Re: nrpe install

Posted: Tue Feb 13, 2018 2:22 pm
by junkertf
Hmm... seems like that solution route to other questions...

Before i used the nrpe 2.15 version tarball to install nrpe client.
So way the nrpe.cfg not contain any active (all is #-ed out) command definitions and the configuration worked. (the nrpe run from xinetd)
I had many checks in working so way...

The adviced nrpe configuration version is 3.2.x, run as standalone daemon, and its nrpe.cfg also has no one active command.

The key differences are that the 2.15 version worinkg well without any command line, but all the checks of the 3.2.x version nrpe gives me the following error:

NRPE: Command 'check_xxxxxx' not defined error result.

So questions:
- is there supported or not supported nrpe version?
- is there best practice/advice wich version of the nrpe can/must install? (2.15 versus 3.2.x)

I try to find a good but mostly simple way to install nagios nrpe client daemons, but i feel i lost myself in that versions and install methods...


Thanks, best regards,

Ferenc

Re: nrpe install

Posted: Tue Feb 13, 2018 5:46 pm
by tgriep
The new NRPE agent, the default commands are in an include file and not in the nrpe.cfg file.
Take a look at this file to see if it exists and that there are commands defined.

Code: Select all

/usr/local/nagios/etc/nrpe/common.cfg

Re: nrpe install

Posted: Mon Feb 19, 2018 3:32 am
by junkertf
Thank you tgriep!

I had successfully created our linux install scripts regardint the document you've sended...
Tha topic can be closed.

Best regards,

Ferenc