Page 1 of 1

Nagios Linux client install nrpe issue

Posted: Thu Mar 29, 2012 9:43 am
by cmort
Nagios XI 2011R2.2
Installed nagios client for Linux 5 , linux-nrpe-agent.tar.gz. the install completes but I notice at the end a couple of errors about "/etc/init.c/nrpe no such file or directory exists, I enter the allowed IP address of my Nagios server and the install completes sucessfully
I then go to the NagiosXI gui and configure/install this linux host. All the jobs, disk usage, cpu stats, memory... all fail with "connection refused by host"
Ping job is the only one that succeeds.
I have looked on line and all trouble shooting that I have found refer to the etc/init.d/nrpe which does not exist.
I have found "nrpe.cfg" in two locations on my client.
Here
/data/tmp/Nagios/linux-nrpe-agent/subcomponents/nrpe/mods/cfg/nrpe.cfg
and here
/usr/local/nagios/etc/nrpe.cfg
neither one has my nagios server address in the Allowed section only the local host 127.0.0.1

What am I missing???

Thanks in advance.

Re: Nagios Linux client install nrpe issue

Posted: Thu Mar 29, 2012 10:31 am
by scottwilkerson
Run the following

Code: Select all

yum -y install autoconf gcc glibc libmcrypt-devel make openssl-devel perl perl-Net-SMTP-TLS sudo sysstat xinetd
then re-run ./fullinstall

We have seen instances where all of the dependencies aren't getting installed and ./fullinstall is continuing anyways.

Re: Nagios Linux client install nrpe issue

Posted: Thu Mar 29, 2012 2:28 pm
by cmort
Scott, thanks again. The underliying issue turned out to be the yum.conf file. We modify it with the paremeter "exclude-kernel*". This was preventing kernel-headers and any other serivces dependent on it from being updated or installed. .Once I remmed this out I was able to run your command and it updated successfully and the ./fullinstall ran without error

Re: Nagios Linux client install nrpe issue

Posted: Thu Mar 29, 2012 3:56 pm
by scottwilkerson
Excellent. We ran into this another time this week and are going to have the install script changed to it stops and errors when this happens.