ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: "Dmitriy L. Kruglikov" <dmitriy.kruglikov@gmail.com>
To: sysadmins@lists.altlinux.org
Subject: Re: [Sysadmins] Мониторинг нагрузки на сервер
Date: Wed, 25 Jun 2014 09:38:49 +0300
Message-ID: <20140625093849.067627eb@gmail.com> (raw)
In-Reply-To: <53AA5D7E.5090004@kemsu.ru>

On Wed, 25 Jun 2014 12:26:22 +0700
REAL wrote:

R> Миш, а не мог бы ты, пожалуйста, осветить на вики небольшую
R> мануалку по установке и настройке collectd (nginx или
R> apache2, на выбор)?
Ой, там и описывать не чего...
В штатном /etc/collectd.conf примеров выше крыши.
Сперва подключаем модуль, потом его настраиваем.

Для lighttpd, apache2 используется один и тот же модуль.
Сперва 
LoadPlugin apache
потом, к примеру
<Plugin apache>
  <Instance "127.0.0.1">
        URL "http://127.0.0.1:8080/server-status?auto"
        VerifyHost false
  </Instance>
</Plugin>

Для Nginx есть свой.
<Plugin nginx>
        URL "http://192.168.13.14/nginx_status"
#       User "www-user"
#       Password "secret"
#       CACert "/etc/ssl/ca.crt"
</Plugin>


А в настройках nginx, lighttpd, apache2 подключаем выдачу статуса согласно мануала.
Например для Nginx
    location /nginx_status {
        stub_status on;
        access_log  off;
        allow   127.0.0.1;
        deny    all;
    }

Примеров в collectd.conf столько, что оформлять мануал на Wiki просто не имеет смысла.


-- 
Best regards,
 Dmitriy Kruglikov


  parent reply	other threads:[~2014-06-25  6:38 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-24  2:25 REAL
2014-06-24  2:40 ` alexei
2014-06-24  3:06   ` REAL
2014-06-24  3:24     ` alexei
2014-06-24  6:54       ` REAL
2014-06-24  7:16         ` alexei
2014-06-25  3:18           ` REAL
2014-06-25  3:37             ` alexei
2014-06-24  8:14   ` Michael Shigorin
2014-06-25  5:26     ` REAL
2014-06-25  6:14       ` Sergey
2014-06-25  9:11         ` Anton Farygin
2014-06-25 19:27           ` Sergey
2014-06-25 20:46             ` Anton Farygin
2014-06-26 10:39               ` Michael Shigorin
2014-06-26 10:52               ` Sergey
2014-06-26 11:26                 ` Anton Farygin
2014-06-26 11:59                   ` Sergey
2014-06-25  6:38       ` Dmitriy L. Kruglikov [this message]
2014-06-25  9:21         ` Michael Shigorin
2014-07-17 19:59     ` Maksym Tiurin
2014-07-18  7:35       ` Dmitriy L. Kruglikov
2014-07-21 12:24         ` Michael Shigorin
2014-07-21 12:36           ` Dmitriy L. Kruglikov
2014-07-21 18:16         ` Maksym Tiurin
2014-07-23  6:04           ` Dmitriy L. Kruglikov
2014-07-21 13:50       ` Sergey
2014-07-21 18:18         ` Maksym Tiurin
2014-06-24  4:32 ` Mike Lykov
2014-06-24  6:53   ` REAL
2014-06-24  8:23     ` Anton Gorlov
2014-06-25  3:24       ` REAL
2014-06-24  7:13 ` Dmitriy L. Kruglikov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140625093849.067627eb@gmail.com \
    --to=dmitriy.kruglikov@gmail.com \
    --cc=sysadmins@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git