ส่วนบริการลูกค้า > คู่มือการใช้งาน > คู่มือการใช้บริการ VPS > การติดตั้ง โปรแกรม MRTG บน CentOS


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




 

ติดตั้ง 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?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read

Powered by WHMCompleteSolution

เปลี่ยนภาษา:
Back to Top

Follow us on Twitter, Facebook or Google+ to receive updates regarding network issues, discounts and more.
2013 © CMSHostThailand.com - All rights reserved.

ads