Date: Thu, 22 Apr 2004 09:43:25 -0700 (PDT) From: whizkid@ValueDJ.com To: freebsd-questions@freebsd.org Subject: SNMP and MRTG Message-ID: <35042.207.13.174.33.1082652205.squirrel@www.ValueDJ.com>
next in thread | raw e-mail | index | archive | help
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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?35042.207.13.174.33.1082652205.squirrel>