Re: 2 SNMP Values
"Carville, Stephen" <[email protected]> Wed, 30 Jul 2008 16:33:31 -0400
| Newsgroups | gmane.network.cricket.user |
|---|---|
| Message-ID | <442FF79AE97A514E90BD5B48E666907265AFA6@SVARIEXmb15.landam.landamerica.net> |
> -----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=/