ssh vs nrpe
Re: ssh vs nrpe
So here is another related question.....I sort of like the idea of not running nrpe under xinetd and using the daemon instead. What are the pros/cons to doing that? Anyone have a thought on that?
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
Re: ssh vs nrpe
It really comes down to what xinetd provides, quoted from http://linux.die.net/man/8/xinetd:BanditBBS wrote:So here is another related question.....I sort of like the idea of not running nrpe under xinetd and using the daemon instead. What are the pros/cons to doing that? Anyone have a thought on that?
If you are not concerned about the added functionality of xinetd, nrpe can be compiled very easily without it:So far, the only reason for the existence of a super-server was to conserve system resources by avoiding to fork a lot of processes which might be dormant for most of their lifetime. While fulfilling this function, xinetd takes advantage of the idea of a super-server to provide features such as access control and logging.
First, we need to install NRPE - I will use version 2.15.
I used the following guide as a point of reference: http://nagios.sourceforge.net/docs/nrpe/NRPE.pdf.
I will assume that NRPE is being compiled on Nagios 4.x.
1. Download the tarball and extract it in your /tmp directory.
Code: Select all
cd /tmp && wget http://sourceforge.net/projects/nagios/files/nrpe-2.x/nrpe-2.15/nrpe-2.15.tar.gz/download && tar xfz download && cd nrpe*Code: Select all
useradd nagios && passwd nagiosCode: Select all
yum install -y mod_ssl openssl-devel gcc make openssl perlCode: Select all
bash configure && make all && make installCode: Select all
mkdir /usr/local/nagios/etc ; cp sample-config/nrpe.cfg /usr/local/nagios/etc/nrpe.cfg ; chown -R nagios:nagios /usr/local/nagios/etcCode: Select all
iptables -A INPUT -s <nagiosserverip> -p tcp -m tcp --dport 5666 -m state --state NEW,ESTABLISHED -j ACCEPT && service iptables saveCode: Select all
/usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -dCode: Select all
ps -ef | grep nrpe | grep -v grepCode: Select all
/usr/local/nagios/libexec/check_nrpe -H 127.0.0.1Notes:
To have NRPE start on boot, consider adding an entry similar to the following to /etc/rc.local:
Code: Select all
echo "/usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d" >> /etc/rc.localCode: Select all
yum remove xinetd
/usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -dRe: ssh vs nrpe
jolson - Really appreciate that in depth reply 
Some of the servers won't have xinetd installed and since we are a hosting company, I really want to install as few items as possible on customer's machines. And since some won't have xinetd I'd just rather standardize for us as running as daemon. So I think my design as done and time to proceed with the install.
Leave this open and I'll update once I am done with my automation method for anyone else that may be interested.
Some of the servers won't have xinetd installed and since we are a hosting company, I really want to install as few items as possible on customer's machines. And since some won't have xinetd I'd just rather standardize for us as running as daemon. So I think my design as done and time to proceed with the install.
Leave this open and I'll update once I am done with my automation method for anyone else that may be interested.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
Re: ssh vs nrpe
Great! As far as the age old nrpe vs. check_by_ssh discussion goes:


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.
"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: ssh vs nrpe
I'm most certainly interested how you are planning to do this. Go bandit..Leave this open and I'll update once I am done with my automation method for anyone else that may be interested.
Nagios XI 5.8.1
https://outsideit.net
https://outsideit.net
Re: ssh vs nrpe
We shall indeed leave this open.
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.
"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: ssh vs nrpe
Hey WillemDH and whoever, linked is a web page of mine detailing how I did everything on my end. This is working awesomely!
Feel free to close this thread now if you'd like...people can PM me if they have questions
http://www.bandits-home-on-the-web.com/ ... date-nrpe/
Feel free to close this thread now if you'd like...people can PM me if they have questions
http://www.bandits-home-on-the-web.com/ ... date-nrpe/
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github