BMS-HOSxP Community

HOSxP => Linux => ข้อความที่เริ่มโดย: doramon ที่ ธันวาคม 14, 2007, 17:05:17 PM

หัวข้อ: CACTI Traffic Grapher ( MRTG )
เริ่มหัวข้อโดย: doramon ที่ ธันวาคม 14, 2007, 17:05:17 PM
โปรแกรม CACTI Traffic Grapher คืออะไร
----------------------------------------------------------------
CACTI Traffic Grapher หรือเรียกกันสั้นๆว่า “CACTI” เป็น Open Source Software ซึ่งทำหน้าที่ในการแสดงปริมาณข้อมูลทั้งขาเข้า/ออก ในเครือข่าย โดยจะแสดงผลออกมาในรูปแบบของกราฟ สามารถเข้าใจและเปรียบเทียบระดับการใช้งานได้ง่ายขึ้น อีกทั้งยังมีประสิทธิภาพเพิ่มขึ้นจาก กราฟในรูปแบบเดิมซึ่งใช้ โปรแกรม MRTG ด้วยความละเอียดของมุมมองด้านต่างๆที่มากขึ้น


ความแตกต่างระหว่าง MRTG กับ CACTI
---------------------------------------------------------------
โดยหลักการทำงานทั่วไป ทั้ง MRTG และ CACTI สามารถแสดงผลกราฟได้เหมือนกัน แต่ CACTI ใช้ RRDTool เป็นตัวทำงาน จึงสามารถเก็บข้อมูลให้อยู่ในรูปแบบ Database จึงทำให้สามารถย้อนกลับไปดูกราฟในวันและเวลาที่ต้องการ อีกทั้งยังสามารถ Zoom กราฟที่แสดงเพื่อรายละเอียดที่มากขึ้น รวมถึงรูปแบบการแสดงผลที่สวยงาม และมีประสิทธิภาพมากกว่า ซึ่งทั้งหมดนี้สามารถทำให้เข้าใจและนำข้อมูลสถิติต่างๆมาใช้ได้ง่ายขึ้น

สามารถไปเอาได้ที่ www.cacti.net หรือhttp://ftp.buu.ac.th/pub/opensource/cacti-install/

Cacti Installation

Dependencies
Cacti requires:

rrdtool:
http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/rrdtool-1.0.35.tar.gz

net-snmp (for SNMP support):
http://sourceforge.net/project/showfiles.php?group_id=12694ucd-snmp-4.2.3.tar.gz

PHP 4 or newer.
MySQL 3.23 or newer.

Installation Instructions

Extract the distribution tarball.

shell> tar xzvf cacti-version.tar.gz



Create the MySQL database:

shell> mysqladmin create cacti



Import the default cacti database:

shell> mysql cacti < cacti.sql



Optional: Create a MySQL username and password for cacti.

shell> mysql --user=root mysql
mysql> GRANT ALL ON cacti.* TO cactiuser@localhostIDENTIFIED BY 'somepassword';
mysql> flush privileges;






Edit include/config.php.

Specify the MySQL user, password and database for your cacti configuration.

$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cactiuser";
$database_password = "cacti";




Edit php.ini.

Make sure you have the following options set in your php.ini file:

register_globals = On
register_argc_argv = On



Set the appropriate permissions on cacti's directories for graph/log generation. You should execute these commands from inside cacti's directory to change the permissions.

shell> chown cactiuser rra/ log/



(Enter a valid username for cactiuser, this user will also be used in the next step for data gathering.)

Add a line to your /etc/crontab file similar to:

*/5 * * * * cactiuser php /var/www/html/cacti/cmd.php > /dev/null 2>&1




Replace cactiuser with the valid user specified in the previous step.
Replace /var/www/html/cacti/ with your full cacti path.

Point your web browser to:

http://your-server/cacti/
Log in the with a username/password of admin. You will be required to change this password immediatly. Make sure to fill in all of the path variables carefully and correctly on the following screen.
หัวข้อ: Re: CACTI Traffic Grapher ( MRTG )
เริ่มหัวข้อโดย: doramon ที่ ธันวาคม 14, 2007, 17:26:46 PM
เอกสาร
หัวข้อ: Re: CACTI Traffic Grapher ( MRTG )
เริ่มหัวข้อโดย: SrWooD ที่ ธันวาคม 15, 2007, 06:37:19 AM
ขอบคุณครับ อ.อ๊อด
หัวข้อ: Re: CACTI Traffic Grapher ( MRTG )
เริ่มหัวข้อโดย: armds ที่ ธันวาคม 15, 2007, 09:33:56 AM
ขอบคุณ  อ.อ๊อด  เดี่ยวจะลองมาใช้ดูครับ  เคยลงแล้วติดที่  ไม่มี  ไฟล์  sql  ให้มา ครับ
หัวข้อ: Re: CACTI Traffic Grapher ( MRTG )
เริ่มหัวข้อโดย: kwithaya ที่ ธันวาคม 15, 2007, 11:32:52 AM
เรียน อ.อ็อด

ในส่วนที่เป็น SNMP อุปกรณ์ เช่น switch ต้องรองรับ ทั้ง SNMP version 1,2 ด้วยหรือป่าว ครับ
หัวข้อ: Re: CACTI Traffic Grapher ( MRTG )
เริ่มหัวข้อโดย: doramon ที่ ธันวาคม 15, 2007, 13:44:48 PM
cisco  2600  ที่ผมใช้อยู่รองรับครับ
จริงๆๆ  แล้ว อุปกรณ์รุ่นใหม่  น่าจะรองรับหมดแล้วครับ
แต่ไม่ใช้ชื่อ SNMP ( สำหรับ windows , linux ) 

อุปกรณ์จะใช้อีกชื่อครับ แต่ทำงานเหมือนกัน  แต่เวลาเิปิดระบบนี้จะทำให้ อุปกรณ์ทำงานมากขึ้นครับ 

หัวข้อ: Re: CACTI Traffic Grapher ( MRTG )
เริ่มหัวข้อโดย: doramon ที่ ธันวาคม 15, 2007, 16:36:42 PM
ขอบคุณ  อ.อ๊อด  เดี่ยวจะลองมาใช้ดูครับ  เคยลงแล้วติดที่  ไม่มี  ไฟล์  sql  ให้มา ครับ

มันมี cacti.sql  มาด้วยอยู่แล้วครับ

ที่ผมชอบใช้มันเพราะว่าเป็น PHP +  MYSQL

หัวข้อ: Re: CACTI Traffic Grapher ( MRTG )
เริ่มหัวข้อโดย: - -" ที่ พฤศจิกายน 12, 2009, 22:25:57 PM
ช่วยหน่อย ค่ะ ๆๆ

ติดตั้งไม่ได้ อ่ะ ค่ะ ๆๆ

รัน หน้า เว็ป แล้ว ไม่ขึ้นอะไรเลย ค่ะ ๆๆ

ใคร รู้ ช่วย หน่อย นะ ค่ะ ๆๆ
หัวข้อ: Re: CACTI Traffic Grapher ( MRTG )
เริ่มหัวข้อโดย: nong_tha ที่ ธันวาคม 31, 2009, 14:50:08 PM
http://cactiusers.org/wiki/CactiEZ  ;D