[FUG-BR] SNMP + MRTG

R. Filippus filippus em gmail.com
Sex Mar 4 11:56:51 BRT 2005


Bom dia a todos.

Instalei o MRTG e o SNMP(net-snmp).

Já consigo visualizar os graficos do MRTG pelo browser, mas sem dados, 0bytes!
Ele já esta configurado no cron para rodar a cada 5 min.

#vi /etc/crontab
*/5 * * * *  root  /usr/local/bin/mrtg /usr/local/etc/mrtg/mrtg.cfg
--logging /var/log/mrtg.log

Configurei o MRTG também com o seguinte conteúdo.
#vi /usr/local/etc/mrtg/mrtg.cfg
WorkDir: /usr/local/www/data/mrtg

RunAsDaemon: Yes

Language: brazilian

Options[_]: growright,bits

Target[porta1]: 1:public em 192.168.250.250
MaxBytes[porta1]: 12500000
Title[porta1]: Analise de Trafego Porta 1
PageTop[porta1]: <H1>Estatisticas Porta 1</H1>


Mas não alterei nada no snmpd.

O que eu poderia configurar aqui? Pois li em alguns howto que iria
aparecer uma janela de configuração solicitando informações, o que não
aconteceu.
Estou usando FreeBSD 5.3.
Versões: mrtg-2.11.1,1 , net-snmp-5.2.1.

Logs de erros:
#vi /var/log/mrtg.log
2004-03-05 11:50:38 -- SNMP Error:
no response received
SNMPv1_Session (remote host: "192.168.250.250" [192.168.250.250].161)
                  community: "public"
                 request ID: 1232397539
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
 at /usr/local/lib/perl5/site_perl/5.8.5/SNMP_util.pm line 490
2004-03-05 11:50:38 -- SNMPGET Problem for ifInOctets.1 ifOutOctets.1
sysUptime sysName on public em 192.168.250.250::::::v4only
 at /usr/local/bin/mrtg line 1849
2004-03-05 11:50:38 -- WARNING: skipping because at least the query
for ifInOctets.1 on  192.168.250.250 did not succeed
2004-03-05 11:50:38 -- WARNING: no data for
ifInOctets&ifOutOctets:public em 192.168.250.250. Skipping further
queries for Host 192.168.250.250 in this round.
2004-03-05 11:50:38 -- ERROR: Target[porta1][_IN_] '
$target->[0]{$mode} ' did not eval into defined data
2004-03-05 11:50:38 -- ERROR: Target[porta1][_OUT_] '
$target->[0]{$mode} ' did not eval into defined data
2004-03-05 11:55:01 -- Started mrtg with config '/usr/local/etc/mrtg/mrtg.cfg'
2004-03-05 11:55:01 -- ERROR: I Quit! Another copy of mrtg seems to be
running. Check /usr/local/etc/mrtg/mrtg.pid


#vi /var/log/snmpd.log
mibII/mta_sendmail.c:open_sendmailst: could not guess version of
statistics file "/var/log/sendmail.st"
Warning: no access control information configured.
  It's unlikely this agent can serve any useful purpose in this state.
  Run "snmpconf -g basic_setup" to help you configure the snmpd.conf
file for this agent.
Creating directory: /var/net-snmp
NET-SNMP version 5.2.1
Connection from UDP: [192.168.250.250]:54042
Connection from UDP: [192.168.250.250]:54042
Connection from UDP: [192.168.250.250]:54042
Connection from UDP: [192.168.250.250]:54042
Connection from UDP: [192.168.250.250]:54042
Connection from UDP: [192.168.250.250]:59568
Connection from UDP: [192.168.250.250]:59568
Connection from UDP: [192.168.250.250]:59568
Connection from UDP: [192.168.250.250]:59568
Connection from UDP: [192.168.250.250]:59568
Connection from UDP: [192.168.250.250]:59568
Connection from UDP: [192.168.250.250]:59568
Connection from UDP: [192.168.250.250]:59568
Connection from UDP: [192.168.250.250]:59568
Connection from UDP: [192.168.250.250]:59568



 
Atenciosamente,
R. Filippus

_______________________________________________________________
Para enviar um novo email para a lista: freebsd em fug.com.br
Sair da Lista: http://mail.fug.com.br/mailman/listinfo/freebsd_fug.com.br
Historico: http://www4.fugspbr.org/lista/html/FUG-BR/




Mais detalhes sobre a lista de discussão freebsd