[mrtg] Re: question about SNMP on Server

Daniel R . Kilbourne daniel.kilbourne at voyager.net
Wed Apr 26 05:32:27 MEST 2000


For Linux : 

get snmp running on the machine - http://ucd-snmp.ucdavis.edu

then you can use the following OIDs

Linux Machines
.1.3.6.1.2.1.2.2.1.10.1                 Eth0 Input Stats
.1.3.6.1.2.1.2.2.1.16.1                 Eth0 Output Stats
.1.3.6.1.4.1.2021.4.5.0                 Total Available Memeory
.1.3.6.1.4.1.2021.4.6.0                 Total Used Memory
.1.3.6.1.4.1.2021.4.11.0                Total Free Memory
.1.3.6.1.4.1.2021.4.13.0                Shared Memory
.1.3.6.1.4.1.2021.4.14.0                Buffers
.1.3.6.1.4.1.2021.4.15.0                Cached
.1.3.6.1.4.1.2021.10.1.3.1              Load Average -1 Minute
.1.3.6.1.4.1.2021.10.1.3.2              Load Average -5 Minute
.1.3.6.1.4.1.2021.10.1.3.3              Load Average -15 Minute

here is a sample for eth, mem and cpu (my comments are in ()  )

Target[eth]: 3:community at server (I can never get the OID from above to work, so I just run cfgmaker on the server and use what it finds)
MaxBytes[eth]: 1250000
Title[eth]: server ether traffic
PageTop[eth]: server ether traffic
Options[eth]: bits
Legend1[eth]: Ether Traffic in
Legend2[eth]: Ether Traffic out
LegendI[eth]: Traffic in
LegendO[eth]: Traffic out

Target[mem-used]: 1.3.6.1.4.1.2021.4.6.0&1.3.6.1.4.1.2021.4.6.0:community at server
MaxBytes[mem-used]: 257884 (do an 'snmpget server community' .1.3.6.1.4.1.2021.4.5.0 to get this value)
Title[mem-used]: server RAM used
PageTop[mem-used]: server RAM used
Legend1[mem-used]: Total used RAM (MB)
Legend2[mem-used]:
LegendI[mem-used]: Total used RAM (MB)
LegendO[mem-used]:
Options[mem-used]: gauge

Target[cpu]: 1.3.6.1.4.1.2021.10.1.3.2&1.3.6.1.4.1.2021.10.1.3.2:community at server * 100  (multiply as 100 because this will return values in the hundreths ie:4.21)
MaxBytes[cpu]: 10000
Title[cpu]: server CPU Load (5 minute average * 100)
YLegend[cpu]: load
ShortLegend[cpu]: load
Legend1[cpu]: CPU Load (x 100)
Legend2[cpu]:
LegendI[cpu]: CPU Load (x 100)
LegendO[cpu]:
PageTop[cpu]: server 5-minute average CPU Load * 100
Options[cpu]: gauge,nopercent,integer


as for NT, good luck....I've tried to no avail, so please let me know if you can do it (although you can get at least eth by installing the snmp service and running cfgmaker against it)


Hope this helps....



On Wed, Apr 26, 2000 at 09:20:06AM +0700, Saknon Kangsumrith wrote:
> To all
>      I'd like to get traffic on my web server (Linux/Winow NT). I really
> don't know what I have to do. Any ideas please help me.
> 
> Thank you very much
> Saknon Kangsumrith 
> 
> --
> Unsubscribe mailto:request at list.ee.ethz.ch?subject=unsubscribe
> Archive     http://www.ee.ethz.ch/~slist/mrtg
> FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
> 

-- 
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Daniel R. Kilbourne
daniel.kilbourne at voyager.net
Voyager.net Network Engineer

^^^^^^^^^^^^^^^^^^^^^^^^^^^^

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org



More information about the mrtg mailing list