Re: squid + snmp + mrtg-2.7.0

From: MUKAIGAWA Shin'ichi/$B8~@dont-contact.us <Shin'ichi/$B8~@dont-contact.us>
Date: Fri, 19 Mar 1999 18:31:26 +0900

>>>>> On Thu, 18 Mar 1999 12:29:17 +0100,
>>>>> Thilo Manske <Thilo.Manske@HEH.Uni-Oldenburg.DE> said:

>> Please look at the subject, we are talking about 2.7.0.
>> BTW: 2.7.1 wasn't out when this thread started.

Already released 2.7.1. Then, small bug fixes in 2.7.0->2.7.1.

But, these OIDs are changed in currently MIB.
So, need to hack Target line in MRTG config file like this.

>> Unknown SNMP var cacheIcpQuerySvcTimeFiveMin

Target[icpqsvc]: cacheICPQueryMedianSvcFiveMin&cacheICPQueryMedianSvcFiveMin:public@192.168.2.244:3401

>> Unknown SNMP var cacheHttpNmSvcTimeFiveMin

Target[httpsvc]: cacheHttpMedianSvcFiveMin&cacheHttpMedianSvcFiveMin:public@192.168.2.244:3401

>> Unknown SNMP var cacheHttpMissSvcTimeFiveMin

none

>> Unknown SNMP var cacheIcpReplySvcTimeFiveMin

Target[icprsvc]: cacheICPReplyMedianSvcFiveMin&cacheICPReplyMedianSvcFiveMin:public@192.168.2.244:3401

>> Unknown SNMP var cacheHttpHitSvcTimeFiveMin

none

>> Unknown SNMP var cacheDnsSvcTimeFiveMin

Target[dnssvc]: cacheDNSMedianSvcFiveMin&cacheDNSMedianSvcFiveMin:public@192.168.2.244:3401

>> Unknown SNMP var cacheHttpAllSvcTimeFiveMin

none or use cacheHttpAllSvcTime?

Some OID values lacks in SNMP_util.pm,
I added these lines.

*** SNMP_util.pm.orig Thu Mar 18 12:54:39 1999
--- SNMP_util.pm Fri Mar 19 16:32:06 1999
***************
*** 76,87 ****
      'cacheICPQueryMedianSvcHour' => '1.3.6.1.4.1.3495.1.3.2.2.1.6.60',
      'cacheICPReplyMedianSvcHour' => '1.3.6.1.4.1.3495.1.3.2.2.1.7.60',
      'cacheDNSMedianSvcHour' => '1.3.6.1.4.1.3495.1.3.2.2.1.8.60',
- 'cacheNumObjCount' => '1.3.6.1.4.1.3495.1.3.1.7',
- 'cacheCpuUsage' => '1.3.6.1.4.1.3495.1.3.1.5',
- 'cacheMemUsage' => '1.3.6.1.4.1.3495.1.3.1.4',
      'cacheSysPageFaults' => '1.3.6.1.4.1.3495.1.3.1.1',
! 'cacheTCPconnections' => '1.3.6.1.4.1.3495.1.4.4',
! 'cacheUDPconnections' => '1.3.6.1.4.1.3495.1.4.5'
    );
  
  my $agent_start_time = time;
--- 76,92 ----
      'cacheICPQueryMedianSvcHour' => '1.3.6.1.4.1.3495.1.3.2.2.1.6.60',
      'cacheICPReplyMedianSvcHour' => '1.3.6.1.4.1.3495.1.3.2.2.1.7.60',
      'cacheDNSMedianSvcHour' => '1.3.6.1.4.1.3495.1.3.2.2.1.8.60',
      'cacheSysPageFaults' => '1.3.6.1.4.1.3495.1.3.1.1',
! 'cacheSysNumReads' => '1.3.6.1.4.1.3495.1.3.1.2',
! 'cacheSysDefReads' => '1.3.6.1.4.1.3495.1.3.1.3',
! 'cacheMemUsage' => '1.3.6.1.4.1.3495.1.3.1.4',
! 'cacheCpuUsage' => '1.3.6.1.4.1.3495.1.3.1.5',
! 'cacheMaxResSize' => '1.3.6.1.4.1.3495.1.3.1.6',
! 'cacheNumObjCount' => '1.3.6.1.4.1.3495.1.3.1.7',
! 'cacheCurrentLRUExpiration' => '1.3.6.1.4.1.3495.1.3.1.8',
! 'cacheCurrentUnlinkRequests' => '1.3.6.1.4.1.3495.1.3.1.9',
! 'cacheCurrentUnusedFileDescrCount' => '1.3.6.1.4.1.3495.1.3.1.10',
! 'cacheCurrentReservedFileDescrCount' => '1.3.6.1.4.1.3495.1.3.1.11'
    );
  
  my $agent_start_time = time;
Received on Fri Mar 19 1999 - 02:38:52 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:45:20 MST