Commits
Author | Commit | Message | Commit date | Issues | |
---|---|---|---|---|---|
Kir Kolyshkin | c5a57db8ae0 | Released vzstats 0.3.2* fixed %triggerin in rpm installation * fixed "http_proxy: unbound variable" error Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 7017a9e625b | vzstats: fix 'http_proxy: unbound variable' errorSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 5ab1f27ef1a | vzstats.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 Kolyshkin | a5f8ff2ce2b | Released 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 Kolyshkin | 0852a8e402c | Released 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 Kolyshkin | 1ea05652c9c | Add bash_completion script... although I wouldn't call it a script :) Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 00567c6232a | README, %description: expandExplain what stats are reported and why, links to more info Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | e4e2c1931fd | vzstats(8): addSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | a91f93d987b | vzctl --status: implementPrint current configuration etc. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 385970f643d | vzstats: print error in case of unknown optionSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 029a5e760e7 | vzstats: implement --disable/--enableSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | a9be1845aa5 | vzstats: 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 Kolyshkin | a2c95e555e3 | vzstats: 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 Kolyshkin | e5cd6ef115b | vzstats: introduce DISABLED_MARKTo be used by later patches Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | d58e6a15920 | vzstats: move discover_proxy() to after opt parseSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | fe33bf21713 | vzstats: reimplement usage() with here-documentEasier to expand this way Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | b28ad77b611 | vzstats 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 Kleinsasser | bd61c4ae613 | vzstats: 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 Kolyshkin | 86a8fb55a8a | bin/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 Kolyshkin | 19d5b4bb589 | bin/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 Kolyshkin | 62503b849f3 | bin/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 Kolyshkin | 3e616862b56 | vzstats: add --help and --viewSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 49bd1cac231 | Released 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 Kolyshkin | b643e299fdb | vzstats: 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 Kolyshkin | 9546c65f791 | vzstats: 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 Kolyshkin | 6b6ff87cb4d | Released vzstats 0.2Changes: - first public release - added meminfo and ostemplates scripts Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | b7450b98263 | bin/ostemplates: addSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 5cde1b2eee4 | Add .gitignoreSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | e479a0c0228 | Makefile: 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 Kolyshkin | 13424680ccd | Add meminfo scriptSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 1a71f412d19 | vzstats: quote CURL= assignmentFix to commit 4fb2f08. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | e0d06075072 | vzstats.spec: it's a noarch packageSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 66065f1e42f | Makefile: mark install-cronjob as PHONYSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | bc49a017364 | bin/fs: fix file moreSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 4fb2f08ec59 | vzstats: 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 Kolyshkin | 234f156f4cf | README: refer to wiki and stats serverSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | eb3bfdceef5 | vzstats.conf: change URL to stats.openvz.orgSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 8f72d5f6f9e | bin/vzlist: no need to show CTIDsSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 1aafdd271f3 | bin/fs: script to show /vz file systemSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 7b59f6a2f4d | bin/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 Kolyshkin | 58eafbf717b | Add 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 Kolyshkin | 4cb07d41df7 | Add 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 Kolyshkin | ad77c1c8fd6 | vzstats.spec: add triggerin for vzctl-core, ploop-libSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 41c288bf152 | vzstats.spec: own /usr/libexec/vzstatsSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 9d03403561e | Makefile: check for version mismatchSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | b5c69c445f5 | Added self version to collect.logSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | fbffadf61f9 | Initial git commitSigned-off-by: Kir Kolyshkin <kir@openvz.org> |