I have setup some custom thresholds for my linux servers in the filesystem template which look like this:
here.totalBlocks() * .90
I am using Zenoss 3.2.1. Everytime I go to look at the disk usage graphs I get the above posted error message.
I have seen this error message before if the FileSystem template is incorrectly bound to the device. Make sure that the FileSystem template is not bound at the device level, but only at the FileSystem component.
I don't THINK it is bound to a device, I have been trying to figure out if it is but maybe I am not looking in the right place?
Ok filesystem is not bound to a device anymore, I can click on the GRAPHS link and it shows the graphs, now when I go to FileSystems under Components I get the
pythonThresholdException User-supplied Python expression
Have the filesystems been successfully modeled? Does forcing a remodel of the device help to clear up the error?
I "think" they are... can you give me some tips on how I might verify this?
Your threshold is incorrect, it should be...
here.getTotalBlocks() * .9
Or you could do...
here.totalBlocks * .9
totalBlocks is a property, not a function, so you can't have the () at the end of it. I would recommend using here.getTotalBlocks() since that's what comes with Zenoss in it's default FileSystem templates.
I tried what you suggested but still get the python errors.
You're seeing the python error when trying to view the graph for a filesystem?
Paste the exact error that you're seeing now. it should have changed slightly if you actually edited the correct template file with the change I described.
zenhub|User-supplied Python expression (here.getTotalBlocks() * .90) for maximum value caused error: ['usedBlocks_usedBlocks']
The threshold high disk usage in template /zport/dmd/Devices/Server/Linux/rrdTemplates/FileSystem has caused an exception.
User-supplied Python expression (here.getTotalBlocks() * .9) for maximum value caused error: ['usedBlocks_usedBlocks']
I have the template entered exactly how you suggested, I actually copied and pasted it.
It's like when you modeled the filesystems it didn't actually detect the totalBlocks value for them. If you click on the filesystem and then change the Display: dropdown from Graphs to Details, do you see a Total Bytes: value listed there?
In the details for the filesystem you should see something like the following:
Yes I see something that looks just like that and Total Bytes is populated.
Follow Us On Twitter »
||Latest from the Zenoss Blog »||Community||Products||Services||Customers||About Us|
Copyright © 2005-2011 Zenoss, Inc.