Commits
Author | Commit | Message | Commit date | Issues | |
---|---|---|---|---|---|
Kir Kolyshkin | e911a4eca19 | Released vzstats 0.5.2* removed top-ps script (#2704) === Thanks === * Pavel Snajdr <pavel.snajdr@relbit.com> * Mirek Kratochvil <exa.exa@gmail.com> Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | cf3b1803d9b | Removed top-ps scriptIt is not used anyway (see http://openvz.livejournal.com/2013/09/). https://bugzilla.openvz.org/2704 Reported-by: Pavel Snajdr <pavel.snajdr@relbit.com> Reported-by: Mirek Kratochvil <exa.exa@gmail.com> Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 588d91c7465 | Released vzstats 0.5.1* fixed SSL problems on older systems * fixed CA cert permissions (a-x) === Thanks === * Pavel Odintsov <pavel.odintsov@gmail.com> Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | adb4677c776 | Fix SSL cert problem on older systemsApparently older systems lacks trusted certs for COMODO, so individual CA cert is not enough and we have to ship an "Essential Bundle" from https://support.comodo.com/index.php?_m=downloads&_a=view&parentcategoryid=20&pcid=1&nav=0,30,1 https://bugzilla.openvz.org/2669 Reported-by: Pavel Odintsov <pavel.odintsov@gmail.com> Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 5159cc751b2 | Makefile: install ssl cert as 0644Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 9d0f1dc35af | Released vzstats 0.5* enabled SSL when sending reports to stats.openvz.org * removed lspci script * bin/top-ps: add --quiet to vzctl exec * increased curl timeout to 30s === Thanks === * ipredator.se Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 19ca890c8d6 | curl: increase timeout to 30sSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | e93527a6b53 | Remove lspci reportWe don't use it, so doesn't make sense to have it. The original idea was to get some hardware info to find out which drivers people use (and we should care about). But we haven't implemented it, so let's remove, at least for now... Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 0eaf72e93d6 | Enable SSL when talking to stats serverWe have to add the CA cert since the issuer (EssentialSSL CA) is not in default bundle (at least in CentOS 6 and Fedora 18). Reported-by: ipredator.se Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 9bd8e721c59 | bin/top-ps: add --quiet to vzctl execSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 86de0a8dd74 | Released vzstats 0.4* added top-ps script * fix vzversion-arch for openvz kernel names (#2596) * make sure sbin paths are in PATH before running scripts * exit with error if run inside CT * increased curl timeout from 3s to 10s * vzstats.spec: run trigger in background * Makefile: support for configurable paths (see Makefile.paths) * Makefile: substitute version from spec to script * Makefile: add install-all targ... | |||
Kir Kolyshkin | ba325ad83d2 | Makefile: take vzstats version from spec fileNow when we have vzstats.in and substitution mechanism, we don't have to maintain version in two places. Let's just take it from spec file and substitute. Naturally, check-version target is no longer needed. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Thomas Lucke (Lucky) | e1ebf23aee5 | bin/vzversion-arch: grep OpenVZ kernel names | |||
Kir Kolyshkin | 246f2576b9e | vzstats.spec: run trigger in backgroundWhen RPMs are installed, we don't want huge delays. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 36d9f173a77 | bin/top-ps: addedLet's try to find top apps used by CTs. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 02bef999f88 | Makefile: fix rpms targetBroken by commit 69f9457 Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 039b60ae11a | vzstats: make sure sbin paths are in PATHFrom our report scripts we use commands like vzlist which are in /usr/sbin. Make sure PATH contains those before running these scripts. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | fe6e40243ad | vzstats: make sure to not run inside CTvzstats is supposed to be run on the host, not inside a container. Make sure we exit with error if it is detected we are inside a CT. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | fdca707c0dd | vzstats: increased timeout to 10sAs reported by some users with slow Internet behind the firewall, 3 seconds is not enough. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 36ed94e2a42 | vzstats(8): substitute pathsSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 69f94571743 | First attempt to make paths configurableNot including the man page yet. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 274374b5521 | Makefile: add install-all targetvzstats.spec: use it Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
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> |