Jul 8, 2008 3:51 AM
Problem with snmp and faulty size reporting.
-
Like (0)
Mount Total bytes Used bytes Free bytes % Util
/ 9.4GB 8.8GB 565.5MB 94
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 9.4G 8.9G 78M 100% /
tmpfs 253M 0 253M 0% /lib/init/rw
udev 10M 52K 10M 1% /dev
tmpfs 253M 0 253M 0% /dev/shm
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda3 61G 5.5G 52G 10% /
Mount Total bytes Used bytes Free bytes % Util Lock
/ 60.4GB 5.4GB 54.9GB 8
# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/xvda3 63282372 5665584 54402184 10% /
# snmpwalk -v2c -c public localhost hrStorageTable
HOST-RESOURCES-MIB::hrStorageIndex.1 = INTEGER: 1
HOST-RESOURCES-MIB::hrStorageIndex.2 = INTEGER: 2
HOST-RESOURCES-MIB::hrStorageIndex.3 = INTEGER: 3
HOST-RESOURCES-MIB::hrStorageIndex.4 = INTEGER: 4
HOST-RESOURCES-MIB::hrStorageIndex.5 = INTEGER: 5
HOST-RESOURCES-MIB::hrStorageIndex.6 = INTEGER: 6
HOST-RESOURCES-MIB::hrStorageIndex.7 = INTEGER: 7
HOST-RESOURCES-MIB::hrStorageType.1 = OID: HOST-RESOURCES-TYPES::hrStorageOther
HOST-RESOURCES-MIB::hrStorageType.2 = OID: HOST-RESOURCES-TYPES::hrStorageRam
HOST-RESOURCES-MIB::hrStorageType.3 = OID: HOST-RESOURCES-TYPES::hrStorageVirtualMemory
HOST-RESOURCES-MIB::hrStorageType.4 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageType.5 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageType.6 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageType.7 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: Memory Buffers
HOST-RESOURCES-MIB::hrStorageDescr.2 = STRING: Real Memory
HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: Swap Space
HOST-RESOURCES-MIB::hrStorageDescr.4 = STRING: /
HOST-RESOURCES-MIB::hrStorageDescr.5 = STRING: /sys
HOST-RESOURCES-MIB::hrStorageDescr.6 = STRING: /sys/kernel/debug
HOST-RESOURCES-MIB::hrStorageDescr.7 = STRING: /boot
HOST-RESOURCES-MIB::hrStorageAllocationUnits.1 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.2 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.3 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.4 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.5 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.6 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.7 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageSize.1 = INTEGER: 1048740
HOST-RESOURCES-MIB::hrStorageSize.2 = INTEGER: 1048740
HOST-RESOURCES-MIB::hrStorageSize.3 = INTEGER: 1052248
HOST-RESOURCES-MIB::hrStorageSize.4 = INTEGER: 15820593
HOST-RESOURCES-MIB::hrStorageSize.5 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageSize.6 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageSize.7 = INTEGER: 101086
HOST-RESOURCES-MIB::hrStorageUsed.1 = INTEGER: 19500
HOST-RESOURCES-MIB::hrStorageUsed.2 = INTEGER: 1039048
HOST-RESOURCES-MIB::hrStorageUsed.3 = INTEGER: 922588
HOST-RESOURCES-MIB::hrStorageUsed.4 = INTEGER: 1416399
HOST-RESOURCES-MIB::hrStorageUsed.5 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageUsed.6 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageUsed.7 = INTEGER: 17733
"beanfield" wrote:
Again, that's all if I understand this correctly. :)
"folke" wrote:
"beanfield" wrote:
Again, that's all if I understand this correctly. :)
The thing is that the disk is full before it sends out an alert.
I have put that value to 98% ( :oops: ) so when the small disks shows the wrong value things go bad :p
Off course i can change the value for critical, but it would be better if the graphs where correct..
Did you change anything in you graph template so that it showed the correct value?
--
Regards Folke
if ($OSname eq "Linux") {
$df_options = "-h -l -x tmpfs";
df -h
df
snmpwalk -v2c -c COMMUNITY_STRING HOSTNAME 1.3.6.1.2.1.25.2.3
"beanfield" wrote:
So if you're basing the disk status off of something like logwatch....it could be incorrectly reporting that the disk is full. Can you provide the following output from a server that you know has the issue where it filled the disk before zenoss alerted?
df -h
df
snmpwalk -v2c -c COMMUNITY_STRING HOSTNAME 1.3.6.1.2.1.25.2.3
Be sure and replace "COMMUNITY_STRING" and "HOSTNAME" appropriately.
This is a very old thread, but I thot someone might stumble here when searching for a similar problem.
The issue with linux filesystems is the filesystem offset, whcih is not caounted for by default in zenoss, but df counts for it.
If you look at the two cases given above, you can see that total and used are both ok, but the free is the culprit algorithm to calculate free space should be:
free = (total*offset) - used
offset is normarly 0.05 (or 5%) for linux filesystems, which means 5% of the filesystem is reserved
Follow Us On Twitter »
|
Latest from the Zenoss Blog » | Community | Products | Services Resources | Customers Partners | About Us | ||
Copyright © 2005-2011 Zenoss, Inc.
|
||||||||