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
Nagios XI - Installing linux agent (NRPE)
-
amit.ahuja
- Posts: 113
- Joined: Fri May 15, 2015 8:20 am
-
jdalrymple
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Nagios XI - Installing linux agent (NRPE)
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
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)
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
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)
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
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)
Consider the solution I provided? Or alternatively just compile from source instead of using the fullinstall script?