It looks like you are taking hrMemorySize, dividing by hrMemorySize (which will always give you and answer of 1), then subtracting hrStorageUsed for one instance. Assuming that more than one allocation unit is returned by hrStorageUsed, the end result will be a negative number.
Mind your parentheses... You want to use hrStorageSize, not hrMemorySize, so that the same units are in use on both operators. You also need the right instance numbers at the ends of the OIDs, or nothing is going to work. I'm assuming you are trying to graph a ratio of available memory. Here's the type of calculation that you need to get the percentage of available memory: ( hrStorageSize - hrStorageUsed ) / hrStorageSize * 100 Jerry -----Original Message----- From: C Baker [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 9:28 AM To: [EMAIL PROTECTED] Subject: [mrtg] Subtraction Can anyone tell me what is wrong with the following? I thought I had all the requirements the docs said, but obviously not! Target[cyclone_ram_used]: 1.3.6.1.2.1.25.2.2&1.3.6.1.2.1.25.2.2:[EMAIL PROTECTED]: / 1.3.6.1.2.1.25.2.2&1.3.6.1.2.1.25.2.2:[EMAIL PROTECTED]: - 1.3.6.1.2.1.25.2.3.1.6&1.3.6.1.2.1.25.2.3.1.6:[EMAIL PROTECTED]: Thanks, Craig -- 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 Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. -- 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
