Nov 6, 2012 10:58 PM
EC2Manager float division by zero
-
Like (0)
I just setup EC2 monitoring and am receiving the following error:
ERROR:ec2:float division by zero Traceback (most recent call last): File "/opt/zenoss/ZenPacks/ZenPacks.zenoss.ZenAWS-1.1.0-py2.7.egg/ZenPacks/zenoss/ZenAWS/libexec/zencw2.py", line 301, in main() File "/opt/zenoss/ZenPacks/ZenPacks.zenoss.ZenAWS-1.1.0-py2.7.egg/ZenPacks/zenoss/ZenAWS/libexec/zencw2.py", line 286, in main stats = buildCache(opts, stats) File "/opt/zenoss/ZenPacks/ZenPacks.zenoss.ZenAWS-1.1.0-py2.7.egg/ZenPacks/zenoss/ZenAWS/libexec/zencw2.py", line 246, in buildCache stats, mdict = buildData(opts, stats) File "/opt/zenoss/ZenPacks/ZenPacks.zenoss.ZenAWS-1.1.0-py2.7.egg/ZenPacks/zenoss/ZenAWS/libexec/zencw2.py", line 131, in buildData metricCountWaitTime = (opts.range * 0.6) / prevMetricCount ZeroDivisionError: float division by zero
This is a repeated error and occors on each poll to the EC2 service.
I am running the following:
Any ideas of what might be causing these errors?
Thanks
I had the same problem and just initiated a really really dirty hack to see what would happen. I went to the offending line in "/opt/zenoss/ZenPacks/ZenPacks.zenoss.ZenAWS-1.1.0-py2.7.egg/ZenPacks/zenoss/ZenAWS/libexec/zencw2.py" and just changed it from :
metricCountWaitTime = (opts.range * 0.6) / prevMetricCount
To:
metricCountWaitTime = (opts.range * 0.6) / prevMetricCount+1
Which nixed the div by zero problem and now I see my instances. However, this is clearly not a good fix.
Follow Us On Twitter »
|
Latest from the Zenoss Blog » | Community | Products | Services Resources | Customers Partners | About Us | ||
Copyright © 2005-2011 Zenoss, Inc.
|
||||||||