<?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>gugaBSD</title>
	<atom:link href="http://www.luizgustavo.pro.br/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.luizgustavo.pro.br/blog</link>
	<description>Software Livre, BSD e outras coisas mais...</description>
	<lastBuildDate>Mon, 08 Mar 2010 13:14:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>OpenSSH 5.4 lançado</title>
		<link>http://www.luizgustavo.pro.br/blog/2010/03/08/openssh-5-4-lancado/</link>
		<comments>http://www.luizgustavo.pro.br/blog/2010/03/08/openssh-5-4-lancado/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 13:14:18 +0000</pubDate>
		<dc:creator>luizgustavo</dc:creator>
				<category><![CDATA[OpenBSD]]></category>
		<category><![CDATA[Software Livre]]></category>
		<category><![CDATA[lançamento]]></category>
		<category><![CDATA[OpenSSH]]></category>

		<guid isPermaLink="false">http://www.luizgustavo.pro.br/blog/?p=510</guid>
		<description><![CDATA[Uma nova versão do OpenSSH acaba de ser lançada e com ela vem muitas novidades.
A principal delas e a remoção depois de 10 anos da compatibilidade do protocolo versão 1 que era usada por default no OpenSSH, foi adicionado também um novo modo de funcionamento que é chamado &#8220;modo netcat&#8221; para que o ssh funcione [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.luizgustavo.pro.br/blog/wp-content/uploads/2009/10/puffy.png"><img class="alignright size-full wp-image-166" style="margin: 5px;" title="puffy" src="http://www.luizgustavo.pro.br/blog/wp-content/uploads/2009/10/puffy.png" alt="" width="102" height="98" /></a>Uma nova versão do OpenSSH acaba de ser lançada e com ela vem muitas novidades.</p>
<p style="text-align: justify;">A principal delas e a remoção depois de 10 anos da compatibilidade do protocolo versão 1 que era usada por default no OpenSSH, foi adicionado também um novo modo de funcionamento que é chamado &#8220;modo netcat&#8221; para que o ssh funcione de forma semelhante ao utilitario NETCAT.</p>
<p>Veja mais novidades no <a href="http://www.openssh.com/txt/release-5.4" target="_blank">anuncio oficial</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.luizgustavo.pro.br/blog/2010/03/08/openssh-5-4-lancado/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Notificação do Nagios no Gtalk</title>
		<link>http://www.luizgustavo.pro.br/blog/2010/03/05/notificacao-do-nagios-no-gtalk/</link>
		<comments>http://www.luizgustavo.pro.br/blog/2010/03/05/notificacao-do-nagios-no-gtalk/#comments</comments>
		<pubDate>Sat, 06 Mar 2010 00:21:19 +0000</pubDate>
		<dc:creator>luizgustavo</dc:creator>
				<category><![CDATA[Diversos]]></category>
		<category><![CDATA[mundoUnix]]></category>
		<category><![CDATA[monitoramento]]></category>
		<category><![CDATA[nagios]]></category>
		<category><![CDATA[Plugins]]></category>

		<guid isPermaLink="false">http://www.luizgustavo.pro.br/blog/?p=503</guid>
		<description><![CDATA[Essa dica e pra quem quer receber notificações de mensagens do nagios através de uma conta do gtalk, assim você pode receber na hora um alerta do nagios no seu cliente de gtalk (seja no seu desktop ou celular)
Essa dica eu peguei do site: http://www.gridpp.ac.uk/wiki/Nagios_jabber_notification
Vou mostrar aqui como configurar em um FreeBSD:
Satisfazendo algumas dependências do [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><img class="alignright size-full wp-image-505" style="border: 0pt none; margin: 3px;" title="nagios_logo" src="http://www.luizgustavo.pro.br/blog/wp-content/uploads/2010/03/nagios_logo.png" alt="" width="161" height="43" />Essa dica e pra quem quer receber notificações de mensagens do nagios através de uma conta do gtalk, assim você pode receber na hora um alerta do nagios no seu cliente de gtalk (seja no seu desktop ou celular)</p>
<p>Essa dica eu peguei do site: <a href="http://www.gridpp.ac.uk/wiki/Nagios_jabber_notification" target="_blank">http://www.gridpp.ac.uk/wiki/Nagios_jabber_notification</a></p>
<p><span id="more-503"></span>Vou mostrar aqui como configurar em um FreeBSD:</p>
<p>Satisfazendo algumas dependências do perl para o script:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>net-im<span style="color: #000000; font-weight: bold;">/</span>p5-Net-XMPP
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clean
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>security<span style="color: #000000; font-weight: bold;">/</span>p5-IO-Socket-SSL
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clean</pre></div></div>

<p>A partir dai podemos criar o nosso script:</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/usr/bin/perl -w</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># script for nagios notify via Jabber / Google Talk Instant Messaging</span>
<span style="color: #666666; font-style: italic;">#   using XMPP protocol and SASL PLAIN authentication.</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># author: Andrew Elwell</span>
<span style="color: #666666; font-style: italic;"># based on work by Thus0</span>
 <span style="color: #b1b100;">and</span>  David Cox
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># released under the terms of the GNU General Public License v2</span>
<span style="color: #666666; font-style: italic;"># Copyright 2007 Andrew Elwell.</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">use</span> strict<span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">use</span> Net<span style="color: #339933;">::</span><span style="color: #006600;">XMPP</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">## Configuration</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$username</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;your.google.username&quot;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$password</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;your.google.password&quot;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$resource</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;nagios&quot;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">## End of configuration</span>
&nbsp;
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$len</span> <span style="color: #339933;">=</span> <span style="color: #000066;">scalar</span> <span style="color: #0000ff;">@ARGV</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$len</span> <span style="color: #b1b100;">ne</span> <span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
 <span style="color: #000066;">die</span> <span style="color: #ff0000;">&quot;Usage...<span style="color: #000099; font-weight: bold;">\n</span> $0 [jabberid] [message]<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">@field</span><span style="color: #339933;">=</span><span style="color: #000066;">split</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/,/</span><span style="color: #339933;">,</span><span style="color: #0000ff;">$ARGV</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">#------------------------------------</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Google Talk &amp; Jabber parameters :</span>
&nbsp;
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$hostname</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">'talk.google.com'</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$port</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">5222</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$componentname</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">'gmail.com'</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$connectiontype</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">'tcpip'</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$tls</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#------------------------------------</span>
&nbsp;
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$Connection</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Net<span style="color: #339933;">::</span><span style="color: #006600;">XMPP</span><span style="color: #339933;">::</span><span style="color: #006600;">Client</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Connect to talk.google.com</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$status</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">$Connection</span><span style="color: #339933;">-&gt;</span><span style="color: #006600;">Connect</span><span style="color: #009900;">&#40;</span>
 hostname <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">$hostname</span><span style="color: #339933;">,</span> port <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">$port</span><span style="color: #339933;">,</span>
 componentname <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">$componentname</span><span style="color: #339933;">,</span>
 connectiontype <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">$connectiontype</span><span style="color: #339933;">,</span> tls <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">$tls</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #009900;">&#40;</span><span style="color: #000066;">defined</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$status</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
 <span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;ERROR:  XMPP connection failed.<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
 <span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;        ($!)<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
 <span style="color: #000066;">exit</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Change hostname</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$sid</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">$Connection</span><span style="color: #339933;">-&gt;</span><span style="color: #009900;">&#123;</span>SESSION<span style="color: #009900;">&#125;</span><span style="color: #339933;">-&gt;</span><span style="color: #009900;">&#123;</span>id<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
<span style="color: #0000ff;">$Connection</span><span style="color: #339933;">-&gt;</span><span style="color: #009900;">&#123;</span>STREAM<span style="color: #009900;">&#125;</span><span style="color: #339933;">-&gt;</span><span style="color: #009900;">&#123;</span>SIDS<span style="color: #009900;">&#125;</span><span style="color: #339933;">-&gt;</span><span style="color: #009900;">&#123;</span><span style="color: #0000ff;">$sid</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">-&gt;</span><span style="color: #009900;">&#123;</span>hostname<span style="color: #009900;">&#125;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">$componentname</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Authenticate</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">@result</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">$Connection</span><span style="color: #339933;">-&gt;</span><span style="color: #006600;">AuthSend</span><span style="color: #009900;">&#40;</span>
 username <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">$username</span><span style="color: #339933;">,</span> password <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">$password</span><span style="color: #339933;">,</span>
 resource <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">$resource</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$result</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span> <span style="color: #b1b100;">ne</span> <span style="color: #ff0000;">&quot;ok&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
 <span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;ERROR: Authorization failed: $result[0] - $result[1]<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
 <span style="color: #000066;">exit</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Send messages</span>
<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">@field</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #0000ff;">$Connection</span><span style="color: #339933;">-&gt;</span><span style="color: #006600;">MessageSend</span><span style="color: #009900;">&#40;</span>
 to       <span style="color: #339933;">=&gt;</span> <span style="color: #ff0000;">&quot;$_<span style="color: #000099; font-weight: bold;">\@</span>$componentname&quot;</span><span style="color: #339933;">,</span>
 resource <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">$resource</span><span style="color: #339933;">,</span>
 subject  <span style="color: #339933;">=&gt;</span> <span style="color: #ff0000;">&quot;Notification&quot;</span><span style="color: #339933;">,</span>
 type     <span style="color: #339933;">=&gt;</span> <span style="color: #ff0000;">&quot;chat&quot;</span><span style="color: #339933;">,</span>
 body     <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">$ARGV</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Altere as opcoes no script conforme os dados de sua conexao no Gtalk</p>
<p>Dai configure no seu nagios (ou Centreon) o seu comando de notificacao:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;"># 'host-notify-by-jabber' command definition
define command{
 command_name    host-notify-by-jabber
 command_line    /usr/local/bin/notify_via_jabber $CONTACTPAGER$ &quot;Host '$HOSTALIAS$' is $HOSTSTATE$ - Info
: $HOSTOUTPUT$&quot;
 }
&nbsp;
# 'notify-by-jabber' command definition
define command{
 command_name    notify-by-jabber
 command_line    /usr/local/bin/notify_via_jabber $CONTACTPAGER$ &quot;$NOTIFICATIONTYPE$ $HOSTNAME$ $SERVICED
ESC$ $SERVICESTATE$ $SERVICEOUTPUT$ $LONGDATETIME$&quot;
 }</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.luizgustavo.pro.br/blog/2010/03/05/notificacao-do-nagios-no-gtalk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD 7.3-RC2 Disponivel</title>
		<link>http://www.luizgustavo.pro.br/blog/2010/03/04/freebsd-7-3-rc2-disponivel/</link>
		<comments>http://www.luizgustavo.pro.br/blog/2010/03/04/freebsd-7-3-rc2-disponivel/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 14:33:26 +0000</pubDate>
		<dc:creator>luizgustavo</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[lançamento]]></category>

		<guid isPermaLink="false">http://www.luizgustavo.pro.br/blog/?p=501</guid>
		<description><![CDATA[Acabei de receber o email do Ken Smith sobre o lançamento do FreeBSD 7.3 Release Candidate 2, esse vai ser a última versão antes do lançamento final da versão 7.3.
Para obter mais informações, veja o email dele sobre o anuncio na lista freebsd-stable.
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.luizgustavo.pro.br/blog/wp-content/uploads/2009/10/freebsd-logo.png"><img class="alignleft size-full wp-image-269" style="margin: 5px 10px;" title="freebsd-logo" src="http://www.luizgustavo.pro.br/blog/wp-content/uploads/2009/10/freebsd-logo.png" alt="" width="72" height="72" /></a>Acabei de receber o email do Ken Smith sobre o lançamento do FreeBSD 7.3 Release Candidate 2, esse vai ser a última versão antes do lançamento final da versão 7.3.</p>
<p>Para obter mais informações, veja o <a href="http://lists.freebsd.org/pipermail/freebsd-stable/2010-March/055596.html" target="_blank">email dele sobre o anuncio</a> na lista freebsd-stable.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.luizgustavo.pro.br/blog/2010/03/04/freebsd-7-3-rc2-disponivel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Centreon 2.1.5 disponivel</title>
		<link>http://www.luizgustavo.pro.br/blog/2010/03/04/centreon-2-1-5-disponivel/</link>
		<comments>http://www.luizgustavo.pro.br/blog/2010/03/04/centreon-2-1-5-disponivel/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 13:32:48 +0000</pubDate>
		<dc:creator>luizgustavo</dc:creator>
				<category><![CDATA[Software Livre]]></category>
		<category><![CDATA[mundoUnix]]></category>
		<category><![CDATA[centreon]]></category>
		<category><![CDATA[lançamento]]></category>
		<category><![CDATA[monitoramento]]></category>

		<guid isPermaLink="false">http://www.luizgustavo.pro.br/blog/?p=496</guid>
		<description><![CDATA[No dia 26/02 a equipe de desenvolvimento do Centreon lançou a nova versão do Centreon 2.1.5, corrigindo uma série de bugs na interface administrativa.
Para ver a lista completa das alterações, veja o anuncio oficial no blog do projeto.
Se você instalou o Centreon utilizando meu tutorial no FreeBSD, veja abaixo como atualiza-lo.

cd /tmp
fetch -o centreon-2.1.5.tar.gz 'http://download.centreon.com/index.php?id=125'
tar [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><a href="http://www.luizgustavo.pro.br/blog/wp-content/uploads/2010/03/logo_pq_centreon.png"><img class="alignleft size-full wp-image-498" style="margin: 5px 15px;" title="logo_pq_centreon" src="http://www.luizgustavo.pro.br/blog/wp-content/uploads/2010/03/logo_pq_centreon.png" alt="" width="83" height="58" /></a>No dia 26/02 a equipe de desenvolvimento do <a href="http://www.centreon.com" target="_blank">Centreon</a> lançou a nova versão do Centreon 2.1.5, corrigindo uma série de bugs na interface administrativa.</p>
<p style="text-align: justify;">Para ver a lista completa das alterações, veja o <a href="http://blog.centreon.com/index.php?post/2010/02/26/Centreon-2.1.5-available" target="_blank">anuncio oficial</a> no <a href="http://blog.centreon.com" target="_blank">blog</a> do projeto.</p>
<p>Se você instalou o Centreon utilizando meu <a href="http://www.luizgustavo.pro.br/blog/2010/02/15/centreon-2-1-4-no-freebsd/" target="_blank">tutorial</a> no FreeBSD, veja abaixo como atualiza-lo.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>tmp
fetch <span style="color: #660033;">-o</span> centreon-2.1.5.tar.gz <span style="color: #ff0000;">'http://download.centreon.com/index.php?id=125'</span>
<span style="color: #c20cb9; font-weight: bold;">tar</span> zxf centreon-2.1.5.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> centreon-2.1.5
<span style="color: #c20cb9; font-weight: bold;">perl</span> <span style="color: #660033;">-p</span> <span style="color: #660033;">-i</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">'s/\/bin\/bash/\/usr\/local\/bin\/bash/g'</span> install.sh
<span style="color: #c20cb9; font-weight: bold;">perl</span> <span style="color: #660033;">-p</span> <span style="color: #660033;">-i</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">'s/\/bin\/bash/\/usr\/local\/bin\/bash/g'</span> libinstall<span style="color: #000000; font-weight: bold;">/*</span>
<span style="color: #c20cb9; font-weight: bold;">bash</span> install.sh <span style="color: #660033;">-u</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>centreon</pre></div></div>

<p>A partir daí é só responder as perguntas e acessar o Centreon via web para atualizar a base de dados. Sem erro&#8230; bem rápido e sem dor <img src='http://www.luizgustavo.pro.br/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.luizgustavo.pro.br/blog/2010/03/04/centreon-2-1-5-disponivel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Instalação do FreeBSD</title>
		<link>http://www.luizgustavo.pro.br/blog/2010/02/22/instalacao-do-freebsd/</link>
		<comments>http://www.luizgustavo.pro.br/blog/2010/02/22/instalacao-do-freebsd/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 14:56:10 +0000</pubDate>
		<dc:creator>luizgustavo</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[instalação]]></category>

		<guid isPermaLink="false">http://www.luizgustavo.pro.br/blog/?p=468</guid>
		<description><![CDATA[Vi que algumas pessoas estavam interessadas em ver esse vídeo que tem por finalidade orientar na instalação do mesmo por meus clientes, então decidi publica-lo.
]]></description>
			<content:encoded><![CDATA[<p>Vi que algumas pessoas estavam interessadas em ver esse vídeo que tem por finalidade orientar na instalação do mesmo por meus clientes, então decidi publica-lo.</p>
<p><script type='text/javascript' src='http://www.luizgustavo.pro.br/blog/wp-content/plugins/hana-flv-player/flowplayer3/example/flowplayer-3.1.1.min.js'></script>
<div >
<div id='hana_flv_flow3_1' style='display:block;width:600px;height:400px;' title=""></div>
</div>

			<script  type='text/javascript'>
		flowplayer('hana_flv_flow3_1', { src: 'http://www.luizgustavo.pro.br/blog/wp-content/plugins/hana-flv-player/flowplayer3/flowplayer-3.1.1.swf', wmode: 'transparent' }, { 
    		clip:  { 
    			url: 'http://www.luizgustavo.pro.br/wiki/videos/freebsd-instalacao.flv',
        		scaling: 'scale', autoPlay: false, autoBuffering: false 
				   , onFinish : function () { this.seek(0); } 
	        }
		}); 
			</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.luizgustavo.pro.br/blog/2010/02/22/instalacao-do-freebsd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://www.luizgustavo.pro.br/wiki/videos/freebsd-instalacao.flv" length="71704916" type="video/x-flv" />
		</item>
		<item>
		<title>PortEasy: Gerencia de ports no FreeBSD</title>
		<link>http://www.luizgustavo.pro.br/blog/2010/02/22/porteasy-gerencia-de-ports-no-freebsd/</link>
		<comments>http://www.luizgustavo.pro.br/blog/2010/02/22/porteasy-gerencia-de-ports-no-freebsd/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 13:16:36 +0000</pubDate>
		<dc:creator>luizgustavo</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[ports]]></category>

		<guid isPermaLink="false">http://www.luizgustavo.pro.br/blog/?p=462</guid>
		<description><![CDATA[Estes dias eu estava precisando efetuar um downgrade em um port especifico e dentro de uma Jail e de inicio pensei em usar o portdowngrade (já o tinha utilizado antes para essa tarefa) quando me esbarrei na limitação que o meu repositorio de ports dentro da Jail era ready-only e não queria ter todo o [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><a href="http://www.luizgustavo.pro.br/blog/wp-content/uploads/2010/02/porteasy.png"><img class="alignleft size-full wp-image-463" style="margin-left: 5px; margin-right: 5px; margin-top: 2px; margin-bottom: 2px;" title="porteasy" src="http://www.luizgustavo.pro.br/blog/wp-content/uploads/2010/02/porteasy.png" alt="" width="106" height="159" /></a>Estes dias eu estava precisando efetuar um downgrade em um port especifico e dentro de uma Jail e de inicio pensei em usar o <a href="http://www.freebsd.org/cgi/url.cgi?ports/ports-mgmt/portdowngrade/pkg-descr" target="_blank">portdowngrade</a> (já o tinha utilizado antes para essa tarefa) quando me esbarrei na limitação que o meu repositorio de ports dentro da Jail era ready-only e não queria ter todo o trabalho de recriar um na Jail só para fazer downgrade de um port.</p>
<p style="text-align: justify;">Então resolvi dar uma fuçada em /usr/ports/ports-mgmt e nessa busca encontrei o <a href="http://www.freebsd.org/cgi/url.cgi?ports/ports-mgmt/porteasy/pkg-descr" target="_blank">porteasy</a>, que me ajudou nessa tarefa e me chamou atenção.</p>
<p style="text-align: justify;">Ele trabalha direto com o cvs da arvore de ports do FreeBSD, lhe proporcionando escolher uma tag ou período da arvore que você quer usar, além de trazer para a sua máquina somente o que você realmente necessita.</p>
<p><span id="more-462"></span></p>
<p>Segue uma tradução do pkg-desc do porteasy:</p>
<blockquote>
<div id="_mcePaste" style="text-align: justify;">Porteasy permite você instalar um port e construir pacotes sem precisar manter uma arvore completa do ports em sua máquina. Ele faz uma varredura nos índices do port que você quer instalar e procura por dependências para satisfazer o port e ele usa o CVS para atualizar estas informações e requisitar os arquivos.</div>
<div id="_mcePaste">Abaixo algumas coisas que o porteasy pode fazer por você:</div>
<div>
<ul>
<li>Atualiza automaticamente os arquivos necessários para o seu port (e somente os arquivos necessários) utilizando CVS (incluindo suporte à anoncvs)</li>
<li>Lista todas as dependências do port, opcionalmente oculta o que já estão instalados.</li>
<li>Efetua o download de todos os distfiles necessários de forma correta e uma só vez, para que você não tenha que esperar pela construção de uma dependência antes de pegar um distfile, Usuários de conexão dial-up adoram isso.</li>
<li>Constroi e instala os ports de forma arbitraria.</li>
<li>Constroi pacotes</li>
</ul>
</div>
</blockquote>
<p>Eu encontrei um <a href="http://freebsd.crabdance.com/howto-install-applications-from-ports-with-porteasy" target="_blank">post que me ajudou bastante</a> a entender o funcionamento do porteasy, de qualquer forma vou resumir o uso do mesmo abaixo:</p>
<p>Configure o repositorio CVS:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">setenv CVSROOT :pserver:anoncvs<span style="color: #000000; font-weight: bold;">@</span>anoncvs.fr.FreeBSD.org:<span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>ncvs
<span style="color: #c20cb9; font-weight: bold;">touch</span> <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>.cvspass
<span style="color: #c20cb9; font-weight: bold;">cvs</span> <span style="color: #c20cb9; font-weight: bold;">login</span>
<span style="color: #7a0874; font-weight: bold;">&#40;</span>password is anoncvs<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>Opcionalmente, crie um repositorio alternativo ao seu (/usr/ports) e baixe a estrutura do mesmo:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>ports
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>tmp
<span style="color: #c20cb9; font-weight: bold;">cvs</span> checkout <span style="color: #660033;">-A</span> <span style="color: #660033;">-P</span> <span style="color: #660033;">-l</span> ports<span style="color: #000000; font-weight: bold;">/</span>Mk</pre></div></div>

<p>Agora você pode instalar o ports que necessitar, vou citar um exemplo:</p>
<p>Quero instalar o php5 mas usando um versão do ports de 6 meses atrás:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">porteasy <span style="color: #660033;">-p</span> <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>ports <span style="color: #660033;">-D</span> <span style="color: #ff0000;">'6 months ago'</span> <span style="color: #660033;">-v</span> <span style="color: #660033;">-u</span> lang<span style="color: #000000; font-weight: bold;">/</span>php5</pre></div></div>

<p>Espero que esse artigo possa te ajudar.</p>
<p>Abraços</p>
]]></content:encoded>
			<wfw:commentRss>http://www.luizgustavo.pro.br/blog/2010/02/22/porteasy-gerencia-de-ports-no-freebsd/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Ports do OpenBSD bloqueada para a nova versão 4.7</title>
		<link>http://www.luizgustavo.pro.br/blog/2010/02/19/ports-do-openbsd-bloqueada-para-a-nova-versao-4-7/</link>
		<comments>http://www.luizgustavo.pro.br/blog/2010/02/19/ports-do-openbsd-bloqueada-para-a-nova-versao-4-7/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 17:53:23 +0000</pubDate>
		<dc:creator>luizgustavo</dc:creator>
				<category><![CDATA[OpenBSD]]></category>
		<category><![CDATA[bsd]]></category>
		<category><![CDATA[software livre]]></category>

		<guid isPermaLink="false">http://www.luizgustavo.pro.br/blog/?p=459</guid>
		<description><![CDATA[A nova versão do OpenBSD está se aproximando e já foi anunciado o bloqueio da arvore de ports do OpenBSD para esperar o lançamento do OpenBSD 4.7

No dia 12 de Janeiro, Jasper Lievisse-Adriaanse (jasper@) anunciou que a arvore de ports foi alterada para o modo &#8220;softlock&#8221; e foi feita uma chamada para que os usuários [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.luizgustavo.pro.br/blog/wp-content/uploads/2009/10/openbsd.gif"><img class="size-thumbnail wp-image-277 alignright" title="openbsd" src="http://www.luizgustavo.pro.br/blog/wp-content/uploads/2009/10/openbsd-150x150.gif" alt="" width="99" height="99" /></a>A nova versão do OpenBSD está se aproximando e já foi anunciado o bloqueio da arvore de ports do OpenBSD para esperar o lançamento do OpenBSD 4.7</p>
<blockquote>
<p style="text-align: justify;">No dia 12 de Janeiro, Jasper Lievisse-Adriaanse (jasper@) <a href="http://marc.info/?l=openbsd-ports&amp;m=126333407232143">anunciou</a> que a arvore de ports foi alterada para o modo &#8220;softlock&#8221; e foi feita uma chamada para que os usuários fizessem testes e reportes de possíveis bugs. Agora, no dia 17 de fevereiro, ele  <a href="http://marc.info/?l=openbsd-ports&amp;m=126643258113149">anunciou</a> na lista de discussão ports@ que a arvore de ports foi bloqueada até que a nova versão do OpenBSD 4.7 seja lançada.</p>
</blockquote>
<p>Para maiores informações, veja o <a href="http://undeadly.org/cgi?action=article&amp;sid=20100219165122" target="_blank">post original.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.luizgustavo.pro.br/blog/2010/02/19/ports-do-openbsd-bloqueada-para-a-nova-versao-4-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>tmux &#8211; Canivete suiço para terminal de texto</title>
		<link>http://www.luizgustavo.pro.br/blog/2010/02/19/tmux-canivete-suico-para-terminal-de-texto/</link>
		<comments>http://www.luizgustavo.pro.br/blog/2010/02/19/tmux-canivete-suico-para-terminal-de-texto/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 15:02:45 +0000</pubDate>
		<dc:creator>luizgustavo</dc:creator>
				<category><![CDATA[Software Livre]]></category>
		<category><![CDATA[mundo BSD]]></category>
		<category><![CDATA[mundo Linux]]></category>
		<category><![CDATA[software livre]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[tmux]]></category>

		<guid isPermaLink="false">http://www.luizgustavo.pro.br/blog/?p=451</guid>
		<description><![CDATA[O tmux é um aplicativo muito bom para trabalhar com terminal de texto, inclusive remotamente. Ele é verdadeiramente um canivete suíço. Ele é uma ótima alternativa ao já famoso screen, só que traz muitas funcionalidades além da própria licença ser BSD.
Com ele é possível criar vários terminais virtuais (ou janelas), cada um executando um programa [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><a href="http://www.luizgustavo.pro.br/blog/wp-content/uploads/2010/02/tmux.png"><img class="alignleft size-full wp-image-452" style="border: 0pt none; margin: 1px 5px;" title="tmux" src="http://www.luizgustavo.pro.br/blog/wp-content/uploads/2010/02/tmux.png" alt="" width="125" height="138" /></a>O tmux é um aplicativo muito bom para trabalhar com terminal de texto, inclusive remotamente. Ele é verdadeiramente um canivete suíço. Ele é uma ótima alternativa ao já famoso <a href="http://www.gnu.org/software/screen/" target="_blank">screen</a>, só que traz muitas funcionalidades além da própria licença ser BSD.</p>
<p style="text-align: justify;">Com ele é possível criar vários terminais virtuais (ou janelas), cada um executando um programa separadamente, atreladas à uma única visão e acessível através de comandos. O tmux pode ser desacoplado e ser executado em background, podendo ser acoplado novamente à qualquer momento, imagine os benefícios para uma sessão remota SSH.</p>
<p style="text-align: justify;">O tmux usa um modelo cliente-servidor. O servidor possui várias sessões e cada janela é uma entidade independente que pode ser livremente ligada a várias sessões, muda-se entre as sessões e pode-se manipula-las de outras formas. Cada sessão pode ser acompanhada de (visualização e aceitação de entrada de teclado) vários clientes.</p>
<p style="text-align: justify;"><span id="more-451"></span>
<div >
<div id='hana_flv_flow3_2' style='display:block;width:560px;height:336px;' title="*Video:tmux"></div>
</div>

			<script  type='text/javascript'>
		flowplayer('hana_flv_flow3_2', { src: 'http://www.luizgustavo.pro.br/blog/wp-content/plugins/hana-flv-player/flowplayer3/flowplayer-3.1.1.swf', wmode: 'transparent' }, { 
    		clip:  { 
    			url: 'http://www.luizgustavo.pro.br/videos/tmux.flv',
        		scaling: 'scale', autoPlay: false, autoBuffering: false 
				   , onFinish : function () { this.seek(0); } 
	        }
		}); 
			</script>
			 </p>
<p style="text-align: justify;">Mais informações, consulte o <a href="http://tmux.sourceforge.net/" target="_blank">site do projeto</a>.</p>
<p style="text-align: justify;">Consulte a <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=tmux&amp;apropos=0&amp;sektion=0&amp;manpath=OpenBSD+Current&amp;arch=i386&amp;format=html" target="_blank">página de manual do tmu</a>x no OpenBSD</p>
<p style="text-align: justify;"><strong><em>* Agradecimentos ao garga (Renato Botelho) da FUG-BR pela ótima indicação de ferramenta.</em></strong></p>
<p style="text-align: justify;">
]]></content:encoded>
			<wfw:commentRss>http://www.luizgustavo.pro.br/blog/2010/02/19/tmux-canivete-suico-para-terminal-de-texto/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
<enclosure url="http://www.luizgustavo.pro.br/videos/tmux.flv" length="3068962" type="video/x-flv" />
		</item>
		<item>
		<title>HAST &#8211; Alta Disponibilidade de Armazenagem no FreeBSD</title>
		<link>http://www.luizgustavo.pro.br/blog/2010/02/19/hast-alta-disponibilidade-de-armazenagem-no-freebsd/</link>
		<comments>http://www.luizgustavo.pro.br/blog/2010/02/19/hast-alta-disponibilidade-de-armazenagem-no-freebsd/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 03:34:11 +0000</pubDate>
		<dc:creator>luizgustavo</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[HAST]]></category>

		<guid isPermaLink="false">http://www.luizgustavo.pro.br/blog/?p=443</guid>
		<description><![CDATA[Como nosso bom amigo &#8220;FUGuiano&#8221; garga anunciou na lista da FUG-BR, o tão aguardado projeto HAST de alta disponibilidade de armazenagem foi adicionado na arvore base no SVN do FreeBSD.

Dêem as boas vindas ao HAST &#8211; Highly Avalable Storage.
HAST permite de forma transparente armazenar dados em duas maquinas fisicamente separadas conectadas sobre rede TCP/IP. HAST [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><a href="http://www.luizgustavo.pro.br/blog/wp-content/uploads/2010/02/hast.png"><img class="alignright size-full wp-image-444" title="hast" src="http://www.luizgustavo.pro.br/blog/wp-content/uploads/2010/02/hast.png" alt="" width="214" height="165" /></a>Como nosso bom amigo &#8220;FUGuiano&#8221; garga anunciou na lista da FUG-BR, o tão aguardado projeto HAST de alta disponibilidade de armazenagem foi adicionado na arvore base no SVN do FreeBSD.</p>
<blockquote>
<p style="text-align: justify;">Dêem as boas vindas ao HAST &#8211; Highly Avalable Storage.</p>
<p style="text-align: justify;">HAST permite de forma transparente armazenar dados em duas maquinas fisicamente separadas conectadas sobre rede TCP/IP. HAST trabalha com configuração Primário/Secundário (Master-Backup, Master-Slave), o que significa que apenas um dos nós do cluster pode estar ativo em determinado momento. Somente o nó Primário tem a habilidade de efetuar requisições de I/O aos dispositivos gerenciados pelo o HAST.  Atualmente o HAST é limitado a apenas a utilização de dois nós do cluster.</p>
<p style="text-align: justify;">HAST opera em nível de Bloco &#8211; ele é provido semelhante à um dispositivo de disco no diretório /dev/hast para ser usado pelo o sistema de arquivo e/ou por aplicações. Trabalhando em nível de bloco, o mesmo fica transparente para os sistemas de arquivos e aplicações. Não existe diferença entre um dispositivo provido pelo o HAST e o disco físico, partição, etc. Todos eles usam a mesma infraestrutura de armazenamento provida pelo GEOM no FreeBSD.</p>
<p>Para mais informações, por favor consulte as páginas de manual hastd(8), hastctl(8) e hast.conf(5) , assim também como o link <a href="http://wiki.freebsd.org/HAST" target="_blank">http://wiki.FreeBSD.org/HAST.</a></p>
<p>Patrocinado por:	FreeBSD Foundation<br />
Patrocinado por:	OMCnet Internet Service GmbH<br />
Patrocinado por:	TransIP BV</p></blockquote>
<p style="text-align: justify;">Tradução do link: <a href="http://svn.freebsd.org/viewvc/base?view=revision&amp;revision=204076" target="_blank">http://svn.freebsd.org/viewvc/base?view=revision&amp;revision=204076</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.luizgustavo.pro.br/blog/2010/02/19/hast-alta-disponibilidade-de-armazenagem-no-freebsd/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Centreon 2.1.4 on FreeBSD (English)</title>
		<link>http://www.luizgustavo.pro.br/blog/2010/02/16/centreon-2-1-4-on-freebsd-english/</link>
		<comments>http://www.luizgustavo.pro.br/blog/2010/02/16/centreon-2-1-4-on-freebsd-english/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 15:00:30 +0000</pubDate>
		<dc:creator>luizgustavo</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Sem categoria]]></category>
		<category><![CDATA[Software Livre]]></category>
		<category><![CDATA[centreon]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.luizgustavo.pro.br/blog/?p=422</guid>
		<description><![CDATA[
This tutorial will guide the User to perform the installation of Centreon on FreeBSD. We will be using an installation in a Jail in FreeBSD kernel version 7.3-PRERELEASE, the kernel version will not influence the tutorial.
What is Centreon?
Centreon is a powerful tool for monitoring hosts and services, it is a frontend that runs on top [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://www.luizgustavo.pro.br/blog/wp-content/uploads/2010/02/centreon_bsd.png"><img class="size-full wp-image-367 aligncenter" style="border: 0pt none; margin-top: 3px; margin-bottom: 3px;" title="centreon_bsd" src="http://www.luizgustavo.pro.br/blog/wp-content/uploads/2010/02/centreon_bsd.png" alt="" width="250" height="81" /></a></p>
<p>This tutorial will guide the User to perform the installation of Centreon on FreeBSD. We will be using an installation in a Jail in FreeBSD kernel version 7.3-PRERELEASE, the kernel version will not influence the tutorial.</p>
<h4>What is Centreon?</h4>
<p>Centreon is a powerful tool for monitoring hosts and services, it is a frontend that runs on top of Nagios, adding more facilities for viewing and alert history, status, etc. ..</p>
<div>
<p style="text-align: center;"><a href="http://www.luizgustavo.pro.br/blog/wp-content/uploads/2010/02/monitoramento_diagrama.png"><img class="aligncenter size-full wp-image-386" title="monitoramento_diagrama" src="http://www.luizgustavo.pro.br/blog/wp-content/uploads/2010/02/monitoramento_diagrama.png" alt="" width="326" height="295" /></a></p>
<p>To learn more about the tool, I invite you to visit the official website at the address <a title="http://www.centreon.com" rel="nofollow" href="http://www.centreon.com/">http://www.centreon.com</a></p>
<p><span id="more-422"></span><strong>What we need?</strong></p>
<div>
<ul>
<li>Apache</li>
<li><acronym title="Hypertext Preprocessor">PHP</acronym> + a lot of dependencies</li>
<li>Mysql</li>
<li>Nagios</li>
<li>Pear + a lot of dependencies</li>
<li><acronym title="Practical Extraction and Report Language">Perl</acronym> + a lot of dependencies</li>
<li>rrdtool</li>
<li>snmp</li>
<li>sudo</li>
<li>Centreon (obvious :-p)</li>
</ul>
</div>
<h2>Starting installation of packages</h2>
</div>
<h4>Installation of Perl</h4>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>lang<span style="color: #000000; font-weight: bold;">/</span>perl5.10
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clean</pre></div></div>

<h4>Mark the options:</h4>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">│ │      <span style="color: #7a0874; font-weight: bold;">&#91;</span>X<span style="color: #7a0874; font-weight: bold;">&#93;</span> PERL_64BITINT  Use <span style="color: #000000;">64</span> bit integers <span style="color: #7a0874; font-weight: bold;">&#40;</span>on i386<span style="color: #7a0874; font-weight: bold;">&#41;</span>          │ │
│ │      <span style="color: #7a0874; font-weight: bold;">&#91;</span>X<span style="color: #7a0874; font-weight: bold;">&#93;</span> THREADS        Build threaded <span style="color: #c20cb9; font-weight: bold;">perl</span>                    │ │
│ │      <span style="color: #7a0874; font-weight: bold;">&#91;</span>X<span style="color: #7a0874; font-weight: bold;">&#93;</span> USE_PERL       Rewrite links <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin              │ │</pre></div></div>

<h4>Installation of BASH:</h4>
<p><em>Basically we use the BASH only to run the installation script</em></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>shells<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">bash</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clean</pre></div></div>

<h4>Installation SUDO to perform tasks for the Apache User:</h4>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>security<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">sudo</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #007800;">batch</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clean</pre></div></div>

<h4>Installation of Apache server:</h4>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>apache20
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clean</pre></div></div>

<p><em>Configure Apache to start with FreeBSD:</em></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'apache2_enable=&quot;YES&quot;'</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.conf</pre></div></div>

<h4>Installation of Net-SNMP:</h4>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>net-mgmt<span style="color: #000000; font-weight: bold;">/</span>net-snmp
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clean</pre></div></div>

<p><em>Mark the options:</em></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">│ │    <span style="color: #7a0874; font-weight: bold;">&#91;</span>X<span style="color: #7a0874; font-weight: bold;">&#93;</span> IPV6           Build with IPv6 support                  │ │
│ │    <span style="color: #7a0874; font-weight: bold;">&#91;</span>X<span style="color: #7a0874; font-weight: bold;">&#93;</span> MFD_REWRITES   Build with <span style="color: #000000;">64</span>-bit Interface Counters     │ │
│ │    <span style="color: #7a0874; font-weight: bold;">&#91;</span>X<span style="color: #7a0874; font-weight: bold;">&#93;</span> PERL           Install additional <span style="color: #c20cb9; font-weight: bold;">perl</span> modules          │ │
│ │    <span style="color: #7a0874; font-weight: bold;">&#91;</span>X<span style="color: #7a0874; font-weight: bold;">&#93;</span> PERL_EMBEDDED  Build embedded <span style="color: #c20cb9; font-weight: bold;">perl</span>                      │ │
│ │    <span style="color: #7a0874; font-weight: bold;">&#91;</span>X<span style="color: #7a0874; font-weight: bold;">&#93;</span> DUMMY          Enable dummy values <span style="color: #c20cb9; font-weight: bold;">as</span> placeholders      │ │</pre></div></div>

<p><em>Options for startup service:</em></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>snmp
<span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>snmp<span style="color: #000000; font-weight: bold;">/</span>snmpd.conf.example <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>snmp<span style="color: #000000; font-weight: bold;">/</span>snmpd.conf
<span style="color: #c20cb9; font-weight: bold;">perl</span> <span style="color: #660033;">-p</span> <span style="color: #660033;">-i</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">'s/com2sec local     localhost       COMMUNITY/com2sec local     localhost       public/g'</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>snmp<span style="color: #000000; font-weight: bold;">/</span>snmpd.conf
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'snmpd_enable=&quot;YES&quot;'</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.conf
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'snmpd_pidfile=&quot;/usr/local/etc/snmp/snmpd.conf&quot;'</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.conf
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.d<span style="color: #000000; font-weight: bold;">/</span>snmpd start</pre></div></div>

<h4>Installation of PHP5:</h4>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>lang<span style="color: #000000; font-weight: bold;">/</span>php5
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clean</pre></div></div>

<p><em>Mark the options:</em></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">│ │<span style="color: #7a0874; font-weight: bold;">&#91;</span>X<span style="color: #7a0874; font-weight: bold;">&#93;</span> CLI        Build CLI version                                │ │
│ │<span style="color: #7a0874; font-weight: bold;">&#91;</span>X<span style="color: #7a0874; font-weight: bold;">&#93;</span> APACHE     Build Apache module                              │ │
│ │<span style="color: #7a0874; font-weight: bold;">&#91;</span>X<span style="color: #7a0874; font-weight: bold;">&#93;</span> IPV6       Enable ipv6 support                              │ │</pre></div></div>

<h4>Configure the PHP:</h4>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>etc
<span style="color: #c20cb9; font-weight: bold;">cp</span> php.ini-recommended php.ini</pre></div></div>

<p><em>Configure the Apache for use with PHP</em></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;AddType application/x-httpd-php .php&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>httpd.conf
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;AddType application/x-httpd-php-source .phps&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>httpd.conf
<span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>httpd.conf <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'s/DirectoryIndex index.html index.html.var/DirectoryIndex index.html index.html.var index.php/'</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>httpd.conf <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">mv</span> <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>httpd.conf <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>httpd.conf</pre></div></div>

<h4>Installation of Database MySQL:</h4>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>databases<span style="color: #000000; font-weight: bold;">/</span>mysql51-server
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clean</pre></div></div>

<p><em>Configure the MySQL for start with FreeBSD:</em></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'mysql_enable=&quot;YES&quot;'</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.conf</pre></div></div>

<h4>Installing the dependencies of PHP:</h4>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>databases<span style="color: #000000; font-weight: bold;">/</span>php5-mysql
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clean</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>graphics<span style="color: #000000; font-weight: bold;">/</span>php5-gd
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #007800;">BATCH</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clean</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>php5-session
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clean</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>archivers<span style="color: #000000; font-weight: bold;">/</span>php5-zlib
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clean</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>sysutils<span style="color: #000000; font-weight: bold;">/</span>php5-posix
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clean</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>devel<span style="color: #000000; font-weight: bold;">/</span>php5-pcre
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clean</pre></div></div>

<p><em>Mark the options:</em></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">│ │        <span style="color: #7a0874; font-weight: bold;">&#91;</span>X<span style="color: #7a0874; font-weight: bold;">&#93;</span> BUNDLED_PCRE  Select <span style="color: #000000; font-weight: bold;">if</span> you use apache 2.0.x        │ │</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>security<span style="color: #000000; font-weight: bold;">/</span>php5-filter
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clean</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>converters<span style="color: #000000; font-weight: bold;">/</span>php5-mbstring
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clean</pre></div></div>

<p><em>Mark the options:</em></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">│ │           <span style="color: #7a0874; font-weight: bold;">&#91;</span>X<span style="color: #7a0874; font-weight: bold;">&#93;</span> REGEX  Enable multibyte regex support            │ │</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>textproc<span style="color: #000000; font-weight: bold;">/</span>php5-xml
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clean</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>textproc<span style="color: #000000; font-weight: bold;">/</span>php5-xmlwriter
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clean</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>devel<span style="color: #000000; font-weight: bold;">/</span>php5-gettext
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clean</pre></div></div>

<h4>Installation of PEAR and its dependencies:</h4>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>devel<span style="color: #000000; font-weight: bold;">/</span>pear
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clean</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>databases<span style="color: #000000; font-weight: bold;">/</span>pear-DB_DataObject
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #007800;">BATCH</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clean</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>databases<span style="color: #000000; font-weight: bold;">/</span>pear-DB_DataObject_FormBuilder
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #007800;">BATCH</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clean</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>databases<span style="color: #000000; font-weight: bold;">/</span>pear-MDB2
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clean</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>textproc<span style="color: #000000; font-weight: bold;">/</span>pear-Numbers_Roman
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clean</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>textproc<span style="color: #000000; font-weight: bold;">/</span>pear-Numbers_Words
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clean</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>devel<span style="color: #000000; font-weight: bold;">/</span>pear-HTML_QuickForm2
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clean</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>devel<span style="color: #000000; font-weight: bold;">/</span>pear-HTML_QuickForm_advmultiselect
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clean</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>devel<span style="color: #000000; font-weight: bold;">/</span>pear-HTML_Table
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clean</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>security<span style="color: #000000; font-weight: bold;">/</span>pear-Auth_SASL
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #007800;">BATCH</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clean</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>graphics<span style="color: #000000; font-weight: bold;">/</span>pear-Image_Canvas
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clean</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>graphics<span style="color: #000000; font-weight: bold;">/</span>pear-Image_Graph
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #007800;">BATCH</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clean</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>graphics<span style="color: #000000; font-weight: bold;">/</span>pear-Image_GraphViz
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #007800;">BATCH</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clean</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>net<span style="color: #000000; font-weight: bold;">/</span>pear-Net_SMTP
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #007800;">BATCH</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clean</pre></div></div>

<h4>Installing some packages in PERL for the Centreon:</h4>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>devel<span style="color: #000000; font-weight: bold;">/</span>p5-Config-IniFiles
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clean</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>graphics<span style="color: #000000; font-weight: bold;">/</span>p5-GD
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clean</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>databases<span style="color: #000000; font-weight: bold;">/</span>p5-DBD-mysql
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clean</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>security<span style="color: #000000; font-weight: bold;">/</span>p5-Crypt-DES
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clean</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>security<span style="color: #000000; font-weight: bold;">/</span>p5-Digest-HMAC
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clean</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>net<span style="color: #000000; font-weight: bold;">/</span>p5-IO-INET6
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clean</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>net-mgmt<span style="color: #000000; font-weight: bold;">/</span>p5-Net-SNMP
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clean</pre></div></div>

<h4>Installing the main tool for creating graphics, RRDTOOL:</h4>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>databases<span style="color: #000000; font-weight: bold;">/</span>rrdtool
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #007800;">BATCH</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clean</pre></div></div>

<h4>Installation of Nagios 3:</h4>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>net-mgmt<span style="color: #000000; font-weight: bold;">/</span>nagios
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clean</pre></div></div>

<p><em>Mark the options:</em></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">│ │<span style="color: #7a0874; font-weight: bold;">&#91;</span>X<span style="color: #7a0874; font-weight: bold;">&#93;</span> EMBEDDED_PERL   Enable embedded Perl <span style="color: #7a0874; font-weight: bold;">&#91;</span>requires Perl 5.8.0+<span style="color: #7a0874; font-weight: bold;">&#93;</span> │ │
│ │<span style="color: #7a0874; font-weight: bold;">&#91;</span>X<span style="color: #7a0874; font-weight: bold;">&#93;</span> NANOSLEEP       Use nanosleep <span style="color: #000000; font-weight: bold;">in</span> event timing               │ │
│ │<span style="color: #7a0874; font-weight: bold;">&#91;</span>X<span style="color: #7a0874; font-weight: bold;">&#93;</span> EVENT_BROKER    Enable event broker functionality           │ │</pre></div></div>

<p><em>Nagios-plugins:</em></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">│ │ <span style="color: #7a0874; font-weight: bold;">&#91;</span>X<span style="color: #7a0874; font-weight: bold;">&#93;</span> FPING    Support <span style="color: #000000; font-weight: bold;">for</span> non-flooding fast <span style="color: #c20cb9; font-weight: bold;">ping</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>check_fping<span style="color: #7a0874; font-weight: bold;">&#41;</span>  │ │
│ │ <span style="color: #7a0874; font-weight: bold;">&#91;</span>X<span style="color: #7a0874; font-weight: bold;">&#93;</span> NETSNMP  SNMP support <span style="color: #7a0874; font-weight: bold;">&#40;</span>check_snmp<span style="color: #7a0874; font-weight: bold;">&#41;</span>                         │ │</pre></div></div>

<p><em>If you are installing inside a Jail, select the option below:</em></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">│ │ <span style="color: #7a0874; font-weight: bold;">&#91;</span>X<span style="color: #7a0874; font-weight: bold;">&#93;</span> JAIL     Compilation within jail<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">8</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>see Makefile<span style="color: #7a0874; font-weight: bold;">&#41;</span>         │ │</pre></div></div>

<p><em>Rename the configuration of Nagios (<strong>running the shell csh</strong>)</em></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>nagios
foreach arquivo <span style="color: #7a0874; font-weight: bold;">&#40;</span> <span style="color: #ff0000;">&quot;<span style="color: #780078;">`ls -1`</span>&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #c20cb9; font-weight: bold;">mv</span> <span style="color: #007800;">$arquivo</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$arquivo</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'s/-sample//g'</span><span style="color: #000000; font-weight: bold;">`</span>
end
<span style="color: #7a0874; font-weight: bold;">cd</span> objects
foreach arquivo <span style="color: #7a0874; font-weight: bold;">&#40;</span> <span style="color: #ff0000;">&quot;<span style="color: #780078;">`ls -1`</span>&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #c20cb9; font-weight: bold;">mv</span> <span style="color: #007800;">$arquivo</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$arquivo</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'s/-sample//g'</span><span style="color: #000000; font-weight: bold;">`</span>
end</pre></div></div>

<h4>Image Pack for Nagios:</h4>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>misc<span style="color: #000000; font-weight: bold;">/</span>nagios-base-logos
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clean</pre></div></div>

<h4>Installation of NDO-utils:</h4>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>net-mgmt<span style="color: #000000; font-weight: bold;">/</span>ndoutils<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clean</pre></div></div>

<p><em>Mark the options:</em></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">│ │                 <span style="color: #7a0874; font-weight: bold;">&#91;</span>X<span style="color: #7a0874; font-weight: bold;">&#93;</span> MYSQL  MySQL Backend                       │ │</pre></div></div>

<p>Now is the time we start the installation of Centreon for this, we must first download the installation package Centreon and unpack it in a directory to work:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>tmp
fetch http:<span style="color: #000000; font-weight: bold;">//</span>download.centreon.com<span style="color: #000000; font-weight: bold;">/</span>centreon<span style="color: #000000; font-weight: bold;">/</span>centreon-2.1.4.tar.gz
<span style="color: #c20cb9; font-weight: bold;">tar</span> zxf centreon-2.1.4.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> centreon-2.1.4</pre></div></div>

<p>Let&#8217;s make some adjustments to run on FreeBSD:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">perl</span> <span style="color: #660033;">-p</span> <span style="color: #660033;">-i</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">'s/\/bin\/bash/\/usr\/local\/bin\/bash/g'</span> install.sh
<span style="color: #c20cb9; font-weight: bold;">perl</span> <span style="color: #660033;">-p</span> <span style="color: #660033;">-i</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">'s/\/bin\/bash/\/usr\/local\/bin\/bash/g'</span> libinstall<span style="color: #000000; font-weight: bold;">/*</span>
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>cron.d
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>centreon-2.1.4<span style="color: #000000; font-weight: bold;">/</span>tmpl<span style="color: #000000; font-weight: bold;">/</span>vardistrib
fetch <span style="color: #660033;">-o</span> freebsd http:<span style="color: #000000; font-weight: bold;">//</span>www.luizgustavo.pro.br<span style="color: #000000; font-weight: bold;">/</span>blog<span style="color: #000000; font-weight: bold;">/</span>wp-content<span style="color: #000000; font-weight: bold;">/</span>uploads<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">2010</span><span style="color: #000000; font-weight: bold;">/</span>02<span style="color: #000000; font-weight: bold;">/</span>freebsd.txt</pre></div></div>

<p>We will now begin installing Centreon:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> ..<span style="color: #000000; font-weight: bold;">/</span>..
.<span style="color: #000000; font-weight: bold;">/</span>install.sh <span style="color: #660033;">-f</span> tmpl<span style="color: #000000; font-weight: bold;">/</span>vardistrib<span style="color: #000000; font-weight: bold;">/</span>freebsd</pre></div></div>

<h4>Follow as the video:</h4>
<p>
<div >
<div id='hana_flv_flow3_3' style='display:block;width:592px;height:288px;' title=""></div>
</div>

			<script  type='text/javascript'>
		flowplayer('hana_flv_flow3_3', { src: 'http://www.luizgustavo.pro.br/blog/wp-content/plugins/hana-flv-player/flowplayer3/flowplayer-3.1.1.swf', wmode: 'transparent' }, { 
    		clip:  { 
    			url: 'http://www.luizgustavo.pro.br/blog/wp-content/uploads/2010/02/install_sh.flv',
        		scaling: 'scale', autoPlay: false, autoBuffering: false 
				  , onBeforeFinish : function() { this.play(0);  return false; }  
	        }
		}); 
			</script></p>
<p>When installation is complete, we will leave for the web, so, start MySQL and Apache:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.d<span style="color: #000000; font-weight: bold;">/</span>apache2 start
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.d<span style="color: #000000; font-weight: bold;">/</span>mysql-server start</pre></div></div>

<p>We hit a permission not ok:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">chown</span> <span style="color: #660033;">-R</span> www:www <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>centreon<span style="color: #000000; font-weight: bold;">/</span></pre></div></div>

<p><em>Now so we can point our browser to the server address Centreon:</em></p>
<pre>http://&lt;ip_ou_url&gt;/centreon</pre>
<h4>Follow the video to configure web:</h4>
<p>
<div >
<div id='hana_flv_flow3_4' style='display:block;width:592px;height:288px;' title=""></div>
</div>

			<script  type='text/javascript'>
		flowplayer('hana_flv_flow3_4', { src: 'http://www.luizgustavo.pro.br/blog/wp-content/plugins/hana-flv-player/flowplayer3/flowplayer-3.1.1.swf', wmode: 'transparent' }, { 
    		clip:  { 
    			url: 'http://www.luizgustavo.pro.br/blog/wp-content/uploads/2010/02/centreon_inst_web1.flv',
        		scaling: 'scale', autoPlay: false, autoBuffering: false 
				  , onBeforeFinish : function() { this.play(0);  return false; }  
	        }
		}); 
			</script></p>
<p><strong>still need to export the configuration files for our NDO-Utils to work for that accompanies the video on the export of the same web:</strong></p>
<p>
<div >
<div id='hana_flv_flow3_5' style='display:block;width:592px;height:288px;' title=""></div>
</div>

			<script  type='text/javascript'>
		flowplayer('hana_flv_flow3_5', { src: 'http://www.luizgustavo.pro.br/blog/wp-content/plugins/hana-flv-player/flowplayer3/flowplayer-3.1.1.swf', wmode: 'transparent' }, { 
    		clip:  { 
    			url: 'http://www.luizgustavo.pro.br/blog/wp-content/uploads/2010/02/export_config.flv',
        		scaling: 'scale', autoPlay: false, autoBuffering: false 

	        }
		}); 
			</script></p>
<p><em>That done, we can initialize the NDO:</em></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'ndo2db_enable=&quot;YES&quot;'</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.conf
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.d<span style="color: #000000; font-weight: bold;">/</span>ndo2db start</pre></div></div>

<p><em>Now, let&#8217;s start the process of Centreon:</em></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">pw user mod nagios <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">sh</span>
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.d<span style="color: #000000; font-weight: bold;">/</span>centcore start
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.d<span style="color: #000000; font-weight: bold;">/</span>centstorage start</pre></div></div>

<p><em>We hit a path within the SUDO</em><em>:</em></p>
<div>
<div>
<pre>perl -p -i -e 's/\/etc\/init\.d\/nagios/\/usr\/local\/etc\/rc\.d\/nagios/g' /usr/local/etc/sudoers</pre>
</div>
</div>
<p><em>Setting the part of CRON for FreeBSD</em><em>:</em></p>
<div>
<div>
<pre>cat /usr/local/etc/cron.d/* &gt;&gt; /etc/crontab
/etc/rc.d/cron restart</pre>
</div>
</div>
<h4>and now the Nagios:</h4>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'nagios_enable=&quot;YES&quot;'</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.conf
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.d<span style="color: #000000; font-weight: bold;">/</span>nagios start</pre></div></div>

<p>Finished ! Now you can set up your hosts and start monitoring.</p>
<p><a href="http://www.luizgustavo.pro.br/blog/wp-content/uploads/2009/09/logo_mundounix3.png"><img class="alignleft size-full wp-image-8" style="margin-left: 5px; margin-right: 5px;" title="logo_mundounix3" src="http://www.luizgustavo.pro.br/blog/wp-content/uploads/2009/09/logo_mundounix3.png" alt="" width="284" height="72" /></a><em><strong>If you need support Centreon, please contact the <a href="http://www.mundounix.com.br" target="_blank">Mundounix</a>, we offer support and advice for monitoring networks solution.</strong></em></p>
<p><a href="http://www.mundounix.com.br" target="_blank">http://www.mundounix.com.br</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.luizgustavo.pro.br/blog/2010/02/16/centreon-2-1-4-on-freebsd-english/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
<enclosure url="http://www.luizgustavo.pro.br/blog/wp-content/uploads/2010/02/install_sh.flv" length="1874920" type="video/x-flv" />
<enclosure url="http://www.luizgustavo.pro.br/blog/wp-content/uploads/2010/02/centreon_inst_web1.flv" length="2095481" type="video/x-flv" />
<enclosure url="http://www.luizgustavo.pro.br/blog/wp-content/uploads/2010/02/export_config.flv" length="1475332" type="video/x-flv" />
		</item>
	</channel>
</rss>
