Tutorial on installing the nrpe client in ubuntu

Source: Internet
Author: User

Tutorial on installing the nrpe client in ubuntu

1. Add users

Useradd-s/sbin/nologin Nagios

2. Copy and install the tar package to the server and decompress it.

Tar-zxvf nrpe-2.15.tar.gz

Tar-zxvf nagios-plugins-2.1.1.tar.gz

3. Compile

Cd nagios-plugins-2.1.1

./Configure -- with-nagios-user = nagios -- with-nagios-group = nagios

Make

Make install

Cd nrpe-2.15

. /Configure -- with-nrpe-user = nagios -- with-nrpe-group = nagios -- with-nagios-user = nagios -- with-nagios-group = nagios -- enable-command-args -- enable-ssl

. /Configure -- enable-command-args -- with-nagios-user = nagios -- with-nagios-group = nagios -- with-ssl =/usr/bin/openssl -- with-ssl- lib =/usr/lib/x86_64-linux-gnu

Make all

Sudo make install

Sudo make install-xinetd

Sudo make install-daemon-config

4. Open the xinetd Startup Script

Vi/etc/xinetd. d/nrpe

Modify the content of only_from and add the IP address of your Nagios server (the address used in this article is 10.100.2.180 ):

Only_from = 127.0.0.1 10.100.2.180

5. Start the nrpe Client

Service xinetd restart

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.