Changes

Jump to: navigation, search

UBC Monitoring

431 bytes added, 21:41, 20 May 2008
linked to actual upstream code, instead of an outdated copy
Monitoring /proc/user_beancounters to see if any containers are hitting limits is an important part of
managing an OpenVZ installation. containers Containers that are hitting key limits can have applications malfunction in strangeways that can only be diagnosed by realising that it is a UBC configuration issue.
A small script, '''failcnt.py''', can run via cron on the host node and watch all VEs for failures. It emails the host node admin a failure summary.
 
To get the latest version using bzr, run:
 
bzr branch lp:tkmisc
cd tkmisc/vz_failcnt
 
It can also be downloaded from:
 
https://launchpad.net/tkmisc/
or
http://bazaar.launchpad.net/~toykeeper/tkmisc/trunk/files
 
Then, to install it, create '''/etc/cron.hourly/vz-failcnt''', containing:
 
#!/bin/sh
/path/to/tkmisc/vz_failcnt/failcnt.py
This script, when run periodically (using cron) will detect changes in the failcnt field of /proc/user_beancounters
 
[http://img.cs.montana.edu/linux/openvz/failcnt.py failcnt.py]
[[Category: Troubleshooting]]
1
edit

Navigation menu