Code Monkey home page Code Monkey logo

openvz's People

Contributors

peletiah avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

Forkers

bangnaga

openvz's Issues

Incorrect physpages comparison

When looking at /proc/user_beancounters the held value of physpages is lower than the limit but check_beancounters reports an issue:

uid resource held maxheld barrier limit failcnt
100:
physpages 3641229 3679180 0 4194304 0

/usr/bin/check_beancounters -f
app100: physpages

It seems that your check compares the current value to the limit * 0.9... why?

Beancounters for destroyed containers break the script

If there are past beancounter failures for containers that have been destroyed the script throws the following error:

/check_beancounter.py -i -e [email protected]

Traceback (most recent call last):
File "./check_beancounter.py", line 198, in
current_data = compare_data(beancounter_data,data_read,count,email)
File "./check_beancounter.py", line 119, in compare_data
count_change=cntcheck(data_read,current_data,veid,fields,count,count_change)
File "./check_beancounter.py", line 71, in cntcheck
hostname=find_veid(veid)
File "./check_beancounter.py", line 24, in find_veid
veid_conf=open('/etc/vz/conf/' + str(veid) + '.conf','r')
IOError: [Errno 2] No such file or directory: '/etc/vz/conf/319.conf'

I don't know enough python yet, but wrapping the first line in find_veid in a try, to make sure the conf file exists before working with it should solve the problem. It should be safe to ignore any beancounter failures for containers not running or that don't have config files.

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.