Saturday 28 August 2010

การติดตั้ง Munin และ Munin-node

Munin คือ web mornitoring สำหรับเอาไว้ดูสถานะของเครื่องserver และเครื่อข่าย ผ่าน ทาง http port 80

การติดตั้ง Munin และ Munin-node

  1. ดาวโหลด rpmforge
  2. # cd /root
    # wget http://syslogserver.googlecode.com/files/rpmforge-release-0.5.1-1.el5.rf.i386.rpm 
  3. ติดตั้ง package rpmforge
  4. # rpm -Uvh rpmforge-release-0.5.1-1.el5.rf.i386.rpm 
  5. ติดตั้ง munin และ munin-node
  6. # yum install munin munin-node -y
  7. แก้ไขให้ทำงานทุกครั้งที่บูทเครื่อง
  8. # chkconfig munin-node on 
  9. เริ่มการทำงาน
  10. # service munin-node start
  11. แก้ไขความเป็นเจ้าของ
  12. # chown -R munin:munin /var/www/munin 
    # ln -s /var/www/munin /var/www/html/munin
  13. เริ่มต้นการทำงาน apche ใหม่
  14. # service httpd restart && service crond restart 
  15. สร้าง plugins
  16. # cd /usr/share/munin/plugins
    # ln -s apache_* /etc/munin/plugins/
  17. เริ่มการทำงาน munin อีกครั้ง
  18. # service munin-node restart
หลังจากติดตั้ง แล้ว สามารถเข้าไปดูได้โดยพิมพ์ http://hostname/munin ที่ webbrowser

No comments:

Post a Comment