<?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>Arquivos cfgmaker - Remontti</title>
	<atom:link href="https://blog.remontti.com.br/tag/cfgmaker/feed" rel="self" type="application/rss+xml" />
	<link>https://blog.remontti.com.br/tag/cfgmaker</link>
	<description>rudimar@remontti</description>
	<lastBuildDate>Wed, 28 Sep 2016 12:26:25 +0000</lastBuildDate>
	<language>pt-BR</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://blog.remontti.com.br/wp-content/uploads/2024/09/icone-rr-80x80.png</url>
	<title>Arquivos cfgmaker - Remontti</title>
	<link>https://blog.remontti.com.br/tag/cfgmaker</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Gráfico MRTG + SNMP Autoconfiguração com cfgmaker</title>
		<link>https://blog.remontti.com.br/193</link>
					<comments>https://blog.remontti.com.br/193#comments</comments>
		
		<dc:creator><![CDATA[Rudimar Remontti]]></dc:creator>
		<pubDate>Tue, 30 Dec 2014 22:47:58 +0000</pubDate>
				<category><![CDATA[Dicas]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutoriais]]></category>
		<category><![CDATA[cfgmaker]]></category>
		<category><![CDATA[gráfico]]></category>
		<category><![CDATA[mrtg]]></category>
		<category><![CDATA[snmp]]></category>
		<category><![CDATA[snmpd]]></category>
		<guid isPermaLink="false">http://www.remontti.com.br/blog/?p=193</guid>

					<description><![CDATA[<p>Vou deixar aqui uma dica legal como criar gráficos no mrtg Leu o post sobre a configuração do SNMP? Não, então vai ler! 😛 Ah vc sabe! blz! 😀 Com o SNMP configurado, vamos&#46;&#46;&#46;</p>
<p>O post <a href="https://blog.remontti.com.br/193">Gráfico MRTG + SNMP Autoconfiguração com cfgmaker</a> apareceu primeiro em <a href="https://blog.remontti.com.br">Remontti</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Vou deixar aqui uma dica legal como criar gráficos no mrtg<br />
Leu o post sobre a configuração do <a href="https://blog.remontti.com.br/189">SNMP</a>? Não, então vai ler! <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f61b.png" alt="😛" class="wp-smiley" style="height: 1em; max-height: 1em;" /><br />
Ah vc sabe! blz! <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f600.png" alt="😀" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>Com o SNMP configurado, vamos fazer nosso servidor se conectar a outros servidores ou então somente local para coletar as informações e gerar nosso arquivo mrtg.conf, bacana não?<br />
Tenha instalado em seu server, apache2 snmp snmpd mrtg.</p>
<p><span id="more-193"></span></p>
<p><span style="color: #000080;"><strong># apt-get install apache2 snmp snmpd mrtg</strong></span></p>
<p>Na tela abaixo responda sim.</p>
<p><a href="https://blog.remontti.com.br/wp-content/uploads/2009/04/Captura-de-tela-de-2016-09-06-162959.png" data-rel="lightbox-gallery-0pDUvkDG" data-rl_title="" data-rl_caption="" title=""><img decoding="async" class="alignnone size-medium wp-image-1065" src="https://blog.remontti.com.br/wp-content/uploads/2009/04/Captura-de-tela-de-2016-09-06-162959-300x46.png" alt="Captura de tela de 2016-09-06 16:29:59" width="300" height="46" srcset="https://blog.remontti.com.br/wp-content/uploads/2009/04/Captura-de-tela-de-2016-09-06-162959-300x46.png 300w, https://blog.remontti.com.br/wp-content/uploads/2009/04/Captura-de-tela-de-2016-09-06-162959-768x119.png 768w, https://blog.remontti.com.br/wp-content/uploads/2009/04/Captura-de-tela-de-2016-09-06-162959-1024x158.png 1024w, https://blog.remontti.com.br/wp-content/uploads/2009/04/Captura-de-tela-de-2016-09-06-162959.png 1587w" sizes="(max-width: 300px) 100vw, 300px" /></a></p>
<p>Baseado no tutorial [<a href="https://blog.remontti.com.br/189">Configurando servidor SNMP</a>] por padrão a view exportada trás apenas informações básicas.  Neste caso vou querer coletar dados da minha interface de rede então vou criar uma community para uma view que irá me exportar todas as informações.</p>
<p><span style="color: #000080;"><strong># vim /etc/snmp/snmpd.conf</strong></span></p>
<pre class="remontti-code">view all included .1
rocommunity &lt;span style=&quot;color: #ff0000;&quot;&gt;&lt;strong&gt;publicall&lt;/strong&gt;&lt;/span&gt;  default    -V all
</pre>
<p>Execute o seguinte comandos:<br />
Crie o diretório qual seu mrtg irá ficar.<br />
<span style="color: #000080;"><strong># mkdir /var/www/mrtg<br />
Criamos um bkp do arquivo original<br />
# mv /etc/mrtg.cfg  /etc/mrtg.cfg.bkp<br />
</strong></span><br />
Vamos a mágina! <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f600.png" alt="😀" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<pre class="remontti-code">&lt;strong&gt;&lt;span style=&quot;color: #000080;&quot;&gt;# cfgmaker  \
--global &#039;Options[_]: bits,growright,nobanner&#039; \
--output /etc/mrtg.cfg \&lt;/span&gt;
&lt;span style=&quot;color: #ff0000;&quot;&gt;publicall&lt;/span&gt;&lt;span style=&quot;color: #000080;&quot;&gt;@localhost&lt;/span&gt;
&lt;/strong&gt;</pre>
<p>Caso você quer coletar de outros servidor ou roteadores, basta adicionar <em>public@ip public@10.0.0.1</em> &#8230;</p>
<p>Ficou com dúvida sobre, as opções do cfgmaker: <a href="http://oss.oetiker.ch/mrtg/doc/cfgmaker.en.html" target="_blank">http://oss.oetiker.ch/mrtg/doc/cfgmaker.en.html</a></p>
<p>Bom se tudo estiver certinho não irá retornar:</p>
<pre class="remontti-code"># cfgmaker  \
&gt; --global &#039;Options[_]: bits,growright,nobanner&#039; \
&gt; --output /etc/mrtg.cfg \
&gt; publicall@localhost
--base: Get Device Info on publicall@localhost:
--base: Vendor Id: Unknown Vendor - 1.3.6.1.4.1.8072.3.2.10
--base: Populating confcache
--base: Get Interface Info
--base: Walking ifIndex
--snpd:   publicall@localhost: -&gt; 1 -&gt; ifIndex = 1
--snpd:   publicall@localhost: -&gt; 2 -&gt; ifIndex = 2
--base: Walking ifType
--snpd:   publicall@localhost: -&gt; 1 -&gt; ifType = 24
--snpd:   publicall@localhost: -&gt; 2 -&gt; ifType = 6
--base: Walking ifAdminStatus
--snpd:   publicall@localhost: -&gt; 1 -&gt; ifAdminStatus = 1
--snpd:   publicall@localhost: -&gt; 2 -&gt; ifAdminStatus = 1
--base: Walking ifOperStatus
--snpd:   publicall@localhost: -&gt; 1 -&gt; ifOperStatus = 1
--snpd:   publicall@localhost: -&gt; 2 -&gt; ifOperStatus = 1
--base: Walking ifMtu
--snpd:   publicall@localhost: -&gt; 1 -&gt; ifMtu = 65536
--snpd:   publicall@localhost: -&gt; 2 -&gt; ifMtu = 1500
--base: Walking ifSpeed
--snpd:   publicall@localhost: -&gt; 1 -&gt; ifSpeed = 10000000
--snpd:   publicall@localhost: -&gt; 2 -&gt; ifSpeed = 1000000000
--base: Writing /tmp/x.cfg
</pre>
<p>E um novo arquivo /etc/mrtg.cfg será criado! De uma verificada nele, quem sabe tenha alguns ajustes que você pode querer alterar, ex nomes etc.</p>
<p>Rodamos então o MRTG:<br />
<span style="color: #000080;"><strong># env LANG=C /usr/bin/mrtg /etc/mrtg.cfg</strong></span></p>
<p>Se você não possui o diretório /var/www/mrtg irá dar erro!</p>
<p><a href="https://blog.remontti.com.br/wp-content/uploads/2009/04/Captura-de-tela-de-2016-09-06-174724.png" data-rel="lightbox-gallery-0pDUvkDG" data-rl_title="" data-rl_caption="" title=""><img fetchpriority="high" decoding="async" class="alignnone size-medium wp-image-1080" src="https://blog.remontti.com.br/wp-content/uploads/2009/04/Captura-de-tela-de-2016-09-06-174724-300x270.png" alt="Captura de tela de 2016-09-06 17:47:24" width="300" height="270" srcset="https://blog.remontti.com.br/wp-content/uploads/2009/04/Captura-de-tela-de-2016-09-06-174724-300x270.png 300w, https://blog.remontti.com.br/wp-content/uploads/2009/04/Captura-de-tela-de-2016-09-06-174724.png 548w" sizes="(max-width: 300px) 100vw, 300px" /></a></p>
<p>Será criado um arquivo: /etc/cron.d/mrtg qual irá executar a cada 5 min, caso deseje desativar edite e comente a linha.</p>
<pre class="remontti-code">*/5 *	* * *	root	if [ -x /usr/bin/mrtg ] &amp;&amp; [ -r /etc/mrtg.cfg ] &amp;&amp; [ -d &quot;$(grep &#039;^[[:space:]]*[^#]*[[:space:]]*WorkDir&#039; /etc/mrtg.cfg | awk &#039;{ print $NF }&#039;)&quot; ]; then mkdir -p /var/log/mrtg ; env LANG=C /usr/bin/mrtg /etc/mrtg.cfg 2&gt;&amp;1 | tee -a /var/log/mrtg/mrtg.log ; fi</pre>
<p>Se está pensando em proteger o acesso com senha esse tuto por ser útil para você <a href="https://blog.remontti.com.br/121" target="_self">Protegendo diretórios com Apache</a>.</p>
<p>Qualquer dúvida comente!</p>
<p><strong>ARTIGOS RECOMENDADOS:</strong><br />
<strong><a href="https://blog.remontti.com.br/193">Gráfico MRTG + SNMP rapidinho</a> </strong><br />
<strong><a href="https://blog.remontti.com.br/669">Gerando gráfico ICMP(ms) MRTG</a> </strong></p>
<p>O post <a href="https://blog.remontti.com.br/193">Gráfico MRTG + SNMP Autoconfiguração com cfgmaker</a> apareceu primeiro em <a href="https://blog.remontti.com.br">Remontti</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.remontti.com.br/193/feed</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
			</item>
	</channel>
</rss>
