Yum Upgrade system software
Yum Update
Yum Upgrade
Service sshd Restart
Second, server-side service installation
1), Installation Nagios
Useradd Nagios
Groupadd Nagcmd
Usermod-g Nagios,nagcmd Nagios
SCP root@172.26.159.180:/root/xzy/nagios-3.4.1.tar.gz/usr/local/src/nagios-3.4.1.tar.gz
Tar zxf nagios-3.4.1.tar.gz
CD Nagios
./configure--prefix=/usr/local/nagios--with-command-group=nagcmd--enable-nanosleep--enable-event-broker
Make all
Make install
Make Install-init
Make Install-commandmode
Make Install-config
Make install-webconf
Cd.. /
2), Installation Nagios-plugins
SCP root@172.26.159.180:/root/xzy/nagios-plugins-1.4.16.tar.gz/usr/local/src/nagios-plugins-1.4.16.tar.gz
Tar zxf nagios-plugins-1.4.16.tar.gz
CD nagios-plugins-1.4.16
./configure--with-nagios-user=nagios--with-nagios-group=nagios--with-openssl=/usr/bin/openssl-- Enable-perl-modules
Make
Make install
Cd.. /
3), Installation Nrpe
SCP root@172.26.159.180:/root/xzy/nrpe-2.13.tar.gz/usr/local/src/nrpe-2.13.tar.gz
Tar zxf nrpe-2.13.tar.gz
CD nrpe-2.13
./configure--with-nrpe-user=nagios--with-nrpe-group=nagios--with-nagios-user=nagios--with-nagios-group=nagios- -enable-command-args--enable-ssl
Make all
Make Install-plugin
Make Install-daemon
Make Install-daemon-config
Cd.. /
Verifying Nrpe Installation
/usr/local/nagios/libexec/check_load-w 15,10,5-c 30,25,20
4), Installation Ndoutils
SCP root@172.26.159.180:/root/xzy/ndoutils-1.5.2.tar.gz/usr/local/src/ndoutils-1.5.2.tar.gz
Tar zxf ndoutils-1.5.2.tar.gz
CD ndoutils-1.5.2
./configure--prefix=/usr/local/nagios
Make
Make install
CP./config/ndo2db.cfg-sample/usr/local/nagios/etc/ndo2db.cfg
CP./config/ndomod.cfg-sample/usr/local/nagios/etc/ndomod.cfg
CP daemon-init/etc/init.d/ndo2db
Vi/etc/init.d/ndo2db
RRD perl module installed [rrds.pm] change to/USR/LIB64/PERL5/VENDOR_PERL/RRDP.PM
(Can be confirmed by RPM-QL Rrdtool-perl, preferably verified, not necessarily the path above)
PEAR [pear.php] changed to/usr/share/pear/pear.php
(Can be confirmed by RPM-QL Php-pear)
What is the monitoring engine log Directory?==>/usr/local/centreon/log
Default to [/usr/lib/nagios/plugins] ==>/usr/local/nagios/libexec
What is the monitoring engine INIT.D script?
>/etc/init.d/nagios
What is the monitoring engine binary?
>/usr/local/nagios/bin/nagios
What is the monitoring engine configuration directory?
>/usr/local/nagios/etc
Where is the configuration directory for broker module?
>/usr/local/nagios/etc
Where is the init script for broker module Daemon?
>/etc/init.d/ndo2db
Fill in Related projects
NDO ndomod binary changed to/USR/LOCAL/NAGIOS/BIN/NDOMOD.O
Centreon Run Dir directory changed to/usr/local/centreon/var/run
Centstorage RRD directory changed to/usr/local/centreon/var/lib
Centplugins Lib directory changed to/usr/local/centreon/var/lib/centplugins
7), web Interface installation
Browser input: http://172.27.206.7/centreon/
Follow the prompts to complete the setup. Finally, you can login to the interface.
Second, the Client Service installation (add a Nagios acquisition server)
1), Installation Nagios
Useradd Nagios
Groupadd Nagcmd
Usermod-g Nagios,nagcmd Nagios
SCP root@172.26.159.180:/root/xzy/nagios-3.4.1.tar.gz/usr/local/src/nagios-3.4.1.tar.gz
Tar zxf nagios-3.4.1.tar.gz
CD Nagios
./configure--prefix=/usr/local/nagios--with-command-group=nagcmd--enable-nanosleep--enable-event-broker
Make all
Make install
Make Install-init
Make Install-commandmode
Make Install-config
Make install-webconf
Cd.. /
2), Installation Nagios-plugins
SCP root@172.26.159.180:/root/xzy/nagios-plugins-1.4.16.tar.gz/usr/local/src/nagios-plugins-1.4.16.tar.gz
Tar zxf nagios-plugins-1.4.16.tar.gz
CD nagios-plugins-1.4.16
./configure--with-nagios-user=nagios--with-nagios-group=nagios--with-openssl=/usr/bin/openssl-- Enable-perl-modules
Make
Make install
Cd.. /
3), Installation Nrpe
SCP root@172.26.159.180:/root/xzy/nrpe-2.13.tar.gz/usr/local/src/nrpe-2.13.tar.gz
Tar zxf nrpe-2.13.tar.gz
CD nrpe-2.13
./configure--with-nrpe-user=nagios--with-nrpe-group=nagios--with-nagios-user=nagios--with-nagios-group=nagios- -enable-command-args--enable-ssl
Make all
Make Install-plugin
Make Install-daemon
Make Install-daemon-config
Cd.. /
Verifying Nrpe Installation
/usr/local/nagios/libexec/check_load-w 15,10,5-c 30,25,20
4), Installation Ndoutils
SCP root@172.26.159.180:/root/xzy/ndoutils-1.5.2.tar.gz/usr/local/src/ndoutils-1.5.2.tar.gz
Tar zxf ndoutils-1.5.2.tar.gz
CD ndoutils-1.5.2
./configure--prefix=/usr/local/nagios
Make
Make install
CP./config/ndo2db.cfg-sample/usr/local/nagios/etc/ndo2db.cfg
CP./config/ndomod.cfg-sample/usr/local/nagios/etc/ndomod.cfg
CP daemon-init/etc/init.d/ndo2db
5 Add the/etc/nagio directory, copy Centreon on the collection server files to the directory, before the Centreon to increase the acquisition server.
6) Modify the/usr/local/nagios/etc/nagios.cfg file to increase the point to/etc/nagio content
7 Add ndoutile Module loading:
BROKER_MODULE=/USR/LOCAL/NAGIOS/BIN/NDOMOD.O config_file=/etc/nagios/ndomod.cfg
8 Add the/usr/lib/nagios/plugins directory, from the other collection server, copy the directory script to the directory.
9) Start Nagios to see if the Nagios process number is passed to the Centreon, successful delivery, that is, successful installation.
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.