Coder Social home page Coder Social logo

ecks's People

Contributors

cread avatar iiseymour avatar strangereon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ecks's Issues

get_uptime for Windows CE devices raises exception

This is the Exception:
File "C:\Python26\lib\site-packages\ecks-0.8-py2.6.egg\ecks\plugins\uptime.py", line 43, in get_uptime
if ("Windows" in os) and (int(re.search("(Build (\d+) ", os).groups()[0]) < 7600):
AttributeError: 'NoneType' object has no attribute 'groups'

Apparently, on Windows CE the OS description is 'Microsoft Windows CE Version 5.0 (Build 1400)', while for a Windows Server it is 'Hardware: x86 Family 6 Model 23 Stepping 8 AT/AT COMPATIBLE - Software: Windows Version 5.2 (Build 3790 Multiprocessor Free)'

For Win CE, there is no space after the Build number, so the regexp '"(Build (\d+) " turns up nothing.

get_data error

>>> import ecks
>>> e = ecks.Ecks()
>>> e.get_data('127.0.0.1', 'public', 'disk')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/etc/lib/python2.6/site-packages/Ecks-0.9-py2.6.egg/ecks/ecks.py", line 139, in get_data
    return eval("self.get_%s(host, comm)" % plugin)
  File "<string>", line 1, in <module>
  File "/etc/lib/python2.6/site-packages/Ecks-0.9-py2.6.egg/ecks/plugins/disk.py", line 52, in get_disk
    for i in [t for t in parent._extract(data, int, 1)]:
  File "/etc/lib/python2.6/site-packages/Ecks-0.9-py2.6.egg/ecks/ecks.py", line 82, in _extract
    return [ value_type(value) for (oid, (data_type, index), value) in data if data_type == filter ]
ValueError: need more than 0 values to unpack

UnboundLocalError with asynchronous code

Importing cmdgen inside the get_snmp_data function seems to cause a strange race condition when calling asynchronously:

UnboundLocalError: local variable 'cmdgen' referenced before assignment

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.