NRPE: Installing the init script

I followed the instruction from this guide.

There is a line sudo make install-xinetd which is not suitable for Ubuntu Server 12.04 LTS, the directory /etc/xinet.d is in RedHat/Centos but in Ubuntu the equivalent is /etc/init.d/

The below steps are from this guide.

cyruslab@Nachos:~/download/nrpe-2.13$ sudo cp init-script.debian /etc/init.d/nrpe
cyruslab@Nachos:~/download/nrpe-2.13$ sudo chmod 700 /etc/init.d/nrpe
cyruslab@Nachos:~/download/nrpe-2.13$ sudo update-rc.d nrpe defaults
update-rc.d: warning: /etc/init.d/nrpe missing LSB information
update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
 Adding system startup for /etc/init.d/nrpe ...
   /etc/rc0.d/K20nrpe -> ../init.d/nrpe
   /etc/rc1.d/K20nrpe -> ../init.d/nrpe
   /etc/rc6.d/K20nrpe -> ../init.d/nrpe
   /etc/rc2.d/S20nrpe -> ../init.d/nrpe
   /etc/rc3.d/S20nrpe -> ../init.d/nrpe
   /etc/rc4.d/S20nrpe -> ../init.d/nrpe
   /etc/rc5.d/S20nrpe -> ../init.d/nrpe
cyruslab@Nachos:~/download/nrpe-2.13$
Advertisements
This entry was posted in Network Maintenance and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s