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