Dec 2, 2009 8:27 PM
Disk space thresholds not working
-
Like (0)
ok so it appears that my thresholds aren't enabled, sort of. i have one named critical_disk_usage and one named high_disk_usage. They both pull from datapoint usedBlocks_usedBlocks and their max value is set to here.getTotalBlocks() * .95 and here.getTotalBlocks() * .9, respectively.
When I click to view the thresholds, both have enabled set to false. So I try to enable both of them but only one of them successfully gets enabled. If I try to enable the other, the first one gets disabled. So I click out to some other page besides a template page and go back in there and now they're both set to False.
This seems like some kind of bug or else some really screwy way of telling me I'm doing something wrong. Really not sure what to do now. Any ideas?
Ok, so just to make this more fun...
When viewing Devices->Server->Templates->Filesystem, I decided to delete my critical threshold and after that, I was able to set the high threshold to true and it'd stay that way if I navigated to other pages!
Then I go to Devices->Server->Linux->Filesystem and I see that the threshold here is now set to false. So now I set this one to true. (Btw, there appears to be a bug in the navigation here. The breadcrumb navigation up top reads /Devices/Server/Templates/Filesystem instead of /Devices/Server/Linux/Templates/Filesystem)
After setting the value to true for the Linux template, I go back to Devices->Server->Templates->Filesystem and now this one is set to false. I can't seem to have my cake an eat it too
Try and copy your template down into the Linux portion of the tree. then do the changes.
What you are seeing is not a bug actually. Everything in the server class is inheriting the values from that template, not just Linux. Thats why it is above that device class.
Here is what I have in my threshold for usedBlocks_usedBlocks:
(here.totalBlocks * here.zFileSystemSizeOffset) * .95
This is for version 2.4.1
User-supplied Python expression ((here.totalBlocks * here.zFileSystemSizeOffset) * .9) for maximum value caused error: ['usedBlo |
actually, I changed it back to what it was before and i'm still getting that same error...
User-supplied Python expression (here.getTotalBlocks() * .9) for maximum value caused error: ['usedBlocks_usedBlocks'] |
What version of Zenoss are you running? I can throw up an installation in a VM to see if I can duplicate it..
Currently I use 2.4.1 at work, and 2.5 beta unpached at home, as well as one of the official Zenoss VM's to break things on.
Sweet, that'd be awesome. I'm using 2.4.5.
Follow Us On Twitter »
|
Latest from the Zenoss Blog » | Community | Products | Services Resources | Customers Partners | About Us | ||
Copyright © 2005-2011 Zenoss, Inc.
|
||||||||