A little something about you, the author. Nothing lengthy, just an overview.

Installazione e configurazione Munin su Centos/Redhat/Debian.

Autor admin

Munin è un ottimo strumento di monitoring che pemette attraverso un architettura Client/Server di tenere sotto controllo ogni aspetto dei vostri server (load average, memory usage, CPU usage, MySQL throughput, eth0 traffic, etc.) inoltre l’archiettura è espandibile attraverso una struttura a plugin, di seguito trovate le indicazioni per installare e configurare sia la versione server [necessita apache installato] che client.

munin

Qui trovate una demo live con munin in azione

Su un server debian e ubuntu potete provvedere all’installazione con un semplice
apt-get install munin munin-node per installare la versione client e server

procedete con

apt-get install munin-node per installare solo la versione server.
Invece sui server Centos/Redhat dovete installare dries come repository:

Aggingiamo prima l’autenticazione tramite gpg key (come root) :

rpm –import http://dries.ulyssis.org/rpm/RPM-GPG-KEY.dries.txt

nella cartella /etc/yum.repos.d/ create il file dries.repo e copiate all’interno il seguente contenuto :

[dries]
name=Extra Fedora rpms dries - $releasever - $basearch
baseurl=http://ftp.belnet.be/packages/dries.ulyssis.org/fedora/fc$releasever/$basearch/RPMS.dries/
ftp://ftp.belnet.be/packages/dries.ulyssis.org/fedora/fc$releasever/$basearch/RPMS.dries/
ftp://mirror.pacific.net.au/linux/freshrpms/dag/dries/fedora/fc$releasever/$basearch/RPMS.dries/
ftp://ftp.applios.net/pub/fedora/linux/releases/8/Everything/i386/os/Packages/imlib2-1.4.0-3.fc8.i386$
enabled=1
gpgcheck=1

stesso discorso fatto per apt-get vale per yum :
yum install munin-node per la versione client

yum install munin munin-node per installare sia la versione client che server

Sul server dovete aprire il file : vi /etc/munin/munin.conf

dbdir   /var/lib/muninhtmldir /var/www/www.example.com/web/monitoring

logdir  /var/log/munin

rundir  /var/run/munintmpldir /etc/munin/templates

[server1.example.com]

address 127.0.0.1

use_node_name yes

Ed inserire l’indirizzo ip e il nome host di tutti i client con la variabile htmldir invece di definisce

il path dove verrano creati i file html che generano le statistiche.

Sui Cliente invece appena terminata l’installazione vi consigliamo di lanciare il comando:

munin-node-configure

per permettere a munin di configurarsi e rilevare i plugin disponibili.Poi modificare il file vi /etc/munin/munin-node.conf

che si presenterà cosi :



# Example config-file for munin-node#log_level 4

log_file /var/log/munin/munin-node.log

port 4949

pid_file /var/run/munin/munin-node.pid

background 1

setseid 1

# Which port to bind to;

host *

user root

group root

setsid yes

# Regexps for files to ignore

ignore_file ~$

ignore_file .bak$

ignore_file %$

ignore_file .dpkg-(tmp|new|old|dist)$

ignore_file .rpm(save|new)$

# Set this if the client doesn't report the correct hostname when

# telnetting to localhost, port 4949

#

#host_name odi.kotnet.ulyssis.org

# A list of addresses that are allowed to connect.  This must be a

# regular expression, due to brain damage in Net::Server, which

# doesn't understand CIDR-style network notation.  You may repeat

# the allow line as many times as you'd like

allow ^127.0.0.1$

in questo file dovete semplicemente aggiungere una linea con

allow ip_server

dove ip_server è l’ip del vostro server munin.
concludete con un restart del client :
/etc/init.d/munin-node restart

Adesso collegatevi via web al vostro server Munin è avrete accesso a tutte le statistiche che vi congliamo di limitare
con un file .htaccess.

ed il gioco è fatto!!

CommentComment

You must be logged in to post a comment.