Re: 2 SNMP Values
Sean Whitney <[email protected]> Wed, 30 Jul 2008 13:43:48 -0700
| Newsgroups | gmane.network.cricket.user |
|---|---|
| Message-ID | <[email protected]> |
Thanks, that's exactly what I was looking for. It's a Arris C4 CMTS........ http://www.arrisi.com/products/c4/index.asp Sean ======================================= Sean Whitney PMB #120, 16505A SE First Street Vancouver, WA 98684 T. 360.607.7945 F. 815.364.0687 aim: seanmwhitney email: [email protected] ======================================= On Jul 30, 2008, at 1:33 PM, Carville, Stephen wrote: >> -----Original Message----- >> From: [email protected] [mailto:cricket- >> [email protected]] On Behalf Of Sean Whitney >> Sent: Wednesday, July 30, 2008 1:04 PM >> To: Cricket List >> Subject: [cricket-users] 2 SNMP Values >> >> I have 2 values that I need to graph. >> >> Total Memory and Free Memory are both available as SNMP values. >> >> But I really don't want "Free Memory" I want "Used Memory" which is >> Total Memory - Free Memory. >> >> Is there a way to do this programmatically within the cricket >> structure, or do I need to write a separate collection script to >> return Total Memory and Used Memory > > W\Outy of curiosity, what kind of system is it? Both Windows and > Linux > reports memory in SNMP as used not free: > > OID StorageDescr 1.3.6.1.2.1.25.2.3.1.3 > OID StorageAllocUnits 1.3.6.1.2.1.25.2.3.1.4 > OID StorageSize 1.3.6.1.2.1.25.2.3.1.5 > OID StorageUsed 1.3.6.1.2.1.25.2.3.1.6 > > In any case, you can try something like: > > # ds0 > datasource totalram > ds-source = snmp://%snmp%/<OID>.%inst% > rrd-ds-type = GAUGE > > # ds1 > datasource freeram > ds-source = snmp://%snmp%/<OID>.%inst% > rrd-ds-type = GAUGE > > # ds2 > datasource usedram > rrd-ds-type = COMPUTE > rrd-cdef = ds0,ds1,- > > -- > Stephen Carville <[email protected]> > Systems Engineer > Land America > 1.626.667.1450 X1326 > ##################################################################### > That which does not kill us often hurts us a lot. > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win > great prizes > Grand prize is a trip for two to an Open Source event anywhere in > the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > cricket-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/cricket-users ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/