Munin คืออะไร และการติดตั้ง munin
Munin ก็คือ web mornitoring ตัวหนึ่ง ที่เอาไว้ดูสถานะของเครื่องเรา และเครื่อข่าย ผ่าน บน http port 80 ซึ่ง Monitoring นั้นก็มีหลายตัวให้เลือกใช้ไม่ว่าจะเป็น NagiOS MRTG Zenoss CACTI สามารถดูรายระเอียดได้มากน้อยแต่ต่างกัน สามารถเลือกได้ตรงตามความต้องการ แต่เจ้า munin นั้นจะมีรายละเอียดคือ Apache Disk Mysql Network Processes Sendmail Sensors Systemหลังจากติดตั้ง เสร็จรอสักพัก 5-10 นาทีลอง refesh ดู โดย http://localhost/munin
การติดตั้ง munin
จากที่ผมได้ทดสอบติดตั้งทดลองสาม OS นี้
CentOS
cd /root
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm rpm -Uvh rpmforge-release-0.3.6-1.el5.rf.i386.rpm
yum install munin munin-node
chkconfig --levels 235 munin-node on
/etc/init.d/munin-node start
chown -R munin:munin /var/www/munin
ln -s /var/www/munin/ /var/www/html/munin
service httpd restart && service crond restart
ln -s /usr/share/munin/plugins/apache_* /etc/munin/plugins/
/etc/init.d/munin-node restart
หลังจากติดตั้ง แล้ว สามารถเข้าไปดูได้โดย http://yourdomain.com/munin
Debian
# aptitude install munin
#sudo apt-get install muninส่วน package ต่อไปนี้ระบบจะจัดการติดตั้งให้เอง gawk, libio-multiplex-perl, libnet-cidr-perl, libnet-server-perl, libnet-snmp-perl, librrd4, librrds-perl, munin, munin-node,rrdtool
สำหรับ fedora ผมลอง fedora 9
สำหรับเครื่อง fedora นั้นผมเทสแบบ VirtualHost แบบ user dir (/home/*/html) เช่น /home/user1 /home/user2 แต่หลังจากติดตั้งแล้ว munin ก็จะยังคงอยู่ที่/var/www/html/munin ส่วน munin.conf จะอยู่ที่ etc/munun จึงจำเป็นต้องเซ็ต Alias เอา
yum -y install munin*
vi /etc/httpd/conf/httpd.conf
เพิ่ม Alias
Alias /munin "/var/www/html/munin"
<Directory "/var/www/html/munin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
#service httpd restart
# /etc/rc.d/init.d/munin-node start
#chkconfig munin-node on



1:29 AM
Computer !