075-845-490 | 097-165-2449
Line ID: @hostnakhonitech
🎉 โปรโมชั่นพิเศษ! ลด 10% สำหรับลูกค้าใหม่
NakhoniTech
075-845-490
support@NakhoniTech.com

การติดตั้ง โปรแกรม MRTG บน CentOS Print

  • 0

ติดตั้ง MRTG บน CentOS ที่ใช้ Directadmin เป็น CP

MRTG คือโปรแกรมทีทำงานอยู่บนโปรโตคอล 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 Thailand

syscontact admin

sysservices 79

rocommunity public 127.0.0.1

agentaddress 127.0.0.1

 

 

ตั้งค่าให้ snmpd ทำงานทุกครั้งเมื่อเปิดเครื่อง

#chkconfig snmpd on

*** ถ้าเจอข้อความแจ้ง "Error bash: chkconfig: command not found"

ให้แก้โดย

# rpm -qa |grep chkconfig

chkconfig-1.3.11.1-1

 

# whereis chkconfig

chkconfig: /sbin/chkconfig /usr/share/man/man8/chkconfig.8.gz

แล้วรันคำสั่งเดิมอีกครั้ง

 

Start snmpd

#/etc/init.d/snmpd restart


Was this answer helpful?

« Back