Is it possible to convert an existing installation of nrpe agent that uses xinetd for restart to be converted to a daemon that uses service nrpe restart/stop/start. This is for Redhat 6 and 7
Thanks,
B
Convert nrpe xinetd startup to a daemon nrpe
-
- Posts: 8
- Joined: Fri May 08, 2015 6:24 am
Re: Convert nrpe xinetd startup to a daemon nrpe
Hello,
Does this accomplish what you're looking to do? I was able to copy this into a CentOS 7 box, at /etc/init.d, chmod +x the script, and then do /etc/init.d/nrpe start/stop/status.
https://exchange.nagios.org/directory/P ... pt/details
Does this accomplish what you're looking to do? I was able to copy this into a CentOS 7 box, at /etc/init.d, chmod +x the script, and then do /etc/init.d/nrpe start/stop/status.
https://exchange.nagios.org/directory/P ... pt/details
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Convert nrpe xinetd startup to a daemon nrpe
Yes, certainly possible.
Remove or disable this file:
- Before you delete note ALL of the values
You MAY need to remove the 5666/nrpe from /etc/services as well.
Then:
Create an init script to manage it:
This is the process I use:
EL6 and technically works on EL7
To create an NRPE init (sysv) script:
EL7
For the systemd unit file:
Let us know if you have any questions or if we can clarify anything for you.
To be super precise you should match your version of NRPE (the commands I use just do the latest master version, update yours accordingly but as long as the binary and config locations match, they should still work).
Remove or disable this file:
- Before you delete note ALL of the values
Code: Select all
/etc/xinetd.d/nrpe
Then:
Code: Select all
service xinetd restart
This is the process I use:
EL6 and technically works on EL7
To create an NRPE init (sysv) script:
Code: Select all
wget https://github.com/NagiosEnterprises/nrpe/archive/master.zip
unzip master.zip
cd nrpe-master
./configure --with-init-type=sysv
make install-init
For the systemd unit file:
Code: Select all
wget https://github.com/NagiosEnterprises/nrpe/archive/master.zip
unzip master.zip
cd nrpe-master
./configure --with-init-type=systemd
make install-init
To be super precise you should match your version of NRPE (the commands I use just do the latest master version, update yours accordingly but as long as the binary and config locations match, they should still work).
Code: Select all
https://github.com/NagiosEnterprises/nrpe/archive/nrpe-2-15.zip