Re: host-resources disk usage in bytes
"Dave Shield" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On 09/01/07, Deon van der Merwe <[email protected]> wrote: > According to net-snmp disk usage percentage is: 78.20% > Different than df, but df is also strange... > [dvdm@kaus] df -B4096 > Filesystem 4K-blocks Used Available Use% Mounted on > /dev/sda3 8517017 6661036 1423331 83% / > > Again it reports 83% use, but if you do the calculation yourself you > get: 78.20% which is the same as net-snmp... but what about this 83% > then? Traditionally, Unix filesystems have reserved a small percentage of the disk for "root-only" activity. This is therefore not available for general use. You'll note that User+Available = 8084367, which is not the same as the total size. 6661036/8084367 = 82.3% > Turns out that "used" (for both df and netsnmp) is the "files bytes > used". The percentage calculated by df is done with the "inode bytes > used". Unlikely. (See above) > The question then: is there any place where net-snmp will report the > "inode bytes used"? Should the "HOST-RESOURCES-MIB::hrStorageUsed" be > changed to also include the inode size usage? You can't report two values in one variable. You'd need a separate variable to monitor inode usage. Now it would be perfectly possible to extend the hrStorageTable to cover inode usage as well - that would fit within the semantics of this table. But I don't think that would actually address your problem. The answer is to consider 95% (8084367/8517017) as representing a "completely full" disk, and setting your warning thresholds accordingly. Dave ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users