Code Monkey home page Code Monkey logo

Comments (5)

waxie avatar waxie commented on August 11, 2024

# ipython
Python 2.6.6 (r266:84292, Dec 26 2010, 22:31:48)
Type "copyright", "credits" or "license" for more information.

IPython 0.10 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object'. ?object also works, ?? prints more.

In [1]: iets = 'proc3 22 0 11116973 172815 779538 3775010 3271 1395612 408022 96132 2332 18288 0 44932 2000 149604 1634 1779 48591 1120 1854 927 306968'

In [2]: import re

In [7]: re.search(".*proc3 (?:\S*\s){2}(\S*)", iets).groups()
Out[7]: ('11116973',)

from gmond_python_modules.

waxie avatar waxie commented on August 11, 2024

The problem is this


# cat /proc/net/rpc/nfsd
rc 0 0 0
fh 0 0 0 0 0
io 0 0
th 0 0 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
ra 0 0 0 0 0 0 0 0 0 0 0 0
net 0 0 0 0
rpc 0 0 0 0 0
proc4ops 59 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

from gmond_python_modules.

waxie avatar waxie commented on August 11, 2024

perhaps the module should check for the presence of "proc3" in the output, before trying to re.search and skip nfs(d)_3 prefix metric collection if no proc3 is found in the output

from gmond_python_modules.

waxie avatar waxie commented on August 11, 2024

Even when I remove nfsd_ metrics from .pyconf the module still fails.

from gmond_python_modules.

waxie avatar waxie commented on August 11, 2024

#68

Fixes this issue

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.