<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Unix Surgeon &#187; free monitoring tool</title>
	<atom:link href="http://www.unixsurgeon.com/kb/tag/free-monitoring-tool/feed" rel="self" type="application/rss+xml" />
	<link>http://www.unixsurgeon.com/kb</link>
	<description>Linux Hosting Solution, Linux Web Hosting Solution, Learn Linux, How to, Server Management , Web Hosting Solution , Linux Solution , KnowledgeBase , Linux Tutorial</description>
	<lastBuildDate>Mon, 06 Feb 2012 10:42:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to install Nagios on Redhat/fedora/CentOS..</title>
		<link>http://www.unixsurgeon.com/kb/how-to-install-nagios-on-redhatfedoracentos.html</link>
		<comments>http://www.unixsurgeon.com/kb/how-to-install-nagios-on-redhatfedoracentos.html#comments</comments>
		<pubDate>Sun, 18 Jul 2010 11:30:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Monitoring Tool]]></category>
		<category><![CDATA[Open Source Applications]]></category>
		<category><![CDATA[free monitoring tool]]></category>
		<category><![CDATA[free monitoring tool for windows & linux]]></category>
		<category><![CDATA[Nagios]]></category>
		<category><![CDATA[open sources monitoring application]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/kb/?p=86</guid>
		<description><![CDATA[Hi,
Today I was hunting about monitoring tool in linux and found lots of monitoring tools (i.e. Nagios, openNMS, Cacti,Centreon etc..) And I try to install nagios. You can also install nagios by following steps :-
Prerequisites:
1. Apache
2. PHP
3. GCC compiler
4. GD development libraries
5. PERL Modules
6. RRDTOOL
And you can install these packages through yum:-



[root@p-root]# yum install httpd
[root@p-root]# [...]]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>Today I was hunting about monitoring tool in linux and found lots of monitoring tools (i.e. Nagios, openNMS, Cacti,Centreon etc..) And I try to install nagios. You can also install nagios by following steps :-</p>
<p>Prerequisites:</p>
<p>1. Apache<br />
2. PHP<br />
3. GCC compiler<br />
4. GD development libraries<br />
5. PERL Modules<br />
6. RRDTOOL</p>
<p>And you can install these packages through yum:-</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>[root@p-root]# yum install httpd</p>
<p>[root@p-root]# yum install php php-mysql php-gd php-ldap php-xml</p>
<p>[root@p-root]# yum install gd  gd-devel</p>
<p>[root@p-root]# yum install gcc  glibc  glibc-common libstdc++-devel gcc-c++</p>
<p>[root@p-root]# yum install install perl-DBI perl-DBD-MySQL</p>
<p>[root@p-root]# yum install install perl-Config-IniFiles</p>
<p>[root@p-root]# yum install install rrdtool perl-rrdtool</p>
<p>Now create new nagios user account and give it password….</p>
<p>[root@p-root]#  useradd  nagios</p>
<p>[root@p-root]#   passwd nagios</p>
<p>Now create nagcmd group for external commands to be submitted through the web interface. Add both the nagios user and the apache user to the group.</p>
<p>[root@p-root]# groupadd  nagcmd</p>
<p>[root@p-root]# usermod –a –G  nagcmd nagios</p>
<p>[root@p-root]# usermod –a –G nagcmd apache</p>
<p>Now download Nagios and Nagios-Plugins :-</p>
<p>[root@p-root]# wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-3.2.1.tar.gz</p>
<p>[root@p-root]# wget http://prdownloads.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.11.tar.gz</p>
<p>[root@p-root]# tar –zxvf nagios-3.2.1.tar.gz</p>
<p>[root@p-root]#  cd  nagios-3.2.1</p>
<p>[root@p-root]# ./configure  &#8211; -with-command-group=nagcmd</p>
<p>[root@p-root]#  make all</p>
<p>[root@p-root]#  make install</p>
<p>[root@p-root]# make install-init</p>
<p>[root@p-root]# make install-config</p>
<p>[root@p-root]# make install-commandmode</p>
<p>[root@p-root]# make install-webconf</p>
<p>(it will create nagios web config file in apache conf.d direcotry)<br />
Now create nagiosadmin account for nagios web interface.</p>
<p>[root@p-root]#  htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin</p>
<p>Password:</p>
<p>[root@p-root]#  /etc/init.d/httpd  restart</p>
<p>Now install nagios-plugin.</p>
<p>[root@p-root]# tar –zxvf nagios-plugins-1.4.11.tar.gz</p>
<p>[root@p-root]# cd nagios-plugins-1.4.11</p>
<p>[root@p-root]# ./configure  –with-nagios-user=nagios –with-nagio-group=nagios</p>
<p>[root@p-root]# make</p>
<p>[root@p-root]# make install</p>
<p>Now you have installed all the required packages and services.<br />
Now start nagios.</p>
<p>[root@p-root]#  chkconfig  –add nagios</p>
<p>[root@p-root]#  chkconfig nagios on</p>
<p>Verify your nagios config file.</p>
<p>[root@p-root]#  /usr/local/nagios/bin/nagios  -v  /usr/local/nagios/etc/nagios.cfg</p>
<p>If there is no error it means your nagios configuration is correct and you can start nagios service.</p>
<p>[root@p-root]#  /etc/init.d/nagios  start</p>
<p>Now access your nagios web interface :-</p>
<p>http://localhost/nagios</p>
<p>==============================================</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>NRPE  Installation and Setup:-</p>
<p>Download and Install NRPE</p>
<p>You may download nrpe from http://www.nagios.org/download/download.php</p>
<p>[root@p-root~]# wget http://prdownloads.sourceforge.net/sourceforge/nagios/nrpe-2.12.tar.gz</p>
<p>Extract the Files:</p>
<p>[root@p-root~]# tar -xzf nrpe-2.12.tar.gz<br />
[root@p-root~]# cd nrpe-2.12</p>
<p>Compile and Configure NRPE</p>
<p>You need the openssl-devel package installed to compile NRPE with ssl support.  So make sure that open ssl is already installed on the server.</p>
<p>Install NRPE:</p>
<p>[root@p-root~]# ./configure</p>
<p>General Options:</p>
<p>————————-<br />
NRPE port: 5666<br />
NRPE user: nagios<br />
NRPE group: nagios<br />
Nagios user: nagios<br />
Nagios group: nagios</p>
<p>[root@p-root~]# make all</p>
<p>[root@p-root~]# make install-plugin</p>
<p>[root@p-root~]# make install-daemon</p>
<p>[root@p-root~]# make install-daemon-config</p>
<p>[root@p-root~]# make install-xinetd</p>
<p>Post NRPE Configuration</p>
<p>Edit Xinetd NRPE entry:</p>
<p>Add Nagios Monitoring server to the “only_from” directive</p>
<p>[root@p-root~]# vi /etc/xinetd.d/nrpe</p>
<p>Entry will be like this:-</p>
<p>service nrpe<br />
{<br />
flags           = REUSE<br />
socket_type     = stream<br />
port            = 5666<br />
wait            = no<br />
user            = nagios<br />
group           = nagios<br />
server          = /usr/local/nagios/bin/nrpe<br />
server_args     = -c /etc/nrpe.conf –inetd<br />
log_on_failure  += USERID<br />
disable         = no<br />
#       only_from       = 127.0.0.1<br />
}</p>
<p>only_from = 127.0.0.1</p>
<p>Edit services file entry:</p>
<p>Add entry for nrpe daemon</p>
<p>[root@p-root~]# vi /etc/services</p>
<p>nrpe 5666/tcp # NRPE</p>
<p>Restart Xinetd and Set to start at boot:</p>
<p>[root@p-root~]# chkconfig xinetd on</p>
<p>[root@p-root~]# service xinetd restart</p>
<p>Test NRPE Daemon Install</p>
<p>Check NRPE daemon is running and listening on port 5666:</p>
<p>[root@p-root~]# netstat -at |grep nrpe</p>
<p>Output should be:-</p>
<p>tcp 0 0 *:nrpe *.* LISTEN</p>
<p>or</p>
<p>[root@p-root]# netstat -plan | grep 5666</p>
<p>tcp        0      0 0.0.0.0:5666                0.0.0.0:*                   LISTEN      15721/xinetd</p>
<p>Check NRPE daemon is functioning:</p>
<p>[root@p-root]# /usr/local/nagios/libexec/check_nrpe -H localhost</p>
<p>Output should be NRPE version:</p>
<p>NRPE v2.12</p>
<p>======================================================================</p>
<p>Enjoy Linux !!!</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/how-to-install-nagios-on-redhatfedoracentos.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

