Page 1 of 1

Nagios XI - Installing linux agent (NRPE)

Posted: Fri May 15, 2015 8:26 am
by amit.ahuja
Hello,

I am trying to install NRPE Agent on RHEL 6 machine, I got the tar and untared it now running the command ./fullinstall -n so that it can run in non-interactive mode (aim is to come up with chef- ruby script to do the agent installation) but then it stops and prompt me at Allow from: option, which I have to either manully give the IP address or press enter ( how can I avoid that so that without pressing enter or passing the value it can take default localhost value)

Can some one please shed some light here.

Thanks,
Amit

Re: Nagios XI - Installing linux agent (NRPE)

Posted: Fri May 15, 2015 9:46 am
by jdalrymple
I haven't used this cookbook so I cannot vouch for it: https://github.com/tas50/chef-nrpe

This does not directly answer your question though. If you wish to reinvent the wheel - you can comment out that section of the fullinstall script and it won't hurt anything. On my box lines 21-42 of subcomponents/install

Re: Nagios XI - Installing linux agent (NRPE)

Posted: Fri May 15, 2015 10:19 am
by gormank
Try -n...
cd /tmp/linux-nrpe-agent; ./fullinstall -n

You'll want to add allowed hosts in nrpe.cfg later, or store it on the nagios server and wget it for example.
cd /usr/local/nagios/etc/
wget http://nagios/agents/nrpe.cfg

Re: Nagios XI - Installing linux agent (NRPE)

Posted: Fri May 15, 2015 11:00 am
by amit.ahuja
Thanks for your response gormank, I have tried what you have suggested to run as cd /tmp/linux-nrpe-agent; ./fullinstall -n

but it still prompts for Allow from -

Amit

Re: Nagios XI - Installing linux agent (NRPE)

Posted: Fri May 15, 2015 11:37 am
by jdalrymple
Consider the solution I provided? Or alternatively just compile from source instead of using the fullinstall script?