>       Well, I have mixed both of your sugestions. At all, my squid.conf didn't
> have the snmp_incoming/outgoing_address entries (I didn' see it at FAQ) and I

        The snmp_incoming/outgoing_address entries are not required. They
are an option if you wich to bind to specific IP addresses.

> made a mistake: I put the machine name in the mrtg.conf and in the squid.conf
> file I create the snmp-acl pointing to "localhost". Now, when I run a test using
> snmpwalk this is the answer:
> 
> snmpwalk -p 3401 localhost public .1.3.6.1.4.1.3495.1.1 
> Name: .iso.org.dod.internet.private.enterprises.3495.1.1.1 -> INTEGER: 3551232
> Name: .iso.org.dod.internet.private.enterprises.3495.1.1.2 -> INTEGER: 23968
> Name: .iso.org.dod.internet.private.enterprises.3495.1.1.3 -> Timeticks: (8570772) 
>23:48:27
> End of requested OID tree.
> 

        Looks good

>       
>       xxx.xxx.xxx:aaw[2] ./mrtg mrtg.conf
>       Unknown SNMP var cacheServerInKb
>       
>       Was this snmp variable excluded from squid mib and don't know...?
>       
        Nope, it is there. However, you might not have your mrtg perl
correct. There is a structure that mrtg uses to perform the lookup that
converst cacheServerInKb -> 1.3.6.1.4.1.3495.1.3.2.1.12.

http://www.ircache.net/Cache/Statistics/mrtg/mibdefs.pm

%snmpget::OIDS =
  ('sysDescr' => '1.3.6.1.2.1.1.1.0',
   'sysContact' => '1.3.6.1.2.1.1.4.0',
    #Squid Unique OID's
    #
    # cacheSystem
    #
    'cacheSysVMsize' => '1.3.6.1.4.1.3495.1.1.1',
    'cacheSysStorage' => '1.3.6.1.4.1.3495.1.1.2',  
    'cacheAdmin' => '1.3.6.1.4.1.3495.1.2.1',
    'cacheSoftware' => '1.3.6.1.4.1.3495.1.2.2',
    'cacheVersionId' => '1.3.6.1.4.1.3495.1.2.3',

etc....

glenn

Reply via email to