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
Allow From
Re: Allow From
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:
(where x.x.x.x is your XI server's ip, this list is space-separated)
Edit /usr/local/nagios/etc/nrpe.cfg
Change:
To:
(where x.x.x.x is your XI server's ip, this list is comma-separated)
Restart xinetd:
Edit /etc/xinetd.d/nrpe
Change:
Code: Select all
only_from = 127.0.0.1 x.x.x.xEdit /usr/local/nagios/etc/nrpe.cfg
Change:
Code: Select all
allowed_hosts=127.0.0.1Code: Select all
allowed_hosts=127.0.0.1, x.x.x.xRestart xinetd:
Code: Select all
service xinetd restartFormer 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.
"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.
Re: Allow From
I don't even see the nrpe exist at /etc/xinetd.d. please advice.
thanks
thanks
Re: Allow From
How did you install NRPE - did you follow this document?
Be sure to check out our Knowledgebase for helpful articles and solutions!