Discussion:
Not able to monitor drive space correctly
Mahi Nix
2011-10-31 10:35:46 UTC
Permalink
Mahi Nix [http://community.zenoss.org/people/mahi_nix] created the discussion

"Not able to monitor drive space correctly"

To view the discussion, visit: http://community.zenoss.org/message/62313#62313

--------------------------------------------------------------
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
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/62313#62313]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Ryan Matte
2011-11-02 19:38:38 UTC
Permalink
Ryan Matte [http://community.zenoss.org/people/rmatte] created the discussion

"Re: Not able to monitor drive space correctly"

To view the discussion, visit: http://community.zenoss.org/message/62356#62356

--------------------------------------------------------------
Need further details... what is the filesystem being used on the terabyte partition?  Is it an NFS share?
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/62356#62356]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Ryan Matte
2011-11-02 19:40:37 UTC
Permalink
Ryan Matte [http://community.zenoss.org/people/rmatte] created the discussion

"Re: Not able to monitor drive space correctly"

To view the discussion, visit: http://community.zenoss.org/message/62357#62357

--------------------------------------------------------------
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."
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/62357#62357]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Ryan Matte
2011-11-02 19:54:01 UTC
Permalink
Ryan Matte [http://community.zenoss.org/people/rmatte] created the discussion

"Re: Not able to monitor drive space correctly"

To view the discussion, visit: http://community.zenoss.org/message/62359#62359

--------------------------------------------------------------
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.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/62359#62359]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
mwcotton
2011-11-02 21:10:42 UTC
Permalink
mwcotton [http://community.zenoss.org/people/mwcotton] created the discussion

"Re: Not able to monitor drive space correctly"

To view the discussion, visit: http://community.zenoss.org/message/62363#62363

--------------------------------------------------------------
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.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/62363#62363]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Ryan Matte
2011-11-02 21:23:44 UTC
Permalink
Ryan Matte [http://community.zenoss.org/people/rmatte] created the discussion

"Re: Not able to monitor drive space correctly"

To view the discussion, visit: http://community.zenoss.org/message/62374#62374

--------------------------------------------------------------
The v2 is a theory, but it's potentially plausible.  I've never monitored filesystems that size myself via SNMP.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/62374#62374]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
omeganon
2011-11-02 22:06:22 UTC
Permalink
omeganon [http://community.zenoss.org/people/omeganon] created the discussion

"Re: Not able to monitor drive space correctly"

To view the discussion, visit: http://community.zenoss.org/message/62377#62377

--------------------------------------------------------------
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.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/62377#62377]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Ryan Matte
2011-11-02 23:05:41 UTC
Permalink
Ryan Matte [http://community.zenoss.org/people/rmatte] created the discussion

"Re: Not able to monitor drive space correctly"

To view the discussion, visit: http://community.zenoss.org/message/62378#62378

--------------------------------------------------------------
zenplugin.py hasn't been required since version 2.3 or 2.4.  Definitely not required in 2.5 or any versions after that.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/62378#62378]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
omeganon
2011-11-03 00:20:07 UTC
Permalink
omeganon [http://community.zenoss.org/people/omeganon] created the discussion

"Re: Not able to monitor drive space correctly"

To view the discussion, visit: http://community.zenoss.org/message/62381#62381

--------------------------------------------------------------
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
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/62381#62381]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Mahi Nix
2011-11-03 05:41:10 UTC
Permalink
Mahi Nix [http://community.zenoss.org/people/mahi_nix] created the discussion

"Re: Not able to monitor drive space correctly"

To view the discussion, visit: http://community.zenoss.org/message/62380#62380

--------------------------------------------------------------
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

--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/62380#62380]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Ryan Matte
2011-11-03 14:09:49 UTC
Permalink
Ryan Matte [http://community.zenoss.org/people/rmatte] created the discussion

"Re: Not able to monitor drive space correctly"

To view the discussion, visit: http://community.zenoss.org/message/62386#62386

--------------------------------------------------------------
Do you have the following ZenPacks installed?

http://community.zenoss.org/docs/DOC-3435 http://community.zenoss.org/docs/DOC-3435
http://community.zenoss.org/docs/DOC-3493 http://community.zenoss.org/docs/DOC-3493
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).
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/62386#62386]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Mahi Nix
2011-11-04 07:29:12 UTC
Permalink
Mahi Nix [http://community.zenoss.org/people/mahi_nix] created the discussion

"Re: Not able to monitor drive space correctly"

To view the discussion, visit: http://community.zenoss.org/message/62407#62407

--------------------------------------------------------------
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
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/62407#62407]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
jcurry
2011-11-04 12:35:26 UTC
Permalink
jcurry [http://community.zenoss.org/people/jcurry] created the discussion

"Re: Not able to monitor drive space correctly"

To view the discussion, visit: http://community.zenoss.org/message/62414#62414

--------------------------------------------------------------
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
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/62414#62414]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
mwcotton
2013-06-28 21:02:57 UTC
Permalink
mwcotton [http://community.zenoss.org/people/mwcotton] created the discussion

"Re: Not able to monitor drive space correctly"

To view the discussion, visit: http://community.zenoss.org/message/73786#73786

--------------------------------------------------------------
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 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 https://bugzilla.redhat.com/show_bug.cgi?id=654384
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/73786#73786]

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Loading...