Page 1 of 1

Allow From

Posted: Thu May 23, 2013 12:26 pm
by ttung888
I have installed the Linux-nrpe-agent on the Centos server, I accidently put the wrong allow from IP, how can I change to the correct ip?

thanks

Re: Allow From

Posted: Thu May 23, 2013 12:35 pm
by abrist
You only need to edit the xinetd config, but I will suggest editing the nrpe config, just in case:
Edit /etc/xinetd.d/nrpe
Change:

Code: Select all

only_from = 127.0.0.1 x.x.x.x
(where x.x.x.x is your XI server's ip, this list is space-separated)

Edit /usr/local/nagios/etc/nrpe.cfg
Change:

Code: Select all

allowed_hosts=127.0.0.1
To:

Code: Select all

allowed_hosts=127.0.0.1, x.x.x.x
(where x.x.x.x is your XI server's ip, this list is comma-separated)

Restart xinetd:

Code: Select all

service xinetd restart

Re: Allow From

Posted: Thu May 23, 2013 1:03 pm
by ttung888
I don't even see the nrpe exist at /etc/xinetd.d. please advice.

thanks

Re: Allow From

Posted: Thu May 23, 2013 4:36 pm
by lmiltchev
How did you install NRPE - did you follow this document?