Giter Site home page Giter Site logo

Comments (6)

refraction-ray avatar refraction-ray commented on September 24, 2024 1

Check whether #88 (comment) helps

from gmond_python_modules.

HamishB avatar HamishB commented on September 24, 2024

Hi, I'm seeing the same thing in /var/log/syslog on Ubuntu 14.04 with ganglia-monitor 3.6.0-1ubuntu2. Since the last few weeks, about the same time you reported the bug.
Kernel is Ubuntu's 4.4.0-124-generic, up from 3.16.0.

What's more nodes are not reporting data back to the gmetad host so rrds are not being updated.

:-/
Hamish

from gmond_python_modules.

HamishB avatar HamishB commented on September 24, 2024

(reboot of the cluster solved the trouble with the rrds not being updated)
The netstats problem on the nodes remains.

from gmond_python_modules.

titansmc avatar titansmc commented on September 24, 2024

I still see this error on gmond 3.7.2 from EPEL 7 that has the patch proposed here applied.

from gmond_python_modules.

 avatar commented on September 24, 2024

We also see this on 3.7.2

from gmond_python_modules.

 avatar commented on September 24, 2024

Still monitoring, but so far I believe I was able to implement a fix for 3.7.2

Manually changed /usr/lib64/ganglia/python_modules/netstats.py (your installation location may differ) to catch ZeroDivisionErrors in the delta function. I can't see how this would have a negative effect on monitoring since the exception should only invoke in cases of divide-by-zero situations. So far so good on my end on a node I'm testing this on.

def get_delta(name):
    """Return change over time for the requested metric"""

    # get metrics
    [curr_metrics, last_metrics] = get_metrics()

    parts = name.split("_")
    group = parts[0]
    metric = "_".join(parts[1:])

    try:
        delta = (float(curr_metrics['data'][group][metric]) - float(last_metrics['data'][group][metric])) / (curr_metrics['time'] - last_metrics['time'])
        if delta < 0:
            print name + " is less 0"
            delta = 0
    except KeyError:
        delta = 0.0
    except ZeroDivisionError:
        delta = 0.0

    return delta

The only change being the addition of the lines:

except ZeroDivisionError:
        delta = 0.0

from gmond_python_modules.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.