OpenVZ-legacy
  1. OpenVZ-legacy

vzstats

Public
AuthorCommitMessageCommit dateIssues
Kir KolyshkinKir Kolyshkin
c5a57db8ae0Released vzstats 0.3.2* fixed %triggerin in rpm installation * fixed "http_proxy: unbound variable" error Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
7017a9e625bvzstats: fix 'http_proxy: unbound variable' errorSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
5ab1f27ef1avzstats.spec: fix %triggerin callThe problem is trigger -p is called with some arguments, which we don't understand, leading to the following error: Non-fatal <unknown> scriptlet failure in rpm package vzstats-0.3.1-1.noarch ERROR: Unknown option /var/tmp/rpm-tmp.gxKwVQ Usage: .... So let's stop using -p for %triggerin Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
a5f8ff2ce2bReleased vzstats 0.3.1- add options --help, --view, --enable, --disable and --status - add vzstats(8) man page - add lsbrelease script - fix vzlist script to work with older vzctl - add proxy discovery code - add bash_completion script (this is a respin due to missed VERSION fix in vzstats) Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
0852a8e402cReleased vzstats 0.3- add options --help, --view, --enable, --disable and --status - add vzstats(8) man page - add lsbrelease script - fix vzlist script to work with older vzctl - add proxy discovery code - add bash_completion script Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
1ea05652c9cAdd bash_completion script... although I wouldn't call it a script :) Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
00567c6232aREADME, %description: expandExplain what stats are reported and why, links to more info Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
e4e2c1931fdvzstats(8): addSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
a91f93d987bvzctl --status: implementPrint current configuration etc. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
385970f643dvzstats: print error in case of unknown optionSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
029a5e760e7vzstats: implement --disable/--enableSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
a9be1845aa5vzstats: allow to process options even if disabledEven if vzstats is disabled, allow it to process command line options. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
a2c95e555e3vzstats: allow more than one optionLoop through options as long as we have any. This also fixes "unbound variable: $0" introduced by commit 3e61686. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
e5cd6ef115bvzstats: introduce DISABLED_MARKTo be used by later patches Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
d58e6a15920vzstats: move discover_proxy() to after opt parseSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
fe33bf21713vzstats: reimplement usage() with here-documentEasier to expand this way Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
b28ad77b611vzstats discover_proxy(): use local variable1. Rename PROXY to proxy_line 2. Mark it as local to limit scope Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Mario KleinsasserMario Kleinsasser
bd61c4ae613vzstats: autodiscover http proxyAdded function to autodiscover http proxy if possible 1. if http_proxy already set, do nothing, else 2. read /etc/wgetrc and use http_proxy setting if configured, else 3. read /etc/yum.conf and use procy setting if configured, else 4. do nothing and go on [kir@openvz.org: improved regexes, strip whitespace from wget config]
Kir KolyshkinKir Kolyshkin
86a8fb55a8abin/vzlist: check vzlist is availableDon't try to call vzlist many times if it's not available (for some reason). Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
19d5b4bb589bin/vzlist: don't ask for unsupported fieldsAs reported in http://www.mail-archive.com/users@openvz.org/msg04770.html: > 2) vzlist script relyes on some newer vzctl version, for example, my > system has backported vzctl 3.0.30.2 , and it doesn't contain output > fields like 'layout' and 'vswap' , so it just exits. So, let's check if fields are supported by vzlist and only use ones that are supported. Note: * "layout" was added in vzct...
Kir KolyshkinKir Kolyshkin
62503b849f3bin/lsbrelease: addFrom http://www.mail-archive.com/users@openvz.org/msg04770.html: > 1) osrelease script tryes to find /etc/*-release which is not used in > Debian. As solution I think it is possible to use lsb_release as > distro-independent way to detect release. Suggested-by: CoolCold <coolthecold@gmail.com> Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
3e616862b56vzstats: add --help and --viewSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
49bd1cac231Released vzstats 0.2.1- fixed compatibility with older (as of RHEL5/4) userspace - stricter checks for scripts permission and ownership Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
b643e299fdbvzstats: improve find1. Do not use -perm /mode since it is not available in CentOS 4 find. 2. Add -maxdepth 1 just in case to not dive in too deep. 3. Exclude files - writeable by group or others - not belonging to root:root - not readable by user Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
9546c65f791vzstats: fix for older find/mktempOld versions of find don't understand -executable, so let's user -perm instead. Old versions of mktemp don't have --suffix, so don't use it. By "old" I mean versions from RHEL5. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
6b6ff87cb4dReleased vzstats 0.2Changes: - first public release - added meminfo and ostemplates scripts Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
b7450b98263bin/ostemplates: addSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
5cde1b2eee4Add .gitignoreSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
e479a0c0228Makefile: fix for older tarOld tar versions don't understand --exclude-vcs so let's use --exclude .git instead. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
13424680ccdAdd meminfo scriptSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
1a71f412d19vzstats: quote CURL= assignmentFix to commit 4fb2f08. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
e0d06075072vzstats.spec: it's a noarch packageSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
66065f1e42fMakefile: mark install-cronjob as PHONYSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
bc49a017364bin/fs: fix file moreSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
4fb2f08ec59vzstats: add timeout to curlIt doesn't make sense to wait too much if the server is unavailable. So let's add a 3 seconds connect timeout (which is still pretty big but not hopeless). Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
234f156f4cfREADME: refer to wiki and stats serverSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
eb3bfdceef5vzstats.conf: change URL to stats.openvz.orgSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
8f72d5f6f9ebin/vzlist: no need to show CTIDsSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
1aafdd271f3bin/fs: script to show /vz file systemSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
7b59f6a2f4dbin/df: only limit to /vzLet's not expose too much information, only reporting about /vz (or whenever $VE_PRIVATE points us to). Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
58eafbf717bAdd vzlist scriptShould get info about how many containers running/total, plus how many of those use ploop and vswap. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
4cb07d41df7Add ability to opt-outThis is probably the easiest way to opt-out, just do touch /etc/vz/vzstats-disable Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
ad77c1c8fd6vzstats.spec: add triggerin for vzctl-core, ploop-libSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
41c288bf152vzstats.spec: own /usr/libexec/vzstatsSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
9d03403561eMakefile: check for version mismatchSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
b5c69c445f5Added self version to collect.logSigned-off-by: Kir Kolyshkin <kir@openvz.org>
Kir KolyshkinKir Kolyshkin
fbffadf61f9Initial git commitSigned-off-by: Kir Kolyshkin <kir@openvz.org>