+ Responder ao Tópico



  1. #1

    Padrão Habilitar SNMP Squid

    Opa galera, alguem sabe como habilitar o SNMP no Squid? Lembro que minha distribuição é Conectiva 10, então, meu squid foi instalado via RPM. Será que talvez eu teria que alterar algo no meu squid.conf pra habilitar o SNMP?

    Preciso disso pra poder trabalhar juntamente com o MRTG...

    Conto com a ajuda...

    Obrigado,

  2. #2
    Danilo_Montagna
    Visitante

    Padrão Habilitar SNMP Squid

    snmp_port 3401
    acl snmp_squid snmp_community public
    snmp_access allow snmp_squid localhost
    snmp_access deny all


    Nao sei se o conectiva vem com o squid compilado com SNMP por default.. confira isso..

    senao tera que recompilar ele com a opcao..

    ./configure --enable-snmp

    aqui tem um cfg de exemplo apra usar com o MRTG..

    http://www.psychofx.com/chris/unix/mrtg/mrtg-squid.cfg

    falow

  3. #3

    Padrão Habilitar SNMP Squid

    Obrigado Danilo,

    Reparei que no squid.conf tem essas linhas comentadas, vou fazer como você disse! Eu deduzi que pelo fato de elas estarem pelo menos comentadas no arquivo de configuracao, isso significa que meu squid da suporte SNMP, certo? Vou fazer os devidos testes...

    Cara, que cfg ENORME! hehe...

    Valeu,

  4. #4

    Padrão Habilitar SNMP Squid

    Danilo, fiz as alterações que você me pediu, e continuo recebendo os mesmos erros, são eles:

    [root@proxy luiz]# mrtg /etc/mrtg2.cfg
    Unknown SNMP var cacheHttpHits
    at /usr/bin/mrtg line 1607
    Unknown SNMP var cacheProtoClientHttpRequests
    at /usr/bin/mrtg line 1607
    WARNING: skipping because at least the query for cacheHttpHits on proxy did not
    succeed
    Unknown SNMP var cacheServerInKb
    at /usr/bin/mrtg line 1607
    Unknown SNMP var cacheServerOutKb
    at /usr/bin/mrtg line 1607
    WARNING: skipping because at least the query for cacheServerInKb on proxy did n
    ot succeed
    ERROR: Target[proxy-hit][_IN_] ' $$target[0]{$mode} ' did not eval into defined
    data
    ERROR: Target[proxy-hit][_OUT_] ' $$target[0]{$mode} ' did not eval into defined
    data
    WARNING: Skipping Update of proxy-hit, inlast is not defined
    WARNING: Skipping Update of proxy-hit, outlast is not defined
    ERROR: Target[proxy-srvkbinout][_IN_] ' $$target[1]{$mode} ' did not eval into d
    efined data
    ERROR: Target[proxy-srvkbinout][_OUT_] ' $$target[1]{$mode} ' did not eval into
    defined data
    WARNING: Skipping Update of proxy-srvkbinout, inlast is not defined
    WARNING: Skipping Update of proxy-srvkbinout, outlast is not defined
    [root@proxy luiz]# mrtg /etc/mrtg2.cfg
    Unknown SNMP var cacheHttpHits
    at /usr/bin/mrtg line 1607
    Unknown SNMP var cacheProtoClientHttpRequests
    at /usr/bin/mrtg line 1607
    WARNING: skipping because at least the query for cacheHttpHits on proxy did not succeed
    Unknown SNMP var cacheServerInKb
    at /usr/bin/mrtg line 1607
    Unknown SNMP var cacheServerOutKb
    at /usr/bin/mrtg line 1607
    WARNING: skipping because at least the query for cacheServerInKb on proxy did not succeed
    ERROR: Target[proxy-hit][_IN_] ' $$target[0]{$mode} ' did not eval into defined data
    ERROR: Target[proxy-hit][_OUT_] ' $$target[0]{$mode} ' did not eval into defined data
    WARNING: Skipping Update of proxy-hit, inlast is not defined
    WARNING: Skipping Update of proxy-hit, outlast is not defined
    ERROR: Target[proxy-srvkbinout][_IN_] ' $$target[1]{$mode} ' did not eval into defined data
    ERROR: Target[proxy-srvkbinout][_OUT_] ' $$target[1]{$mode} ' did not eval into defined data
    WARNING: Skipping Update of proxy-srvkbinout, inlast is not defined
    WARNING: Skipping Update of proxy-srvkbinout, outlast is not defined


    Creio que não esteja habilitado o SNMP mesmo! Só que é como eu disse, trabalho com RPM, e agora, como recompilar isso? AFF!! La se vai!

    Obrigado,

  5. #5

    Padrão Habilitar SNMP Squid

    Uma dica que o Danilo me deu anteriormente, baixa o src do rpm, reconfigura ele para dar suporte a SNMP, re-empacota ele e reinstala.

    Não testei ainda, mas quando fizer eu posto os resultados.

  6. #6

    Padrão Habilitar SNMP Squid

    Estou com um servidor cobaia (não em produção) ja a algum tempo por aqui, vou experimentar trabalhar com Slackware ou Debian e por meu firewall e squid(ja habilitado o SNMP) pra trabalharem com um deles, caso não de nenhum pau, é o que vai ficar em produção!

    Obrigado pelo help de todos ae!