Allow From

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ttung888
Posts: 14
Joined: Thu May 23, 2013 12:00 pm

Allow From

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Allow From

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
ttung888
Posts: 14
Joined: Thu May 23, 2013 12:00 pm

Re: Allow From

Post by ttung888 »

I don't even see the nrpe exist at /etc/xinetd.d. please advice.

thanks
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Allow From

Post by lmiltchev »

How did you install NRPE - did you follow this document?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked