--> af_ has joined #net-snmp
--> magfr has joined #net-snmp
--> af_ has joined #net-snmp
--> hardaker has joined #net-snmp
--> rstory has joined #net-snmp
--> luis has joined #net-snmp
[2009/01/04 10:52:43] #net-snmp <luis> Hello. I'm trying to query snmpd to get the disk usage %, CPU load and RAM usage. I'm having trouble figuring out which MIB properties to use. Any hints?
[2009/01/04 10:54:21] #net-snmp <luis> I've tried "view systemview included .1" to see what's available (through snmpwalk) but couldn't find anything for those 3 parameters.
[2009/01/04 10:58:39] #net-snmp <magfr> You could try to look at hrStorageTable, hrMemorySize and hrProcessorTable.
[2009/01/04 11:06:11] #net-snmp <luis> magfr: oh, ok, I can divide hrStorageUsed by hrStorageSize. hrMemorySize doesn't really tell me anything about RAM usage, does it? I can't find anything related to hrProcessorTable. Do I need to enable it somehow?
[2009/01/04 11:06:40] #net-snmp <luis> I'm using net-snmp-5.4.1-14.fc9 btw.
[2009/01/04 11:13:52] #net-snmp <magfr> All of them have to be enabled, not all of them are available on all architectures but you are saying fc9 so I suppose you are on an x86 linux host and there most of it should be available. For memory you could try to look on UCD-SNMP-MIB::memory (I do not really know anything, I just look on what snmptranslate tells me could exist)
[2009/01/04 11:15:10] #net-snmp <magfr> Like this: snmptranslate -Ib -TB Memory
[2009/01/04 11:15:22] #net-snmp <magfr> Or this: snmptranslate -Tp -Ib memory
[2009/01/04 11:15:56] #net-snmp <magfr> Then the question is if your agent have the code that should provide those values activated.
[2009/01/04 11:18:59] #net-snmp <luis> magfr: I'm using x86_64. snmpwalk doesn't show me anything like UCD-SNMP-NIB. Is it not part of the .1 tree?
[2009/01/04 11:20:50] #net-snmp <luis> I think I'll try to get my hands on O'Reilly's "Essential SNMP".
[2009/01/04 11:23:40] #net-snmp <magfr> I haven't read it. UCD-SNMP-MIB probably need to be activated then.
[2009/01/04 11:26:06] #net-snmp <luis> magfr: any hints on how I could do that?
--> rstory has joined #net-snmp
--> luis has joined #net-snmp
--> Alex_B has joined #net-snmp
--> darix has joined #net-snmp
--> mspencer has joined #net-snmp
--> thermoman has joined #net-snmp
--> derjohn has joined #net-snmp
--> ChanServ has joined #net-snmp
--> tris has joined #net-snmp
--> krphop has joined #net-snmp
--> fenestro has joined #net-snmp
[2009/01/04 12:09:10] #net-snmp <rstory> luis: i'm pretty sure fc9 has them enabled.. it's probably a configuration thing.. add 'rocommunity luispw' to your snmpd.conf, restart snmpd, then try 'snmpwalk -v2c -c luisps localhost enterprises'
[2009/01/04 12:11:55] #net-snmp <luis> rstory: that outputs a whole lot more indeed. Checking it out.
[2009/01/04 12:13:15] #net-snmp <rstory> check the wiki/faq on configuring access control for more info on how to fine-tune access control. the access for 'public' is limited by default...
[2009/01/04 12:17:43] #net-snmp <luis> rstory: thanks very much. UCD-SNMP-MIB::memTotalFree and ::laLoad seem to be exactly what I want. Any idea why I can't find ::dskUsed?
[2009/01/04 12:25:49] #net-snmp <luis> rstory: what seems to do the trick is the "enterprises" bit, actually. It WFM without the rocommunity bit.
[2009/01/04 12:28:08] #net-snmp <rstory> ah.. ok... yeah, if you don't specify an oid to snmpwalk, it defaults to 'system'... use '.1' to see everything...
[2009/01/04 12:28:45] #net-snmp <luis> rstory: ok, that makes sense.
[2009/01/04 12:29:26] #net-snmp <luis> rstory: any idea why dskUsed or any of dskTable (1.3.6.1.4.1.2021.9) doesn't show up?
[2009/01/04 12:29:31] #net-snmp <luis> not implemented?
[2009/01/04 12:30:13] #net-snmp <rstory> do you have any disk directives in snmpd.conf? (see the snmpd.conf man page)
[2009/01/04 12:31:13] #net-snmp <luis> rstory: lovely! Thanks so much!
--> blotchy has joined #net-snmp
--> varun has joined #net-snmp
--> rstory has joined #net-snmp
--> dorferiferon has joined #net-snmp
--> snmpbot has joined #net-snmp