}Actually my snmpd.conf is: } [EMAIL PROTECTED]:~# more /etc/snmpd.conf }rocommunity community } }It works, but in mrtg I see only the graphics related to eth0 }and eth1. It }probabily means that I've to add something in my snmpd.conf. } }If I run snmpwalk obtained many values but nothing related to }swap or cpu... } If you're using the net-snmp daemon (www.net-snmp.org) then you need to reconfigure, recompile, and reinstall it with the following steps:
./configure --with-mib-modules="host ucd_snmp" make make install After doing that, you should be able to see stuff like: # snmpwalk -c public localhost .1.3.6.1 HOST-RESOURCES-MIB::hrStorageDescr.101 = STRING: Real Memory HOST-RESOURCES-MIB::hrStorageDescr.102 = STRING: Swap Space HOST-RESOURCES-MIB::hrStorageDescr.103 = STRING: Memory Buffers HOST-RESOURCES-MIB::hrStorageAllocationUnits.1 = INTEGER: 4096 Bytes HOST-RESOURCES-MIB::hrStorageAllocationUnits.2 = INTEGER: 2048 Bytes HOST-RESOURCES-MIB::hrStorageAllocationUnits.3 = INTEGER: 4096 Bytes HOST-RESOURCES-MIB::hrStorageAllocationUnits.4 = INTEGER: 4096 Bytes HOST-RESOURCES-MIB::hrStorageAllocationUnits.101 = INTEGER: 1024 Bytes HOST-RESOURCES-MIB::hrStorageAllocationUnits.102 = INTEGER: 1024 Bytes HOST-RESOURCES-MIB::hrStorageAllocationUnits.103 = INTEGER: 256 Bytes HOST-RESOURCES-MIB::hrStorageSize.1 = INTEGER: 10576111 HOST-RESOURCES-MIB::hrStorageSize.2 = INTEGER: 52085 HOST-RESOURCES-MIB::hrStorageSize.3 = INTEGER: 17039360 HOST-RESOURCES-MIB::hrStorageSize.4 = INTEGER: 4368283 HOST-RESOURCES-MIB::hrStorageSize.101 = INTEGER: 516100 HOST-RESOURCES-MIB::hrStorageSize.102 = INTEGER: 1253060 HOST-RESOURCES-MIB::hrStorageUsed.1 = INTEGER: 899093 HOST-RESOURCES-MIB::hrStorageUsed.2 = INTEGER: 2517 HOST-RESOURCES-MIB::hrStorageUsed.3 = INTEGER: 15061504 HOST-RESOURCES-MIB::hrStorageUsed.4 = INTEGER: 801389 HOST-RESOURCES-MIB::hrStorageUsed.101 = INTEGER: 511420 HOST-RESOURCES-MIB::hrStorageUsed.102 = INTEGER: 18552 UCD-SNMP-MIB::dskMinPercent.2 = INTEGER: -1 UCD-SNMP-MIB::dskTotal.1 = INTEGER: 42304444 UCD-SNMP-MIB::dskTotal.2 = INTEGER: 17473132 UCD-SNMP-MIB::dskAvail.1 = INTEGER: 36524432 UCD-SNMP-MIB::dskAvail.2 = INTEGER: 13379844 UCD-SNMP-MIB::dskUsed.1 = INTEGER: 3596380 UCD-SNMP-MIB::dskUsed.2 = INTEGER: 3205700 UCD-SNMP-MIB::dskPercent.1 = INTEGER: 9 UCD-SNMP-MIB::dskPercent.2 = INTEGER: 19 UCD-SNMP-MIB::dskPercentNode.1 = INTEGER: 1 UCD-SNMP-MIB::dskPercentNode.2 = INTEGER: 2 >From here, you need to build a MRTG config file that will query these values. Here is an example... Target[myserver.disk]:dskPercent.1&dskPercent.2:[EMAIL PROTECTED] RouterUptime[myserver.disk]: [EMAIL PROTECTED] MaxBytes[myserver.disk]: 100 Title[myserver.disk]: Disk Usage PageTop[myserver.disk]: <H1>Disk / and /home usage %</H1> Options[myserver.disk]: growright, gauge, nopercent ShortLegend[myserver.disk]: % YLegend[myserver.disk]: Disk Utilization Legend1[myserver.disk]: Root disk Legend2[myserver.disk]: /home disk Legend3[myserver.disk]: Legend4[myserver.disk]: LegendI[myserver.disk]: Root disk LegendO[myserver.disk]: /home disk -- Attached file removed by Ecartis and put at URL below -- -- Type: application/ms-tnef -- Size: 1k (1942 bytes) -- URL : http://www.ee.ethz.ch/~slist/pantomime/56-WINMAIL.DAT -- Unsubscribe mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/mrtg FAQ http://faq.mrtg.org Homepage http://www.mrtg.org WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
