1. Download
#
# cd /opt/Nagios
# tar xvf nsca-2.7.2.tar.gz
# cd ./nsca-2.7.2
#
2. Resolvendo dependencias
#
# yum install mcrypt libmcrypt-dev
#
3. Instalando NSCA
#
# ./configure
# make all
#
4. Configurando NSCA
# echo instalando NSCA (server) ...
# cd /opt/Nagios/nsca-2.7.2
# cp src/nsca /usr/local/nagios/bin/nsca
# cp sample-config/nsca.cfg /usr/local/nagios/etc/nsca.cfg
# echo Configuration file ...
# vim /usr/local/nagios/etc/nsca.cfg
:
server_port=5667
:
password=6M5xKhore5qfKTwY3NLwQT3PPmZJwg5E7ybZnmZLAWRwd3sOjrvvqQ1S4Nxauvdf
:
decryption_method=1
:
# chown nagios:nagios /usr/local/nagios/bin/nsca
# chown nagios:nagios /usr/local/nagios/etc/nsca.cfg
5. Instalando NSCA (client) ...
# echo instalando client NSCA (client) ...
# cd /opt/Nagios/nsca-2.7.2
# cp src/send_nsca /usr/local/nagios/bin/send_nsca
# cp sample-config/send_nsca.cfg /usr/local/nagios/etc/send_nsca.cfg
# vim /usr/local/nagios/etc/send_nsca.cfg
:
password=6M5xKhore5qfKTwY3NLwQT3PPmZJwg5E7ybZnmZLAWRwd3sOjrvvqQ1S4Nxauvdf
:
encryption_method=1
:
# chown nagios:nagios /usr/local/nagios/bin/send_nsca
# chown nagios:nagios /usr/local/nagios/etc/send_nsca.cfg
6. Inicializando deamon ou servico do NSCA (server) ...
# /usr/local/nagios/bin/nsca -c /usr/local/nagios/etc/nsca.cfg
Nenhum comentário:
Postar um comentário