Wụnye Munin (Nleba anya netwọkụ) na RHEL, CentOS & Fedora
Munin (Ngwaọrụ nlekota netwọkụ) bụ ngwa nleba anya netwọkụ na-emepe emepe nke edere na Perl nke na-egosi ojiji netwọkụ nke sava na ọrụ n'ụdị eserese site na iji RRDtool. Site n'enyemaka nke Munin ị nwere ike nyochaa arụmọrụ nke sistemụ gị, netwọkụ, SANS na ngwa gị.
O nwere ihe owuwu nna ukwu/ọnụ ebe nna ukwu na-ejikọ ọnụ na ọnụ ọ bụla mgbe niile wee dọpụta data na ha. Ọ na-eji RRDtool banye wee mepụta eserese emelitere.
N'isiokwu a, anyị ga-ejegharị site na gị usoro nhazi Munin ( Network Monitoring Tool ) na Munin Node na RHEL, CentOS na Fedora usoro site na iji gburugburu ebe obibi.
Munin Server - hostname: munin.linux-console.net and IP Address: 192.168.103 Munin Client - hostname: munin-node.linux-console.net and IP Address: 192.168.15
Ịwụnye Munin na RHEL, CentOS & Fedora
Ịwụnye Munin dị nnọọ mfe, dị nnọọ na-eso m n'okpuru nzọụkwụ site-nzọụkwụ iwu iji wụnye ya na gị na ihe nkesa.
Enwere ike itinye Munin site na iji Fedora's EPEL repository n'okpuru RHEL 7.x/6.x/5.x na CentOS 7.x/6.x/5.x.
Naanị, mee iwu ndị a dị ka onye ọrụ mgbọrọgwụ iji wụnye ma mee ka Epel repository iji wget.
------------------ RHEL/CentOS 7 - 64-Bit ------------------ # wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-9.noarch.rpm # rpm -ivh epel-release-7-9.noarch.rpm
------------------ RHEL/CentOS 6 - 32-Bit ------------------ # wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm # rpm -ivh epel-release-6-8.noarch.rpm ------------------ RHEL/CentOS 6 - 64-Bit ------------------ # http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm # rpm -ivh epel-release-6-8.noarch.rpm
------------------ RHEL/CentOS 5 - 32-Bit ------------------ # wget http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm # rpm -ivh epel-release-5-4.noarch.rpm ------------------ RHEL/CentOS 5 - 64-Bit ------------------ # wget http://download.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm # rpm -ivh epel-release-5-4.noarch.rpm
Rịba ama: Ndị ọrụ Fedora adịghị mkpa ịwụnye ebe nchekwa EPEL, n'ihi na a na-etinye munin na Fedora ma nwee ike tinye ya site na iji yum ma ọ bụ dnf ngwugwu njikwa.
Na-esote, mee mmelite sistemu iji jide n'aka na etinyere nchekwa data ngwugwu EPEL tupu anyị etinye Munin.
------------------ On RHEL and CentOS Only ------------------ # yum -y update
Munin chọrọ sava webụ na-arụ ọrụ dị ka Apache ma ọ bụ Nginx iji gosipụta faịlụ ndekọ ya. Anyị ga-etinye sava weebụ Apache iji nye eserese Munin ebe a.
------------------ On RHEL, CentOS and Fedora ------------------ # yum install httpd ------------------ On Fedora 22+ Releases ------------------ # dnf install httpd
Ozugbo Apache arụnyere, malite ma mee ka ọrụ ahụ malite na akpaghị aka n'oge buut sistemụ.
------------------ On RHEL, CentOS and Fedora ------------------ # service httpd start # chkconfig --level 35 httpd on ------------------ On RHEL/CentOS 7 and Fedora 22+ ------------------ # systemctl enable httpd # systemctl start httpd
Ugbu a ọ bụ oge ịwụnye Munin na Munin-Node dị ka egosiri.
------------------ On RHEL, CentOS and Fedora ------------------ # yum -y install munin munin-node ------------------ On Fedora 22+ Releases ------------------ # dnf -y install munin munin-node
Site na ndabara nwụnye n'elu na-emepụta akwụkwọ ndekọ aha.
- /etc/munin/munin.conf : Munin master nhazi faịlụ.
- /etc/cron.d/munin : Munin cron faịlụ.
- /etc/httpd/conf.d/munin.conf: faịlụ nhazi nke Munin Apache.
- /var/log/munin: akwụkwọ ndekọ aha Munin.
- /var/www/html/munin: akwụkwọ ndekọ aha webụ.
- /etc/munin/munin-node.conf : Munin Node master nhazi faịlụ.
- /etc/munin/plugins.conf : Munin plugins nhazi faịlụ.
Nke a bụ nzọụkwụ bụ nhọrọ na ọdabara ma ọ bụrụ na ịchọrọ iji munin.linux-console.net
kama localhost
na mmepụta HTML dị ka egosiri:
Mepee faịlụ nhazi /etc/munin/munin.conf
wee mee mgbanwe dị ka atụpụtara ma echefukwala iji aha sava gị dochie munin.linux-console.net
.
# a simple host tree [munin.linux-console.net] address 127.0.0.1 use_node_name yes [...]
Okwuntughe na-esote chebe ọnụ ọgụgụ Munin na aha njirimara na paswọọdụ site na iji Apache modul auth dị ka egosiri:
# htpasswd /etc/munin/munin-htpasswd admin
Ọzọ malitegharịa Munin ma mee ka ọ malite n'oge buut na-akpaghị aka.
------------------ On RHEL, CentOS and Fedora ------------------ # service munin-node start # chkconfig --level 35 munin-node on ------------------ On RHEL/CentOS 7 and Fedora 22+ ------------------ # systemctl enable munin-node # systemctl start munin-node
Chere nkeji iri atọ ka Munin wepụta eserese wee gosi ya. Iji hụ mmepụta eserese nke mbụ, mepee ihe nchọgharị gị wee gaa na http://munin.linux-console.net/munin
wee tinye nzere nbanye.
Ọ bụrụ na ọ kpataghị aha njirimara na paswọọdụ, mepee /etc/httpd/conf.d/munin.conf
wee gbanwee aha njirimara site na Munin
ka ọ bụrụ admin ma malitegharịa Apache.
AuthUserFile /etc/munin/munin-htpasswd AuthName "admin" AuthType Basic require valid-user
Banye n'ime igwe ahịa Linux wee wụnye naanị ngwungwu munin-node
dị ka egosiri:
# yum install munin-node # dnf install munin-node [On Fedora 22+ versions] # apt-get install munin-node [On Debian based systems]
Ugbu a mepee /etc/munin/munin-node.conf
faịlụ nhazi wee gbakwunye adreesị IP nke sava munin iji mee ka ị nweta data n'aka onye ahịa.
# vi /etc/munin/munin-node.conf
Tinye adreesị IP nke Munin sever n'ụdị a dị ka egosiri:
# A list of addresses that are allowed to connect. allow ^127\.0\.0\.1$ allow ^::1$ allow ^192\.168\.0\.103$
N'ikpeazụ, malitegharịa onye ahịa munin:
------------------ On RHEL, CentOS and Fedora ------------------ # service munin-node start # chkconfig --level 35 munin-node on ------------------ On RHEL/CentOS 7 and Fedora 22+ ------------------ # systemctl enable munin-node # systemctl start munin-node
Mepee faịlụ nhazi /etc/munin/munin.conf
wee tinye ngalaba ọhụrụ a nke ọnụ ahịa Linux dịpụrụ adịpụ yana aha sava yana adreesị IP dị ka egosiri:
# a simple host tree [munin.linux-console.net] address 127.0.0.1 use_node_name yes [munin-node.linux-console.net] address 192.168.0.15 use_node_name yes
Na-esote, malitegharịa munin nkesa wee gaa na ibe http://munin.linux-console.net/munin
ka ịhụ eserese ọnụ ahịa ọhụrụ na-arụ ọrụ.
Maka ozi ndị ọzọ na ojiji biko gaa na http://munin-monitoring.org/wiki/Documentation.