Nagios XI - Installing linux agent (NRPE)

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
amit.ahuja
Posts: 113
Joined: Fri May 15, 2015 8:20 am

Nagios XI - Installing linux agent (NRPE)

Post 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
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Nagios XI - Installing linux agent (NRPE)

Post 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
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: Nagios XI - Installing linux agent (NRPE)

Post 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
amit.ahuja
Posts: 113
Joined: Fri May 15, 2015 8:20 am

Re: Nagios XI - Installing linux agent (NRPE)

Post 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
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Nagios XI - Installing linux agent (NRPE)

Post by jdalrymple »

Consider the solution I provided? Or alternatively just compile from source instead of using the fullinstall script?
Locked