Nagios distributed configuration (1)

Source: Internet
Author: User

 

Figure-nagios

Nagios distributedThe configuration process is as follows:

I. installation and configuration of NSCA plug-in

Http://nchc.dl.sourceforge.net/sourceforge/nagios/nsca-2.7.2.tar.gz

Compile and install nsca:

View Source Code

Print help 0./configure & make all

Main nagios Server:

1. Copy nsca-related files to the nagios directory.

View Source Code

Print help 0cp sample-config/nsca. cfg/usr/local/nagios/etc/

1cp src/nsca/usr/local/nagios/bin/

2 chown nagios. nagios/usr/local/nagios/etc/nsca. cfg

3 chown nagios. nagios/usr/local/nagios/bin/nsca

2. Configure password in the nsca. cfg file

View Source Code

Print help 0vi/usr/local/nagios/etc/nsca. cfg # Remove the password # And set the password

1 password = xxx

3. Enable the nsca Program

View Source Code

Print help 0/usr/local/nagios/bin/nsca-c/usr/local/nagios/etc/nsca. cfg

4. Enable Firewall port 5667

View Source Code

Print help 0 iptables-I RH-Firewall-1-INPUT-m state -- state NEW-m tcp-p tcp -- dport 5667-j ACCEPT

Nagios distributed server:

1. Copy the send_nsca file to the nagios directory.

View Source Code

Print help 0cp sample-config/send_nsca.cfg/usr/local/nagios/etc/

1cp src/send_nsca/usr/local/nagios/bin/

2 chown nagios. nagios/usr/local/nagios/etc/send_nsca.cfg

3 chown nagios. nagios/usr/local/nagios/bin/send_nsca

2. Configure password in the nsca. cfg file

View Source Code

Print help 0vi/usr/local/nagios/etc/send_nsca.cfg # Remove the password # and configure the same password as the master server

1 password = xxx


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.