<?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 &#187; mundoUnix</title>
	<atom:link href="http://www.luizgustavo.pro.br/blog/category/mundounix/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>Fri, 30 Jul 2010 20:32:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1-alpha</generator>
		<item>
		<title>OpenSVC: Nova ferramenta para cluster no FreeBSD</title>
		<link>http://www.luizgustavo.pro.br/blog/2010/06/17/opensvc-nova-ferramenta-para-cluster-no-freebsd/</link>
		<comments>http://www.luizgustavo.pro.br/blog/2010/06/17/opensvc-nova-ferramenta-para-cluster-no-freebsd/#comments</comments>
		<pubDate>Thu, 17 Jun 2010 18:46:40 +0000</pubDate>
		<dc:creator>luizgustavo</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Software Livre]]></category>
		<category><![CDATA[mundoUnix]]></category>
		<category><![CDATA[Cluster]]></category>
		<category><![CDATA[OpenSVC]]></category>
		<category><![CDATA[ports]]></category>

		<guid isPermaLink="false">http://www.luizgustavo.pro.br/blog/?p=570</guid>
		<description><![CDATA[OpenSVC é um projeto sob licença GPLv2 para automatizar operações em baixo nivel  necessárias para levantar recursos de sistema (Maquinas virtuais, ip, grupo de discos, pontos de montagem, etc.) em um nó e replicar para um nó secundario (remoto ou localmente). OpenSVC basicamente é uma ferramenta de gerenciamento de Cluster, ele acabou de ser portada [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><img class="alignright" style="margin: 5px;" title="opensvc" src="http://www.opensvc.com/init/static/index_cluster.png" alt="" width="285" height="168" />OpenSVC é um projeto sob licença GPLv2 para automatizar operações em baixo nivel  necessárias para levantar recursos de sistema (Maquinas virtuais, ip, grupo de discos, pontos de montagem, etc.) em um nó e replicar para um nó secundario (remoto ou localmente). OpenSVC basicamente é uma ferramenta de gerenciamento de Cluster, ele acabou de ser portada para o FreeBSD e mais do que nunca, precisa de testes e a ideia é que possamos reunir pessoas que possam contribuir para o projeto integrando cada vez mais as ferramentas nativas do FreeBSD nela.</p>
<p>Veja mais detalhes no anuncio oficial:<br />
<a href="http://lists.freebsd.org/pipermail/freebsd-announce/2010-June/001328.html" target="_blank">http://lists.freebsd.org/pipermail/freebsd-announce/2010-June/001328.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.luizgustavo.pro.br/blog/2010/06/17/opensvc-nova-ferramenta-para-cluster-no-freebsd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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 [...]]]></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 [...]]]></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>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 [...]]]></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>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 [...]]]></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><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:560px;height:336px;' title="*Video:tmux"></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/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>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 [...]]]></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_2' style='display:block;width:592px;height:288px;' title=""></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/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_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/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_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/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>
		<item>
		<title>Centreon 2.1.4 no FreeBSD</title>
		<link>http://www.luizgustavo.pro.br/blog/2010/02/15/centreon-2-1-4-no-freebsd/</link>
		<comments>http://www.luizgustavo.pro.br/blog/2010/02/15/centreon-2-1-4-no-freebsd/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 19:26:41 +0000</pubDate>
		<dc:creator>luizgustavo</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Software Livre]]></category>
		<category><![CDATA[mundo BSD]]></category>
		<category><![CDATA[centreon]]></category>
		<category><![CDATA[monitoramento]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.luizgustavo.pro.br/blog/?p=366</guid>
		<description><![CDATA[Este tutorial vai orientar o usuário a efetuar a instalação do Centreon no FreeBSD. Estaremos utilizando uma instalação em uma Jail do FreeBSD com kernel versão 7.3-PRERELEASE, a versão do kernel não influenciará no tutorial. English users, you can use the Tutorial in english, click here O que é o Centreon ? Centreon é uma [...]]]></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 style="text-align: left;">Este tutorial vai orientar o usuário a efetuar a instalação do Centreon no FreeBSD. Estaremos utilizando uma instalação em uma Jail do FreeBSD com kernel versão 7.3-PRERELEASE, a versão do kernel não influenciará no tutorial.</p>
<blockquote><p><strong>English users, you can use the Tutorial in english, <a href="http://www.luizgustavo.pro.br/blog/2010/02/16/centreon-2-1-4-on-freebsd-english/" target="_self">click here</a></strong></p></blockquote>
<h4>O que é o Centreon ?</h4>
<div>
<p style="text-align: justify;">Centreon é uma poderosa ferramenta de monitoramento de hosts e serviços, ele é um frontend que funciona em cima do Nagios, adicionando muitas facilidades para visualização e histórico de alertas, estatus, etc..</p>
<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>Para conhecer um pouco mais sobre a ferramenta, eu lhe convido a visitar o site oficial no endereço <a title="http://www.centreon.com" rel="nofollow" href="http://www.centreon.com/">http://www.centreon.com</a></p>
<p><span id="more-366"></span>O que nós vamos precisar ?</p>
<div>
<ul>
<li>Apache</li>
<li><acronym title="Hypertext Preprocessor">PHP</acronym> + um monte de dependências</li>
<li>Mysql</li>
<li>Nagios</li>
<li>Pear + um monte de dependências</li>
<li><acronym title="Practical Extraction and Report Language">Perl</acronym> + um monte de dependências</li>
<li>rrdtool</li>
<li>snmp</li>
<li>sudo</li>
<li>Centreon (óbvio :-p)</li>
</ul>
</div>
<h2>Iniciando a instalação dos pacotes</h2>
</div>
<h4>Instalação do 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>Marque as opções:</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>Instalando BASH:</h4>
<p><em>Basicamente iremos usar o BASH somente para executar o script de instalação</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>Instalação do SUDO para execução de tarefas para o usuário do apache:</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>Instalação do servidor Apache:</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 o Apache para iniciar junto com o 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>Instalação do 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>Marque as opções:</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>Opções para inicialização do serviço:</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>Instalação do 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>Marque as opções:</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 o 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 o Apache para usar o 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>Instalação do servidor de banco de dados 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 o MySQL para ser iniciado junto com o 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>Instalando as dependências do 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>Marque a opção abaixo:</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>Marque a opção abaixo:</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>Instalando o PEAR e suas dependências:</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
<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>bin<span style="color: #000000; font-weight: bold;">/</span>pear uninstall HTML_QuickForm_advmultiselect
<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>bin<span style="color: #000000; font-weight: bold;">/</span>pear <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #660033;">-f</span> pear<span style="color: #000000; font-weight: bold;">/</span>HTML_QuickForm_advmultiselect-1.2.0</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_Traceroute
<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>pear-Net_Ping
<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-Validate
<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>pear-XML_RPC
<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>mail<span style="color: #000000; font-weight: bold;">/</span>pear-Mail
<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>mail<span style="color: #000000; font-weight: bold;">/</span>pear-Mail_Mime
<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>www<span style="color: #000000; font-weight: bold;">/</span>pear-HTTP
<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>pear-SOAP
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #007800;">BATCH</span>=<span style="color: #ff0000;">&quot;&quot;</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>Instalando alguns pacotes em PERL necessários para o 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>Instalação da principal ferramenta de criação de gráficos, 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>Instalação do 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>Marque as opções:</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>Se estiver instalando dentro de uma Jail, marque a opção abaixo:</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>Renomeie os arquivos de configuração do Nagios (<strong>executando o 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>Pacote de figuras do 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>Instalação do 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>Marque a opção:</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>Agora é a hora de iniciar-mos a instalação do Centreon, para isso, precisamos primeiramente baixar o pacote de instalação do Centreon e descompacta-lo em um diretorio para trabalhar-mos:</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>Vamos fazer alguns acertos para funcionar no 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>Vamos agora iniciar a instalação do 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>Acompanhe conforme o vídeo:</h4>
<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/install_sh.flv',
        		scaling: 'scale', autoPlay: false, autoBuffering: false 
				  , onBeforeFinish : function() { this.play(0);  return false; }  
	        }
		}); 
			</script></p>
