Сервер мониторинга munin для debian8
Настройка сервера:
0) apt-get install -y apache2
0.1) apt-get install -y libcgi-fast-perl libapache2-mod-fcgid
0.2) /usr/sbin/apachectl -M | grep -i cgi
получим ответ fcgid_module (shared)
0.3) a2enmod fcgid
1) apt-get install -y munin
1.1) nano /etc/munin/munin.conf
htmldir /var/cache/munin/www
1.2) mkdir /var/www/munin
chown munin:munin /var/www/munin
1.3) nano /etc/munin/munin.conf
[localhost.localdomain]
address 127.0.0.1
use_node_name yes
2) nano /etc/apache2/sites-available/munin.conf
Alias /munin /var/cache/munin/www
Require all granted
Options FollowSymLinks SymLinksIfOwnerMatch
ScriptAlias /munin-cgi/munin-cgi-graph /usr/lib/munin/cgi/munin-cgi-graph
Require all granted
Options FollowSymLinks SymLinksIfOwnerMatch
SetHandler fcgid-script
SetHandler cgi-script
3) перезагрузка
systemctl restart munin-node
systemctl restart apache2
Настройка клиента:
0) apt-get update
0.1) apt-get install -y munin-node
0.2) nano /etc/munin/munin-node.conf
allow ^127.0.0.1$ - Добавляем ip с которому можно собирать статику
allow ^192\.168\.13\.161$ - Добавляем ip с которому можно собирать статику
allow ^123\.456\.78\.100$ - Добавляем ip с которому можно собирать статику
0.3) перезагружаем на клиенте munin-node
systemctl restart munin-node
1) Теперь необходимо на сервере munin добавить ip клиента.
nano /etc/munin/munin.conf
[MuninNode]
address node-ip-address
use_node_name yes
Настройка плагинов на munin-node:
Все работающие плагины находятся в /etc/munin/plugins. Все остальные плагины лежат в папке /usr/share/munin/plugins/. Нужные плагины добавляются созданием символической ссылки на него. пример: ln -s /usr/share/munin/plugins/nginx_memory /etc/munin/plugins/nginx_memory ln -s /usr/share/munin/plugins/nginx_status /etc/munin/plugins/nginx_status ln -s /usr/share/munin/plugins/nginx_traffic /etc/munin/plugins/nginx_traffic ln -s /usr/share/munin/plugins/nginx_request /etc/munin/plugins/nginx_request
Удаление плагина решается простым удалением ссылки на плагин:
rm /etc/munin/plugins/nginx_memory Так же возможны более тонкие настройки параметров установленных плагинов. Эти настройки редактируются в файле /etc/munin/plugin-conf.d/munin-node в поле соответствующему плагину.
Доп. информация:
_______________________________________ munin-node-configure --suggest _______________________________________ Доп. плагины apt-get install munin-plugins-extra _______________________________________ Troubleshooting Munin master: /var/log/munin/munin-update.log Munin node: /var/log/munin/munin-node.log
Удаление munin:
apt-get -y purge munin-node && apt-get -y remove munin-node && apt-get -y autoremove
Источники:
http://linuxguru.ru/monitoring/ustanovka-munin-v-debian-squeeze/ http://linux-ru.blogspot.ru/2007/02/munin.html https://habrahabr.ru/post/30494/ http://linuxguru.ru/administration/ispolzovanie-backports-v-debian-squeeze/ https://www.digitalocean.com/community/tutorials/how-to-install-the-munin-monitoring-tool-on-debian-8 - начальная установка https://sourceforge.net/projects/munin-nodewin32/files/munin-node-win32/Munin%20Node%20for%20Windows%20v1.5/ - munin-node for Windows http://proadminz.ru/monitoring-sostoyaniya-serverov-s-pomoshhyu-munin/ - хороший гайд на русском