Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
TetraWiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
MCA - Building Process for DR NAGIOS Server
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
[[category:MCA-Infosys]] <div style="text-align:center;"><u>'''Building Process for DR NAGIOS Server (10.80.7.70)'''</u></div> __NOTOC__ == <div style="margin-left:0cm;margin-right:0cm;">'''Table of Contents'''</div> == [[#RefHeading23461339682461|Pre-requisites]] [[#RefHeading36761339682461|Nagios Installation]] [[#RefHeading36781339682461|PNP4Nagios Installation]] [[#RefHeading36801339682461|Nagvis Installation]] [[#RefHeading36821339682461|MRTG Instalation ]] [[#RefHeading36841339682461|Smokeping Installation]] [[#RefHeading36861339682461|Final Steps ]] = {{anchor|RefHeading23461339682461}} Pre-requisites = * Disable selinux * Yum repo server should be there so that Yum can work * Proxy server should allow this Server to go out via 3128 so set following at .bashrc or at command prompt ** export http_proxy=[http://10.64.23.35:3128/ http://10.64.23.35:3128] ** export ftp_proxy=[http://10.64.23.35:3128/ http://10.64.23.35:3128] ** export https_proxy=[http://10.64.23.35:3128/ http://10.64.23.35:3128] ** export HTTP_PROXY=[http://10.64.23.35:3128/ http://10.64.23.35:3128] ** export HTTPS_PROXY=[http://10.64.23.35:3128/ http://10.64.23.35:3128] ** export FTP_PROXY=[http://10.64.23.35:3128/ http://10.64.23.35:3128] * Install rpmforge and epel repositories ( get it from old server ) * '''Network team needs to allow 10.80.7.70 for snmp polling ''' * '''Storage team needs to allow 10.80.7.70 for snmp polling ''' * '''Unix team needs to add 10.80.7.70 to all the server in nrpe configurations''' * '''Wintel team needs to add 10.80.7.70 to all servers in nsclient configuration''' = {{anchor|RefHeading36761339682461}} Nagios Installation = * Rsync all the data from /opt , rsync -avrlv 10.64.7.70:/opt/ /opt/ * Referance URL http://nagios.sourceforge.net/docs/3_0/quickstart-fedora.html * yum install httpd php gcc glibc glibc-common gd gd-devel net-snmp-utils net-snmp-libs mrtg-libs mrtg * /usr/sbin/useradd -m nagios * passwd nagios * /usr/sbin/groupadd nagcmd * /usr/sbin/usermod -a -G nagcmd nagios * /usr/sbin/usermod -a -G nagcmd apache * cd /opt/nagios/ * ./configure --with-command-group=nagcmd * make all * make install * make install-init * make install-config * make install-commandmode * make install-webconf * service httpd restart * cd nagios-plugins-1.4.16 * ./configure --with-nagios-user=nagios --with-nagios-group=nagios * make && make install * Rsync the data of nagios rsync -avrlv 10.64.7.70:/usr/local/nagios/ /usr/local/nagios/ = {{anchor|RefHeading36781339682461}} PNP4Nagios Installation = * Reference document http://linuxdrops.com/install-pnp4nagios-graphing-solution-for-nagios/ * yum install perl-Time-HiRes libtool-ltdl rrdtool rrdtool-devel php-rrdtool perl-rrdtool php-gd php php-pdo php-common * cd /opt/pnp4nagios-0.6.20 * ./configure * make all * make fullinstall * Rsync the data from old server , rsync -avrlv 10.64.7.70:/usr/local/pnp4nagios/ /usr/local/pnp4nagios/ * /etc/init.d/nagios restart = {{anchor|RefHeading36801339682461}} Nagvis Installation = * Ist Install β NDOUTILs - [http://linuxdrops.com/ndoutils-on-centos-56-fedora/ http://linuxdrops.com/ndoutils-on-centos-56-fedora/] * yum install gcc gcc-c++ libdbi-dbd-mysql mysql mysql-devel mysql-server * <nowiki># mysql -u root -p </nowiki> * mysql> create database nagios; * mysql> GRANT ALL ON nagios.* TO 'nagios'@'localhost' IDENTIFIED BY "nagios"; * mysql> FLUSH PRIVILEGES; * mysql> quit * <nowiki># cd /opt/ndoutils-1.4b9 </nowiki> * <nowiki># ./configure </nowiki> * <nowiki># make</nowiki> * <nowiki># cd /opt/ndoutils-1.4b9/db/ </nowiki> * <nowiki># ./installdb -u nagios -p nagios -h localhost -d nagios</nowiki> * copy the init script /etc/init.d/ndo2db from old server and start . Nagios configuartion are all there as it was copied . * Now Install mk_livestatus β Referance [http://mathias-kettner.de/checkmk_livestatus.html http://mathias-kettner.de/checkmk_livestatus.html] * cd /opt/<span style="color:#000000;">mk-livestatus-1.1.6p1</span> * <span style="color:#000000;">./configure</span> * <span style="color:#000000;">make && make install </span> * Restart nagios ( Check for nagios log if any error ) * Now Nagvis - Referance document - http://linuxdrops.com/install-nagvis-for-nagios/ * yum install rsync graphviz * cd /opt/nagvis-1.7.7 * ./install.sh * [http://ip-address/nagvis http://ip-address/nagvis] , username=admin , password β admin * Rsync the nagvis data , rsync -avrlv 10.64.7.70:/usr/local/nagvis/ /usr/local/nagvis/ = {{anchor|RefHeading36821339682461}} MRTG Instalation = * Rsync the mrtg files - rsync -avrlv 10.64.7.70:/etc/mrtg/ /etc/mrtg/ and rsync -avrlv 10.64.7.70:/opt/mrtg/ /opt/mrtg/ * Set the crontab - */5 * * * * sh /etc/mrtg/scripts/mrtg-gen.sh * Check the graphs on network Devices = {{anchor|RefHeading36841339682461}} Smokeping Installation = * Referance- http://www.wedebugyou.com/2012/11/how-to-install-and-configure-smokeping-on-centos-6/ * yum install mod_fcgid httpd httpd-devel rrdtool fping wget curl bind-utils gcc make * yum install perl perl-Net-Telnet perl-Net-DNS perl-LDAP perl-libwww-perl perl-RadiusPerl perl-IO-Socket-SSL perl-Socket6 perl-CGI-SpeedyCGI perl-FCGI perl-RRD-Simple perl-CGI-SpeedCGI perl-ExtUtils-MakeMaker * cd /opt/smokeping/ * <nowiki># ./configure βprefix=/opt/smokeping ; make install </nowiki> * Rsync the data rsync -avrlv 10.64.7.70:/opt/smokeping/ /opt/smokeping/ * copy /etc/init.d/smokeping , copy /etc/httpd/conf.d/smokeping.cong * Restart smokeping and httpd services = {{anchor|RefHeading36861339682461}} Final Steps = * Copy postfix configuration /etc/postfix . * rsync -avrlv 10.64.7.70:/etc/mrtg/ /etc/mrtg/ * rsync -avrlv 10.64.7.70:/opt/mrtg/ /opt/mrtg/ * rsync -avrlv 10.64.7.70:/usr/local/nagios/etc/ /usr/local/nagios/etc/ * rsync -avrlv 10.64.7.70:/usr/local/nagios/bin/pnp* /usr/local/nagios/bin/ - only once * rsync -avrluv 10.64.7.70:/usr/local/nagios/libexec/ /usr/local/nagios/libexec/ -only once * rsync -avrlv 10.64.7.70:/usr/local/nagvis/ /usr/local/nagvis/ * rsync -avrlv 10.64.7.70:/usr/local/pnp4nagios/ /usr/local/pnp4nagios/ * Activate cron * Activate postfix , chkconfig on * rsync -avrlv 10.64.7.70:/usr/local/nagios/var/archives/ /usr/local/nagios/var/archives/ - one time * rsync -avrlv 10.64.7.70:/usr/local/nagios/var/*.out /usr/local/nagios/var/ * rsync -avrlv 10.64.7.70:/usr/local/nagios/var/*.dat /usr/local/nagios/var/ * rsync -avrlv 10.64.7.70:/usr/local/nagios/var/nagios.log /usr/local/nagios/var/ * rsync -avrlv 10.64.7.70:/usr/local/nagios/var/spool/ /usr/local/nagios/var/spool/
Summary:
Please note that all contributions to TetraWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
TetraWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Template used on this page:
Template:Anchor
(
edit
)