# aptitude install munin
# nano /etc/munin/apache.conf
комментирую:
Order allow,deny
Allow from localhost 127.0.0.0/8 ::1
и под ними дописываю:
AllowOverride All
# /etc/init.d/apache2 restart
# /etc/init.d/munin-node restart
захожу по адресу: http://yapro.ru/munin
файлики с графиками лежат в /var/cache/munin/www
по мотивам:
http://www.ashep.org/2010/monitoring-sistem-pri-pomoshhi-munin/#.USW5IYZR88N
http://linux-ru.blogspot.ru/2007/02/munin.html
http://sqrs.ru/2009/10/15/75/
# Automatically generated for Debian scripts. DO NOT TOUCH!
[client]
host = localhost
user = debian-sys-maint
password = BG7vmgKaw0y6te51
socket = /var/run/mysqld/mysqld.sock
[mysql_upgrade]
host = localhost
user = debian-sys-maint
password = BG7vmgKaw0y6te51
socket = /var/run/mysqld/mysqld.sock
basedir = /usr
/var/lib/munin/localdomain/localhost.localdomain-mysql_size_all-lebnik_yapro-g.rrd
/var/lib/munin/localdomain/localhost.localdomain-diskstats_iops-md3-wrio-g.rrd
/var/lib/munin/localdomain/localhost.localdomain-cpuspeed-cpu4-d.rrd
/var/lib/munin/localdomain/localhost.localdomain-apache_average_time_last_n_requests-images-g.rrd
плагины лежат в:
/usr/share/munin/plugins
установленные плагины:
/etc/munin/plugins
проверим настройку плагина (находясь в директории /usr/share/munin/plugins):
# ./mysql_report suggest
ребутаем мунин:
#service munin-node restart
проверяем работу плагинов
# munin-node-configure --suggest
# munin-node-configure --shell
редактируем плагин apache_users:
# /usr/sbin/munin-run apache_users
# устанавливаем модуль с помощью создания символьной ссылки:
# ln -s /usr/share/munin/plugins/apache_watch_ /etc/munin/plugins/apache_watch_
поддомен:
решение ошибки: munin Junk printed to stdout:
You need to set environment variables to give libdbd-pg-perl information how and where to connect. Maybe there is some other way but I don't know perl (Java rules).
root@arturc:/etc/munin# export PGHOST=localhost
root@arturc:/etc/munin# export PGPORT=5432
root@arturc:/etc/munin# export PGUSER=postgres
And also (!!!)
root@arturc:/etc/munin# export PGPASSWORD=mySecretPassword
Note, that having a password in ~/.pgpass change nothing. Munin (or per libraries) simply ignore it.
With these environment params you can successfuly run both
# munin-node-configure --suggest
# munin-node-configure --shell
and (after symbolic link creation) install munin.
Munin не пишет статистику с Apache - http://itbuben.org/blog/question/1521.html
NGINX ram usage - Из названия ясно что данный плагин позволяет наблюдать расход памяти nginx’ом
NGINX requests - Позволяет наблюдать число запросов к серверу nginx в секунду
NGINX status - Позволяет наблюдать текущие статусы nginx – сколько запросов активно, читают данные с диска, пишут данные на диск, находятся в ожидании
Комментарии
Комментариев пока нет.