การติดตั้ง โปรแกรม MRTG บน CentOS
การติดตั้ง โปรแกรม MRTG บน CentOSติดตั้ง MRTG บน CentOS ที่ใช้ Directadmin เป็น CPMRTG คือโปรแกรมทีทำงานอยู่บนโปรโตคอล SNMP ซึ่งเรา ติดตั้ง MRTG Server ไว้เพื่อคอยตรวจข้อมูล ที่ Request และ Respone ผ่าน HTTP ของจากรายการ สถิติของ Network แล้ว MRTG ยังสามารถรายงาน Memory, CPU Load, TCP Connections, Server load average ได้อีกด้วย วิธีการติดตั้งโปรแกรม MRTG บน CentOSในการใช้งาน MRTG เราต้อง snmpd ลงไปด้วยเพื่อไว้ตรวจจับการทำงานของ Networkวิธีการติดตั้ง snmpd กับ mrtg#yum -y install net-snmp net-snmp-utils mrtg แก้ไข config ของ snmpd#nano /etc/snmp/snmpd.confเพิ่มข้อความsyslocation Thailandsyscontact adminsysservices 79rocommunity public 127.0.0.1agentaddress 127.0.0.1 ตั้งค่าให้ snmpd ทำงานทุกครั้งเมื่อเปิดเครื่อง#chkconfig snmpd on*** ถ้าเจอข้อความแจ้ง "Error bash: chkconfig: command not found"ให้แก้โดย# rpm -qa |grep chkconfigchkconfig-1.3.11.1-1 # whereis chkconfigchkconfig: /sbin/chkconfig /usr/share/man/man8/chkconfig.8.gzแล้วรันคำสั่งเดิมอีกครั้ง Start snmpd#/etc/init.d/snmpd restart
หน้า:
[1]