<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Thank you all for your feedback. Alex, thanks for the data. I have a thought for a solution based on the information you provided. I'll work on this towards a solution.<BR> <BR> <BR>Thank you again,<BR>~Christian<BR><br> <BR><div>> From: alex@vandenbogaerdt.nl<br>> To: mrtg@lists.oetiker.ch<br>> Date: Wed, 26 Nov 2014 19:02:15 +0100<br>> Subject: Re: [mrtg] SNMP Disk Space Negative Values<br>> <br>> I guess Steve is still sleeping :)<br>> <br>> Hope you don't mind I chime in.<br>> <br>> First of all: there's a good chance your bash will suffer from the same <br>> problem.<br>> <br>> It has to do with signed integers. Adding one to 2147483647 results <br>> in -2147483648. The next number is -2147483647, then -2147483646, and so on.<br>> <br>> Steve suggested you look at the hexadecimal representation of those numbers. <br>> You will notice it is .... 0x7FFFFFFF, 0x80000000, 0x80000001 and so on.<br>> <br>> To convert the numbers to positive numbers, too large to fit in a 32-bit <br>> signed integer, just add 4294967296. Your shell may not be able to handle <br>> this, just try bc.<br>> <br>> <br>> ----- Original Message ----- <br>> From: "Christian Arnaut" <n8tgc@msn.com><br>> To: "Steve Shipway" <s.shipway@auckland.ac.nz><br>> Cc: <mrtg@lists.oetiker.ch><br>> Sent: Wednesday, November 26, 2014 3:50 PM<br>> Subject: Re: [mrtg] SNMP Disk Space Negative Values<br>> <br>> <br>> Steve,<br>> <br>> Pardon my ignorance. How were you able to convert the 'signed' integer <br>> of -268468737 to an unsigned value of 4026498559? If I can do that with a <br>> bash script, I'm halfway home!<br>> <br>> <br>> Thanks,<br>> ~Christian<br>> <br>> <br>> From: s.shipway@auckland.ac.nz<br>> To: n8tgc@msn.com<br>> CC: mrtg@lists.oetiker.ch<br>> Subject: RE: [mrtg] SNMP Disk Space Negative Values<br>> Date: Tue, 25 Nov 2014 22:46:58 +0000<br>> <br>> Your E: drive is insanely huge at 15TB. Possibly something is using signed <br>> integers when it should be using unsigned… The -268468737 value is a signed <br>> representation for the unsigned integer 4026498559 (convert to hex and get <br>> 0xEFFF7DFF in both cases); multiply the unsigned value by the cluster size <br>> and you get your 15TB. Something is using an unsigned integer when it <br>> should be signed, or vice-versa. Steve Steve Shipways.shipway@auckland.ac.nz <br>> From: mrtg [mailto:mrtg-bounces+s.shipway=auckland.ac.nz@lists.oetiker.ch] <br>> On Behalf Of Christian Arnaut<br>> Sent: Wednesday, 26 November 2014 11:05 a.m.<br>> To: mrtg@lists.oetiker.ch<br>> Subject: [mrtg] SNMP Disk Space Negative Values Am attempting to use MRTG to <br>> monitor disk space on a Windows Server as I have done on multiple servers <br>> and workstations in the past. However, this time the local storage capacity <br>> on the local drive partition is nearly 15TB.<br>> <br>> It appears that I have exceeded an SNMP threshold where the integer values <br>> are now negative numbers. For example to monitor total space on the C: drive <br>> I used (simplified)... iso.3.6.1.2.1.25.2.3.1.4.2 * <br>> iso.3.6.1.2.1.25.2.3.1.6.2<br>> <br>> iso.3.6.1.2.1.25.2.3.1.3.2 = STRING: "C:\\ Label:"<br>> iso.3.6.1.2.1.25.2.3.1.3.4 = STRING: "E:\\ Label:"<br>> iso.3.6.1.2.1.25.2.3.1.4.2 = INTEGER: 4096<br>> iso.3.6.1.2.1.25.2.3.1.4.4 = INTEGER: 4096<br>> iso.3.6.1.2.1.25.2.3.1.5.2 = INTEGER: 10350335<br>> iso.3.6.1.2.1.25.2.3.1.5.4 = INTEGER: -268468737<br>> iso.3.6.1.2.1.25.2.3.1.6.2 = INTEGER: 6261795<br>> iso.3.6.1.2.1.25.2.3.1.6.4 = INTEGER: -527400222<br>> <br>> With the E: drive, iso.3.6.1.2.1.25.2.3.1.4.4 correctly shows the cluster <br>> size (4096). However, I am sure the total number of clusters isn't <br>> '-527400222'. Even if I used the absolute value of 527400222, the numbers <br>> don't add up to the 15TB partition size.<br>> <br>> Any suggestions? Or have I reached the limitation of MRTG for the purpose I <br>> am looking for?<br>> <br>> <br>> Thank you, in advance, for any assistance!<br>> <br>> ~Christian<br>> <br>> <br>> --------------------------------------------------------------------------------<br>> <br>> <br>> > _______________________________________________<br>> > mrtg mailing list<br>> > mrtg@lists.oetiker.ch<br>> > https://lists.oetiker.ch/cgi-bin/listinfo/mrtg<br>> > <br>> <br>> _______________________________________________<br>> mrtg mailing list<br>> mrtg@lists.oetiker.ch<br>> https://lists.oetiker.ch/cgi-bin/listinfo/mrtg<br></div> </div></body>
</html>