<p>Terminada a instalação, vamos partir para a parte web, para isso, inicie o MySQL e o 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>Vamos acertar uma permissão não realizada:</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>Agora assim, podemos apontar nosso navergador para o endereço do servidor centreon:</em></p>
<pre>http://&lt;ip_ou_url&gt;/centreon</pre>
<h4>Acompanhe o vídeo para configurar via web:</h4>
<p>
<div >
<div id='hana_flv_flow3_6' style='display:block;width:592px;height:288px;' title=""></div>
</div>

			<script  type='text/javascript'>
		flowplayer('hana_flv_flow3_6', { 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>Falta pouco&#8230; ainda precisamos exportar os arquivos de configuração para que nosso NDO-Utils possa funcionar, para isso, acompanhe o vídeo na exportação do mesmo via web:</strong></p>
<p>
<div >
<div id='hana_flv_flow3_7' style='display:block;width:592px;height:288px;' title=""></div>
</div>

			<script  type='text/javascript'>
		flowplayer('hana_flv_flow3_7', { 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>Feito isso, podemos inicializar o 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>Agora, vamos iniciar os processos do 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>Vamos acertar um path dentro do SUDO:</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/\/etc\/init\.d\/nagios/\/usr\/local\/etc\/rc\.d\/nagios/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>sudoers</pre></div></div>

<p>Acertar a parte da CRON para o FreeBSD:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><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>cron.d<span style="color: #000000; font-weight: bold;">/*</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>crontab
<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>cron restart</pre></div></div>

<h4>E agora o 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>Pronto ! agora é só configurar os seus hosts e iniciar o monitoramento.</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>Se necessitar de suporte ao Centreon, entre em contato com a <a href="http://www.mundounix.com.br" target="_blank">Mundounix</a>, nós oferecemos suporte e consultoria para solução de monitoramento de redes.</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/15/centreon-2-1-4-no-freebsd/feed/</wfw:commentRss>
		<slash:comments>11</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>
		<item>
		<title>Firefox 3.6 disponivel no ports do FreeBSD</title>
		<link>http://www.luizgustavo.pro.br/blog/2010/02/09/firefox-3-6-disponivel-no-ports-do-freebsd/</link>
		<comments>http://www.luizgustavo.pro.br/blog/2010/02/09/firefox-3-6-disponivel-no-ports-do-freebsd/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 08:53:54 +0000</pubDate>
		<dc:creator>luizgustavo</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Software Livre]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[software livre]]></category>

		<guid isPermaLink="false">http://www.luizgustavo.pro.br/blog/?p=344</guid>
		<description><![CDATA[Na noite do dia 7 de fevereiro nosso commiter beat@ disponibilizou no ports do FreeBSD a mais nova versão do Firefox 3.6. Nunca esqueça de ler o ports/UPDATING sempre que efetuar uma atualização de algum port, ali contém informações valiosíssimas s﻿obre alguma alteração de um port.﻿ # cd /usr/ports/www/firefox3-devel # cat pkg-descr Mozilla Firefox is a free [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><a href="http://www.luizgustavo.pro.br/blog/wp-content/uploads/2010/02/firefox-logo.png"><img class="alignright size-thumbnail wp-image-348" style="border: 0pt none; margin: 3px;" title="firefox-logo" src="http://www.luizgustavo.pro.br/blog/wp-content/uploads/2010/02/firefox-logo-150x150.png" alt="" width="82" height="82" /></a>Na noite do dia 7 de fevereiro nosso commiter beat@ disponibilizou no ports do FreeBSD a mais nova versão do Firefox 3.6.</p>
<p style="text-align: justify;">Nunca esqueça de ler o ports/UPDATING sempre que efetuar uma atualização de algum port, ali contém informações valiosíssimas s﻿obre alguma alteração de um port.﻿</p>
<p><span id="more-344"></span></p>
<pre># cd /usr/ports/www/firefox3-devel
# cat pkg-descr
Mozilla Firefox is a free and open source web browser descended from the
Mozilla Application Suite.It is small, fast and easy to use, and offers many
advanced features:

 o Popup Blocking
 o Tabbed Browsing
 o Live Bookmarks (ie. RSS)
 o Extensions
 o Themes
 o FastFind
 o Improved Security

WWW: http://www.mozilla.com/firefox
</pre>
<p>Fonte: <a href="http://miwi.bsdcrew.de/2010/02/firefox-3-6-for-freebsd-available/" target="_blank">http://miwi.bsdcrew.de/2010/02/firefox-3-6-for-freebsd-available/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.luizgustavo.pro.br/blog/2010/02/09/firefox-3-6-disponivel-no-ports-do-freebsd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PC-BSD 8.0-RC Lançado</title>
		<link>http://www.luizgustavo.pro.br/blog/2010/01/27/pc-bsd-8-0-rc-lancado/</link>
		<comments>http://www.luizgustavo.pro.br/blog/2010/01/27/pc-bsd-8-0-rc-lancado/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 19:38:58 +0000</pubDate>
		<dc:creator>luizgustavo</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Software Livre]]></category>
		<category><![CDATA[mundo BSD]]></category>
		<category><![CDATA[lançamento]]></category>
		<category><![CDATA[pc-bsd]]></category>

		<guid isPermaLink="false">http://www.luizgustavo.pro.br/blog/?p=318</guid>
		<description><![CDATA[A equipe do PC-BSD acabou de anunciar o lançamento da versão 8.0-RC do PC-BSD (codinome Hubble Edition) que já esta disponível para download, o mesmo esta rodando a versão 8.0-RELEASE-P2 do FreeBSD e o KDE 4.3.4 PC-BSD 8.0 contém um número grande de aperfeiçoamentos e melhorias desde da familia 7.x. Para visualizar a lista completa [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.luizgustavo.pro.br/blog/wp-content/uploads/2010/01/PC-BSD.png"><img class="alignleft size-full wp-image-322" title="PC-BSD" src="http://www.luizgustavo.pro.br/blog/wp-content/uploads/2010/01/PC-BSD.png" alt="" width="256" height="53" /></a>A equipe do PC-BSD acabou de anunciar o lançamento da versão 8.0-RC do PC-BSD (codinome Hubble Edition) que já esta disponível para download, o mesmo esta rodando a versão 8.0-RELEASE-P2 do FreeBSD e o KDE 4.3.4</p>
<p>PC-BSD 8.0 contém um número grande de aperfeiçoamentos e melhorias desde da familia 7.x. Para visualizar a lista completa de alterações, veja o link <a href="http://www.pcbsd.org/content/view/141/11/" target="_blank">changelog</a> (em inglês). Algumas das alterações mais significativas podem ser vista abaixo:</p>
<ul>
<li>FreeBSD 8.0-RELEASE-P2</li>
<li>KDE 4.3.4</li>
<li>Novo sistema de instalação, permite a instalação do  PC-BSD ou FreeBSD</li>
<li>Executa o sistem em modo &#8220;Live CD&#8221; direto do  DVD</li>
<li>Atualização do Gerenciador de Software, permite a navegação e a instalação direta dos aplicativos</li>
<li>Suporte à aceleração 3D com drivers da NVIDIA na plataforma amd64</li>
</ul>
<p>A versão 8.0-RC do PC-BSD esta disponivel para download em um dos mirrors do projeto e o mesmo em breve estará disponivel como um torrent a partir do site <a href="http://www.gotbsd.net">www.gotbsd.net.</a></p>
<p>Nós estamos encorajando os tradutores para testar esta versão e verificar se não existem problemas nas nossas traduções que fazem parte do nosso servidor <a href="http://pootle2.pcbsd.org">Pootle 2 </a>e se o conjunto de aplicações estão funcionando corretamente.</p>
<ul>
<li><a href="content/view/143/11/">Download PC-BSD 8.0-RC</a></li>
<li><a href="content/view/141/11/">Changelog</a></li>
<li><a href="content/view/142/11/">Release Notes</a></li>
</ul>
<p>Este post é uma tradução direta do anuncio oficial no site do projeto: <a href="http://www.pcbsd.org" target="_blank">http://www.pcbsd.org</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.luizgustavo.pro.br/blog/2010/01/27/pc-bsd-8-0-rc-lancado/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ZFS: Auto-complete para bash e tcsh</title>
		<link>http://www.luizgustavo.pro.br/blog/2009/10/24/zfs-auto-complete-para-bash-e-tcsh/</link>
		<comments>http://www.luizgustavo.pro.br/blog/2009/10/24/zfs-auto-complete-para-bash-e-tcsh/#comments</comments>
		<pubDate>Sat, 24 Oct 2009 03:08:01 +0000</pubDate>
		<dc:creator>luizgustavo</dc:creator>
				<category><![CDATA[Software Livre]]></category>
		<category><![CDATA[mundo BSD]]></category>
		<category><![CDATA[mundoUnix]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[tcsh]]></category>
		<category><![CDATA[zfs]]></category>

		<guid isPermaLink="false">http://www.luizgustavo.pro.br/blog/?p=281</guid>
		<description><![CDATA[Nas andanças da internet, encontrei um post sobre alguns scripts para bash e tcsh para auto-completar comandos do ZFS. Achei muito interessante, vale a visita: http://haim-tzadok.blogspot.com/2009/06/zfs-bash-and-tcsh-completion.html]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><a href="http://www.luizgustavo.pro.br/blog/wp-content/uploads/2009/10/zfs_feature_2.jpg"><img class="alignright size-full wp-image-282" title="zfs_feature_2" src="http://www.luizgustavo.pro.br/blog/wp-content/uploads/2009/10/zfs_feature_2.jpg" alt="zfs_feature_2" width="176" height="140" /></a>Nas andanças da internet, encontrei um post sobre alguns scripts para bash e tcsh para auto-completar comandos do ZFS. Achei muito interessante, vale a visita:</p>
<p><a href="http://haim-tzadok.blogspot.com/2009/06/zfs-bash-and-tcsh-completion.html" target="_blank">http://haim-tzadok.blogspot.com/2009/06/zfs-bash-and-tcsh-completion.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.luizgustavo.pro.br/blog/2009/10/24/zfs-auto-complete-para-bash-e-tcsh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
