Oct 31, 2011 6:35 AM
Not able to monitor drive space correctly
-
Like (0)
Hello friends,
I am new in Zenoss monitoring system and i installed it in my one of the server. now i added some of the my machines to monitor. i have one linux server (debian), which has 30TB and 20TB hard drives attached in it. now zenoss is able to monitor my slash (/) partition and shows all information correctly but while its try to monitor other hardisk partition which has size in TB it is not show the detial correctly. i tried everything to correct the issue but still not able to solve the issue. while the partition is in GB is monitors fine but in TB it shows wrong information.
Please help me to correct this issue as soon as possible.
Any help whould be appriciated.
Thanks in Advance,
Mahi Nix
Need further details... what is the filesystem being used on the terabyte partition? Is it an NFS share?
The reason I ask the above question is due to the following:
"net-snmp does not deal with terabyte file systems well if they are NFS mounted - they will have small hrStorageAllocationUnits, and hrStorageSize and hrStorageUsed will wrap, so you may see that the Used space is greater than the total Size.
There is currently no fix for this in the Net-snmp snmp agent, so the workaround is to monitor the NFS server, not the system that mounts them."
I've done more reading and found that Net-SNMP can roll over to a negative value instead of a positive for large terabyte filesystems. One thing to check is whether you're monitoring with snmp v1 or v2. Zenoss defaults to v1, but v2 supports larger counters. This may not be a factor with filesystem counters but worth a shot. If worst comes to worst you can use the Linux SSH monitoring ZenPacks to monitor the filesystems via SSH which is sure to work.
Ryan, I have never heard that about snmp v2 and big filesystems, have you seen this yourself? I cant wait to try it tomorrow at work.
Some version of net-snmp roll and show negative and some don't roll and say something stupid Surprisingly the showing a negative can be addresses programmatically but the stupid response cant.
I do know I have read the most recent version of net-snmp ( claims ) to have fixed the issue of monitoring filesystems greater than 2TB, I say claimed because I have not seen it myself. I so far have had to address it via other ways.
The v2 is a theory, but it's potentially plausible. I've never monitored filesystems that size myself via SNMP.
I encountered the same problem. SNMP just doesn't report them correctly. You need to use zenoss.cmd.df as your filesystem modeler plugin. It's been some time since I set this up but from memory -
- install zenplugin.py in /opt/zenoss/libexec on the target host
- I created a new device class for these devices, edited the modeler plugins to remove the snmp.filesystemmap and added zenoss.cmd.df
- edited Configuration Properties for the class and set zCommandUsername and zCommandPassword for a login account on that box; set zCommandPath to be '/opt/zenoss/libexec'
- added and modeled the device.
I _think_ that was it. Googling for zenoss.cmd.df might help more if you get stuck.
zenplugin.py hasn't been required since version 2.3 or 2.4. Definitely not required in 2.5 or any versions after that.
Then I would be most interested in knowing the proper way to monitor large file systems too. The standard SNMP based collector does not work out of the box in 3.2 (patched).
Marc
Hello Experts,
Thanks for your valuable reply.
I already tried "zenoss.cmd.df" plugin and it works but it is not showing used and free space of the partition. i also tried with ssh monitoring and also not able to get the correct result.
Ryan: I am using NFS mount and XFS mount for my terabyte partition.
Can anyone suggest me, what i have to do to get it correct or zenoss will not able to monitor large partitions which has size in TB (Terabyte).
Regarts,
Mahi_nix
Do you have the following ZenPacks installed?
From your description it sounds like you don't have the proper FileSystem template in the class where the device is. There's a specific template for collecting the data via SSH (which should be included with the above ZenPacks).
Devices where the filesystem is being monitored via SSH need to be in a class with that template (as opposed to the standard SNMP one).
HI Ryan,
I have already installed both the zenpacks and i have added my machines in "/linux/ssh/linux" class. right now it shows correct disk space but in "UsedSpace" and "FreeSpace" it shows "Unknown" status.
What i have to do to resolve this problem.
Rehards,
Mahi_nix
This works for me. You need to have both the command-based modeler plugin and the command-based Filesystem template active. After that, it takes a couple of poll intervals before you see the used / free stats filled in but you should certainly get there.
Try running zenmodeler (as the zenoss user) just for a relevant device for the df plugin. For a device called fred, that would be:
zenmodeler run -v 10 -d fred --collect zenoss.cmd.df
You should see exactly what output is reported that way.
Cheers,
Jane
I know this question is old, but in these modern days of huge filesystems I want to attempt to answer with some information I discovered today. It seems redhat has addressed the issue of net-snmp not handling filesysystems greatter than 16TB in a new version of net-snmp please see this redhat doc and I believe the centos rpm is available also. Information: http://rhn.redhat.com/errata/RHBA-2011-1076.html and this link is referenced in that document: https://bugzilla.redhat.com/show_bug.cgi?id=654384
Follow Us On Twitter »
|
Latest from the Zenoss Blog » | Community | Products | Services Resources | Customers Partners | About Us | ||
Copyright © 2005-2011 Zenoss, Inc.
|
||||||||