From owner-freebsd-questions@FreeBSD.ORG Thu Apr 22 09:39:18 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5625F16A4CE for ; Thu, 22 Apr 2004 09:39:18 -0700 (PDT) Received: from ns1.valuedj.com (adsl-216-100-130-21.dsl.snfc21.pacbell.net [216.100.130.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id F1DF443D48 for ; Thu, 22 Apr 2004 09:39:17 -0700 (PDT) (envelope-from whizkid@ValueDJ.com) Received: from localhost (localhost.valuedj.com [127.0.0.1]) by ns1.valuedj.com (Postfix) with ESMTP id 8F11160E4 for ; Thu, 22 Apr 2004 09:43:25 -0700 (PDT) Received: from ns1.valuedj.com ([127.0.0.1]) by localhost (ns1.valuedj.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07533-07 for ; Thu, 22 Apr 2004 09:43:25 -0700 (PDT) Received: by ns1.valuedj.com (Postfix, from userid 80) id 390D360CF; Thu, 22 Apr 2004 09:43:25 -0700 (PDT) Received: from 207.13.174.33 (SquirrelMail authenticated user whizkid) by www.ValueDJ.com with HTTP; Thu, 22 Apr 2004 09:43:25 -0700 (PDT) Message-ID: <35042.207.13.174.33.1082652205.squirrel@www.ValueDJ.com> Date: Thu, 22 Apr 2004 09:43:25 -0700 (PDT) From: whizkid@ValueDJ.com To: freebsd-questions@freebsd.org User-Agent: SquirrelMail/1.4.2 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal X-Virus-Scanned: by amavisd-new at valuedj.com Subject: SNMP and MRTG X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Apr 2004 16:39:18 -0000 Hey all I am new to SNMP. I have installed mrtg and net-snmp but I am having some issues. I found a few web sites that explain how to query for memory usage from snmp. But it doesn't work I get a Unknown object error. So I verify that all the MIB files are in /usr/local/share//snmp/mibs which they are. I then did a cat HOST-RESOURCES-MIB.txt | grep hrStorageSize and found references to the hrStorageSize. BUT if I do a snmpwalk -v 1 -Cc -c public localhost | grep hrStorageSize I get nothing. There are hrStorageDesc.1, hrStorageDesc.2, hrStorageDesc.3, hrStorageDesc.4, hrStorageDesc.5 but nothing to do with size. Am I doing something wrong? Here is the output from: snmpwalk -v 1 -Cc -c public localhost | grep hrStorage HOST-RESOURCES-MIB::hrStorageIndex.1 = INTEGER: 1 HOST-RESOURCES-MIB::hrStorageIndex.2 = INTEGER: 2 HOST-RESOURCES-MIB::hrStorageIndex.3 = INTEGER: 3 HOST-RESOURCES-MIB::hrStorageIndex.4 = INTEGER: 4 HOST-RESOURCES-MIB::hrStorageIndex.5 = INTEGER: 5 HOST-RESOURCES-MIB::hrStorageIndex.6 = INTEGER: 6 HOST-RESOURCES-MIB::hrStorageIndex.7 = INTEGER: 7 HOST-RESOURCES-MIB::hrStorageIndex.8 = INTEGER: 8 HOST-RESOURCES-MIB::hrStorageType.1 = OID: HOST-RESOURCES-TYPES::hrStorageOther HOST-RESOURCES-MIB::hrStorageType.2 = OID: HOST-RESOURCES-TYPES::hrStorageRam HOST-RESOURCES-MIB::hrStorageType.3 = OID: HOST-RESOURCES-TYPES::hrStorageVirtualMemory HOST-RESOURCES-MIB::hrStorageType.4 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk HOST-RESOURCES-MIB::hrStorageType.5 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk HOST-RESOURCES-MIB::hrStorageType.6 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk HOST-RESOURCES-MIB::hrStorageType.7 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk HOST-RESOURCES-MIB::hrStorageType.8 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: Memory Buffers HOST-RESOURCES-MIB::hrStorageDescr.2 = STRING: Real Memory HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: Swap Space HOST-RESOURCES-MIB::hrStorageDescr.4 = STRING: / HOST-RESOURCES-MIB::hrStorageDescr.5 = STRING: /dev HOST-RESOURCES-MIB::hrStorageDescr.6 = STRING: /tmp HOST-RESOURCES-MIB::hrStorageDescr.7 = STRING: /usr HOST-RESOURCES-MIB::hrStorageDescr.8 = STRING: /var HOST-RESOURCES-MIB::hrStorageAllocationUnits.1 = INTEGER: 256 Bytes HOST-RESOURCES-MIB::hrStorageAllocationUnits.2 = INTEGER: 4096 Bytes HOST-RESOURCES-MIB::hrStorageAllocationUnits.3 = INTEGER: 4096 Bytes HOST-RESOURCES-MIB::hrStorageAllocationUnits.4 = INTEGER: 2048 Bytes HOST-RESOURCES-MIB::hrStorageAllocationUnits.5 = INTEGER: 512 Bytes HOST-RESOURCES-MIB::hrStorageAllocationUnits.6 = INTEGER: 2048 Bytes HOST-RESOURCES-MIB::hrStorageAllocationUnits.7 = INTEGER: 2048 Bytes HOST-RESOURCES-MIB::hrStorageAllocationUnits.8 = INTEGER: 2048 Bytes HOST-RESOURCES-MIB::hrStorageAllocationFailures.1 = Counter32: 0 HOST-RESOURCES-MIB::hrSWRunParameters.18077 = STRING: "hrStorage"