ก ก A MONITORING SYSTEM FOR HIGH STABILITY REQUIRED COMPUTER NETWORK IN HDD INDUSTRY



Similar documents
Using MRTG to Monitor I/O

1. DNS Primary zone DNS. user name : train password : p@ssw0rd (Computer name) clientxx (xx ก ก ). 27

คณะว ศวกรรมศาสตร มหาว ทยาล ยเกษตรศาสตร เร อง พ ฒนาเว บไซต โครงการเป ดสอนปร ญญาตร นานาชาต โดย นายอ ครพงษ กาญจนอาพล พ.ศ.

Multi-Router Traffic Grapher (MRTG)

Lesson 7 - Website Administration

There are numerous ways to access monitors:

Pemrograman Web. 1. Pengenalan Web Server. M. Udin Harun Al Rasyid, S.Kom, Ph.D

Volume SYSLOG JUNCTION. User s Guide. User s Guide


SysPatrol - Server Security Monitor

Internet Technologies_1. Doc. Ing. František Huňka, CSc.

May PZ-0502A-WWEN Prepared by: Internet & E-Commerce Solutions

42goISP Documentation

Web Hosting Features. Small Office Premium. Small Office. Basic Premium. Enterprise. Basic. General

Short notes on webpage programming languages

End User Guide The guide for /ftp account owner

Knowledge is Power. He who gets wisdom loves his own soul; he who cherishes understanding prospers. (Proverbs 19:8)

Monitoring Cisco IOS Firewall Inspection Activity with Multi- Router Traffic Grapher (MRTG)

ISPConfig Documentation

About this Guide Web Hosting...6 Concepts... 6

Installing The SysAidTM Server Locally

WLAN TRAFFIC GRAPHING APPLICATION USING SIMPLE NETWORK MANAGEMENT PROTOCOL *

Connecting with Computer Science, 2e. Chapter 5 The Internet

Lecture 2. Internet: who talks with whom?

This watermark does not appear in the registered version - SNMP and OpenNMS. Part 1 SNMP.

PHP+MYSQL, EASYPHP INSTALLATION GUIDE

TELE 301 Network Management

ก ก ก ก " # $ " % & '( ก )'ก* + ก +,, ) ก ) / ) ก + " # # 0 1ก )'ก* 2550

UQC103S1 UFCE Systems Development. uqc103s/ufce PHP-mySQL 1

The 7th National Conference on Computing and Information Technology. A Web-based Single Sign-on (SSO) using SAML 2.0

Management, Logging and Troubleshooting

MySQL quick start guide

Lets Get Started In this tutorial, I will be migrating a Drupal CMS using FTP. The steps should be relatively similar for any other website.

Witango Application Server 6. Installation Guide for OS X

Application Monitoring using SNMPc 7.0

ค ม อการใช โปรแกรม Arcview 3.3 สาหร บงานด านป องก นร กษาป า

DeskNow. Ventia Pty. Ltd. Advanced setup. Version : 3.2 Date : 4 January 2007

Tango Hostway s Reseller Platform

Chapter 1 Programming Languages for Web Applications

OpenPro ERP Software Installation Guide Talbert Ave Suite 200 Fountain Valley, CA USA Phone Fax

Firewall VPN Router. Quick Installation Guide M73-APO09-380

Technical Note SNMP Interface

Remote Connectivity to XV, XP and epro units running Visual Designer

SaskTel Web Hosting Feature Overview

Welcome to ECBuzz.com! Please go through this document carefully to make the experience of owning and using a website an enjoyable one.

Configuring SNMP Cisco and/or its affiliates. All rights reserved. 1

WebSpy Vantage Ultimate 2.2 Web Module Administrators Guide

Tracking Network Changes Using Change Audit

INTRODUCTION TO WEB TECHNOLOGY

CELLTRAQ Battery Monitoring Software

Network Configuration Settings

How to use ArGoSoft Mail Server.NET Freeware

Quick Reference Guide: Shared Hosting

How To Set Up Foglight Nms For A Proof Of Concept

Enterprise Manager. Version 6.2. Installation Guide

Welcome To Your New Web Hosting Account!

Newton Linux User Group Graphing SNMP with Cacti and RRDtool

How To Monitor A Network With Snmp (Network Monitoring)

Network Monitoring. By: Delbert Thompson Network & Network Security Supervisor Basin Electric Power Cooperative

DiskPulse DISK CHANGE MONITOR

A Reseller s Guide to Using Helm

Web Site Content Management Server. Installation Guide Version 4.1 Build 0

ActiveXperts Network Monitor. White Paper

Basic Internet programming Formalities. Hands-on tools for internet programming

WEBCONNECT INSTALLATION GUIDE. Version 1.96

DIPLOMA IN WEBDEVELOPMENT

NMS300 Network Management System

Service Level Agreement

SonicWALL Global Management System Installation Guide Entry Edition. Version 2.1

RPM Utility Software. User s Manual

Security Correlation Server Quick Installation Guide

Hostopia Web Hosting - Getting Started

TANDBERG MANAGEMENT SUITE 10.0

การใช ฮาร ดแวร และซอฟต แวร ให เหมาะสมก บงาน

W3Perl A free logfile analyzer

MRTG used for Basic Server Monitoring

Installing Moodle on a Windows x64 Environment

Web Pages. Static Web Pages SHTML

Server Management Tool (SMT) 6.0 For Linux Web Hosting Customers User Manual

Healthstone Monitoring System

SETTING UP AND RUNNING A WEB SITE ON YOUR LENOVO STORAGE DEVICE WORKING WITH WEB SERVER TOOLS

OpenPro ERP Software Installation Guide REDHAT LINUX

Asia Web Services Ltd. (vpshosting.com.hk)

How to Configure edgebox as a Web Server

QUESTIONS AND ANSWERS

MySQL Quick Start Guide

Multi-Homing Dual WAN Firewall Router

Using ODBC with MDaemon 6.5

ค ม อการใช งาน UP Live Mail

Efficiency of Web Based SAX XML Distributed Processing

Transcription:

ก ก ก ก A MONITORING SYSTEM FOR HIGH STABILITY REQUIRED COMPUTER NETWORK IN HDD INDUSTRY ก ก ก ก ก ก ก ก ก ก ก 2551

ก ก ก ก A MONITORING SYSTEM FOR HIGH STABILITY REQUIRED COMPUTER NETWORK IN HDD INDUSTRY ก ก ก ก ก ก ก ก ก ก ก 2551

A MONITORING SYSTEM FOR HIGH STABILITY REQUIRED COMPUTER NETWORK IN HDD INDUSTRY WATSACHON ROJSATTARAT SITA KANGWANPANICH ACHARAWADEE KONGPAN A THESIS SUBMITTED IN PARTIAL FULFILLMENT OF REQUIREMENT FOR THE DEGREE OF BACHELOR OF ENGINEERING DEPARTMENT OF ELECTRICAL ENGINEERING BURAPHA UNIVERSITY 2008

ก ก ก ก ก ก ก. ก ก 71 ก ก 2551 ก ก ก ก ก ก ก ก... ก ก ( )...ก ก ( ก )... ก (. ก ก )... ก (. ก ก )

ii ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก 4 ก ก ก ก MRTG ก ก ก ก ก ก ก กก ก ก ก ก : ก MRTG ก

iii Abstract In hard disk drive industry computers are used for controlling and reporting machine status through computer gateways. In some situations when these computers are down, the status report will be interrupted and hence cause serious troubles in the manufacturing efficiency. The objective of this project is to monitor status of gateway computer. The system will show status of gateway and alert the engineers in charge when problems occur. As such, the engineer will be able to solve the problem in time. The project is divided into 4 main parts. First, status of gateway is monitored by using MRTG program. The second part is to collect and record status data into database using a program coded in Java. The third part is to analyze data using program coded in PHP and java script programming languages. The forth part is to show status of gateway using HTML format. The results show that the system can monitor status of gateway and when gateway down, the system can send E-mail to engineer Keywords: Gateway, MRTG, status of gateway

iv ก ก ก ก ก. ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก

.. Abstract... ก ก ก............... ii iii iv v vii viii 1..... 1 1.1 กก.... 1 1.2... 2 1.3 ก... 2 1.4 ก...... 2 1.4. 4 2 ก.. 5 2.1 Multi Router Traffic Grapher (MRTG)...... 5 2.1.1 กก MRTG.... 6 2.2 Simple Network Management Protocol (SNMP). 6 2.3 (Perl) 8 2.4 (PHP)... 9 2.4.1 PHP. 9 2.5 ก ก MySQL.. 10 2.5.1 ก ก MySQL. 10 2.5.2... 11 2.5.3 ก ก... 12 2.6 phpmyadmin.. 12 2.6.1 phpmyadmin 13 2.7 (Mail Server)... 13 2.8 (JavaScript)... 14 2.8.1 ก ก JavaScript... 14

vi ( ) 2.9 (java) 15 2.10 (HTML)... 15 2.10.1 HTML 15 2.10.2 HTML... 15 2.10.3 HTML. 16 3 กก ก ก....... 17 3.1 กก....... 17 3.2 ก ก.... 17 3.2.1 ก ก... 17 3.2.2 ก ก... 18 4 ก....... 28 4.1 ก ก MRTG ก ก... 28 4.2 ก ก MySQL ก ก ก... 32 4.3 ก ก... 35 4.4 ก ก... 38 4.5 ก ก ก... 40 5 ก..... 41 5.1......... 41 5.2 ก....... 41 5.3... 41 ก... 42 ก 43 ก ก ก ก. 44 ก ก ก ก 46... ก.. 67

vii 2.1 ก ก ก MRTG...... 6 2.2 ก ก... 7 2.3 ก SNMP 8 2.4 ก ก phpmyadmin... 13 3.1 ก ก... 18 3.2 ก ก ก... 18 3.3 ก ก ก... 19 3.4 ก ก... 21 3.5 ก ก... 23 3.6 ก... 24 3.7 ก ก... 25 3.8 ก... 26 4.1 ก ก MRTG ก Active Perl... 29 4.2 ก ก MRTG html... 29 4.3 กก ก... 30 4.4 ก index file... 30 4.5 ก... 31 4.6 ก ก ก 31 ก ก.. 4.7.bat... 31 4.8 Startup... 32 4.9 mrtg_status mrtg2.. 34 4.10 mrtg2 ก ก 17.. 35 4.11 ก mrtg2 17 36 4.12 ก ก... 36 4.13 ก ก ก (Down).. 37 4.14 ก fon@localhost.. 37 4.15 ก.. 38 4.16 ก ก... 38 4.17 ก ก ก... 39

viii 1.1 ก.. 3 2.1 HTML... 16 3.1 ก.. 19 3.2... 27 4.1 mrtg2...... 33

1 1 1.1 กก ก ก (Servo Writing) ก ก ก ก ก ก ก ก (Servo Pattern) ก (Disk media) ก ก ก ก (Self Servo Track Writer : SSW) ก (Status) ก ก ก ก ก ก กก ก ก ก ก ก ก (Gateway) ก ก ก ก กก 100 ก กก 40 ก ก ก ก ก ก ก ก ก (Monitor) ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก (Operating system) ก ก ก ก ก ก ก ก ก ก ก ก

2 1.2 1.2.1 ก ก ก ก ก ก 1.2.2 ก ก ก ก ก กก 1.2.3 ก ก ก 1.2.4 ก ก 1.3 1.3.1 ก ก 1.3.2 ก ก ก 1.3.3 ก 2003 (Windows 2003 Server) ก ก 1.3.4 ก ก ก ก ก 1.4 ก ก ก 1. ก ก 2. ก ก ก ก Network Monitoring ก 3. ก 4. ก ก ก 5. ก ก 6. ก ก 7. ก 8. ก

1 3 June 2008 1 July 2008 August 2008 September 2008 October 2008 November 2008 December 2008 January 2009 February 2009 March 2009 2 3 4 5 6 7 8 1.1 ก

1.5 1.5.1 1.5.2 ก 1.5.3 ก ก ก 1.5.4 ก 4

5 2 ก ก ก ก ก ก ก กก ก ก ก ก ก ก ก ก 2.1 กก (Multi Router Traffic Grapher: MRTG) 2.2 ก (Simple Network Management Protocol: SNMP) 2.3 (Perl) 2.4 (PHP) 2.5 ก ก (MySQL) 2.6 (phpmyadmin) 2.7 (Mail Server) 2.8 (JavaScript) 2.9 (Java) 2.10 (HTML) 2.1 กก (Multi Router Traffic Grapher : MRTG) ก MRTG ก Tobi Oetiker ก ก ก ก ก ก MRTG ก / ก (Unix/Linux) (Netware) ก MRTG ก (Log file) ก ก MRTG (Perl Script) SNMP ก (Counter) ก ก ก ก ก ก png (Web page) ก (Web browser) ก ก ก ก ก MRTG ก ก ก

6 2.1.1 กก MRTG MRTG SNMP ก (Request) ก ก ก SNMP ( SNMPenabled) ก ก SNMP ก MRTG ก ก ก (Directory) ก (Web Server) ก ก MRTG HTTP ก ก ก 2.1 ก ก ก MRTG 2.2 ก (Simple Network Management Protocol: SNMP) Simple Network Management Protocol (SNMP) (protocol) ก ก ก (Router) ก ก ก UPS ก ก ก SNMP ก (Network Management Station: NMS) ก (Agent) ก ก ก ก NMS ก NMS ก ก กก ก ก ก ก ก ก ก ก ก ก ก ก (Software) ก ก ก ก ก ก ก ก

7 ก ก ก ก ก ก ก ก ก ก (Management Information Base: MIB) ก ก ก MIB ก ก ก ก ก SNMP ก ก ก ก ก ก ก OID (Object Identifier) ก ก ก ก ก 2.2 ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก

8 ก ก ก ก ก ก ก ก ก ก ก 2.3 ก SNMP ก ก ก (Protocol Engine) MIB ก ก NMS ก MIB ก ก ก ก ก NMS ก Agent ก ก ก SNMP version ก 5 1) get-request ก ก ก 2) get-next-request ก ก 3) get-response ก 4) set-request 5) trap ก ก ก ก SNMP 161 ก 1 4 162 5 2.3 (Perl) Perl ก Practical Extraction and Report Language ก ก Larry Wall ก ก ก

9 ก ก ก CGI (Common Gateway Interface) DOS, Windows95,98,NT Unix ก ก.pl.cgi Compile ก ก ก ก ก ก ก 2.4 (PHP) PHP ก "Personal Home Page Tool" Server side script ก ก ก ก ก ก HTML ก ก (Website) PHP ก scripting language ก ก (script) ก JavaScript Perl ก PHP ก ก PHP ก ก ก ก HTML ก ก ก PHP ก server-side HTML-embedded scripting language ก Dynamic HTML ก ก PHP ก CGI Apache Module ก PHP PHP Apache ก ก CGI CGI PHP ก ก Apache ก ก ก PHP ก ก PHP Apache กก 2.4.1 PHP - PHP ก Compile Execute - PHP Web Server UNIX Macintosh Windows ก Cross Platform - PHP ก www.php.net (Source Code) ก กก 1 MB - PHP ก ก ก ก - ก ก ISAPI NASPI

10 - PHP Perl ก C - PHP dbase DBM ODBC MySQL Oracle ก ก - PHP ก ก ก ก - PHP ก ก ก POP3 INMP SNMP Ftp Network Socket - ก XML - ก - ก ก 2.5 ก ก MySQL ก ก (MySQL AB) ก (SQL = Structured Query Language) ก ก ก ก ก ก ก ก ก (Server-Side Script) PHP ASP.net JSP ก ก ก (Application Program) VisualBasic.net Java C+ ก ก ก ก ก ก ก 2.5.1 ก ก MySQL 1. MySQL ก (Database Management System: DBMS) ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก MySQL ก 2. MySQL ก relational Relational ก ก ก ก ก ก ก ก ก ก SQL ก MySQL ก 3. MySQL ก

11 MySQL ก ก ก (Download) ก MySQL ก 2.5.2 1. ก ก ก ก 2. ก ก (Data Inconsistency) ก ก ก ก 2 กก ก ก ก ก ก ก ก ก ก ก ก (Employee) ก ก (Saleman) 3. ก ก ก (Data Security) ก ก ก ก ก DBMS (Data Base Management System) ก ก 4. ก ก ก ก ก ก ก ก 5. ก ก ก ก ก ก ก ก ก ก ก (Privacy) ก ก (security) ก ก ก ก ก ก 6. ก ก ก ก ก ก ก 7. ก ก ก ก ก ก ก ก ก ก ก ก ก ก 8. ก ก ก ก 9. ก ก กก ก

12 ก ก ก ก ก ก ก ก ก ก ก 2.5.3 ก ก (Field Data item Attribute) ก ก (Record Etry) ก กก ก (File Table) ก ก (Table) ก ก (Primary Key) ก ก ก ก ก Pk (Secondary Key) ก Sk ก (Foreign key) ก Fk (Entity) ก ก ก ก ก ก ก (Atribute) 2.6 (phpmyadmin) phpmyadmin ก ก MySQL ก ก ก ก ก ก ก ก ก ก

13 2.4 ก ก phpmyadmin 2.6.1 phpmyadmin - ก (Freeware) - ก - ก ก - ก - ก ก ก -.txt - ก multiple servers - export import csv - กก 10 ( ) 2.7 (Mail Server) ก ก ก ก (Attach file) ก ก Address book กก hotmail.com thaimail.com

14 SMTP server (Simple Mail Transfer Protocol Server) ก E-mail ก SMTP ก ก IP ก ก SMTP ก ก SMTP ก ก ก ก ก ก SMTP ก ก ก Reply ก Open Reply ก Reply ก ก MOBI+ ก ก SMTP Bomb Mail Mail Box ก SMTP ก POP server (Post Office Protocol) Server ก ก ก ก ก PDA Mail thaimail.com Web-based mail ก Outlook PDA 2.8 (JavaScript) ก ก ก ก ก ก ก - ก ก ก ก ก ก ก ก (Netscape Communications Corporation) Live Script ก ก Netscape Navigator2.0 ก Live Wire ก ก Live Script 2538 JavaScript 2.8.1 ก ก JavaScript ก ก (Object Oriented Programming) ก ก ก ก HTML ก HTML ก ก 1. Navigator JavaScript Client-Side JavaScript ก ( ) ก

15 2. Livewire JavaScript Server-Side JavaScript ก ( ก ก ก ) ก Livewire 2.9 (Java) (Java programming language) ก Sun Micro System ก ก ก ก JVM (Java Virtual Machine) ก ก Open Source ก ก ก 2.10 (HTML) 2.10.1 HTML HTML ก Hyper Text Markup Language (, 2545) ก ก ก ก ก ก HTML ก ก ก HTML ก ก (Tag) ก < > </ > ก ก HTML ก ก ก HTML Text editor Notepad Microsoft Windows EditPlus ก ก ก ก FrontPage Dreamweaver ก HTML 2.10.2 HTML HTML ก 2 ก ก HTML

16 <HTML> <HEAD> <TITLE> </TITLE> </HEAD> <BODY> ก... </BODY> </HTML> 2.10.3 HTML HTML ก ก ก ก ก ก ก ก 2.1 <HTML> </HTML> ก HTML Begin End <HEAD> </HEAD> ก ก <TITLE> <TITLE> </TITLE> ก ก <BODY> </BODY> ก <BODY> </BODY> ก ก ก ก ก 2.1 HTML

17 3 กก ก ก 3.1 กก กก กก ก ก Simple Network Management Protocol (SNMP) ก ก ก ก ก (MRTG) ก 4 ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก (Update) ก ก 5 ก ก 3.2 ก ก 3.2.1 ก ก ก ก 4 ก 1. ก ก ก ก MRTG 2. ก ก ก 3. ก ก 4. ก ก

18 3.1 ก ก 1 ก ก ก 3.2 ก ก ก ก ก ก ก MRTG ก ก ก ก ก MRTG ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก MRTG ก ก ก ก

19 SNMP ก ก SNMP ก MRTG ก (Log File) ก ก ก ก ก ก ก 2 ก ก ก 3.3 ก ก ก ก MySQL ก กก ก ก MRTG 4 ก ก ก ก ก ก ID Name CPU time CPU in CPU out HDD time HDD in HDD out TRAF time TRAF in TRAF out MEM Time MEM in MEM out 3.1 ก ก ก ก ก ก ก 5 ก ก ก MRTG ก ก ก ก ก ก ก ก (FileInput.java) ก

20 1 ก ก ( ก ก 17 ) String name[] = new String[17]; String data[][] = new String[17][12]; String type[] = {"cpu", "disk", "traf", "mem"}; DecimalFormat d = new DecimalFormat("00"); 2 ก ssw25xx.log name[i] = "ssw25" + d.format(i); File file = new File("C:\\AppServ\\www\\mrtg2\\" + name[i] + "-" + type[j] + ".log"); 3 ก ก Time stamp ก ก MRTG ก Time stamp ก ก date = dis.readline(); Locale.US); String field[] = date.split(" "); Calendar c = Calendar.getInstance(); c.settimeinmillis(long.parselong(field[0]) * 1000L); SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss", field[0] = df.format(c.gettime()); data[i][j * 3] = field[0]; data[i][j * 3 + 1] = field[1]; data[i][j * 3 + 2] = field[2];

21 4 mrtg2 String servername = "localhost"; String mydatabase = "mrtg2"; String url = "jdbc:mysql://" + servername + "/" + mydatabase; // a JDBC url String username = "root"; String password = "root"; connection = DriverManager.getConnection(url, username, password); 5 ก mrtg_status String sql = "insert into mrtg_status(name,cpu_time,cpu_in,cpu_out,hdd_time,hdd_in,hdd_out,traf_time,traf_in,t raf_out,mem_time,mem_in,mem_out) values(?,?,?,?,?,?,?,?,?,?,?,?,?)"; 3 ก ก 3.4 ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก (connectdb2.php) ก 1 mrtg2 $con = mysql_connect("localhost","root","root"); mysql_select_db("mrtg2", $con);

22 2 ก 17 ก ก ก 17 $result = mysql_query("select * FROM mrtg_status order by id DESC limit 0,17"); ก ก ก ก ก ก ก ก ก 1. ก ก 50 2. ก กก 50 ก ก 80 3. ก กก 80 ก -1 ก ก ก ก ก index.php ก if ((h[3] > 80) (h[3] == -1)){ td.setattribute("background", "appserv/label2.gif"); // red }else if ((h[3] > 50)&&(h[3] <= 80)){ td.setattribute("background", "appserv/label4.gif"); // yellow }else if (h[3] <= 50){ } td.setattribute("background", "appserv/label1.gif"); // green

23 3.5 ก ก ก ก ArGoSoft Mail Server ก ก ก ก ก ก ก ก PHP, ASP ASP.NET ก ก ก ก 2 ก ก ก กก 1. ก ก ก กก 80 ก -1 ก กก 80 ก -1 2. ก ก ก ก ก ก index.php ก

24 1 ก ก ก if (((h[3] > 80) (h[3] == -1))&&((tablestatus[i] > 80) (tablestatus[i] == -1))){ if(sendmailstatus[i]!= 200){ sendmail(h[1],h[3]); sendmailstatus[i]=200;// set status send mail } } 2 ก ก function sendmail(infomation,cpu){ } createxmlhttprequest(); xmlhttp.open("get","sendmail.php?infomation="+infomation+"&cpu="+cpu,true); xmlhttp.onreadystatechange = function() {compleas(infomation); } ; xmlhttp.send(null); 3.6 ก

25 4 ก ก 3.7 ก ก ก ก ก ก 2 ก ก ก ก ก 1. ก ก ก 3 - Normal - Half loaded - Down 2. ก ก ก ก ก ก ก ก ก ก 4 ก ก ก ก ก ก ก ก ก ก MRTG ก

26 3.8 ก 3.2.2 ก ก - ก 1 ก ก 16-1 ก ก 1 ก ก - ก ก ก - ก 4 ก

3.2 27

28 4 ก ก ก 4 4.1 ก ก MRTG ก ก 4.2 ก ก MySQL ก ก ก 4.3 ก ก 4.4 ก ก 4.5 ก ก ก 4.1 ก ก MRTG ก ก 4.1.1 ก ก MRTG ก ก ก ก ก ก ก ก ก ก ก ก MRTG SNMP ก ก ก SNMP 4.1.2 ก - ก MRTG ก - ก MRTG ก ก ก ก - ก MRTG ก - ก MRTG ก ก ก ก - ก ก MRTG Start up

29 4.1.3 ก - ก MRTG ก ก ก ก ก ก 4.1 ก ก MRTG ก Active Perl 4.2 ก ก MRTG html

30 - ก ก perl mrtg mrtg.cfg index.html 4.3 กก ก 4.4 ก index file

31 4.5 ก 4.6 ก ก ก ก ก - ก MRTG Start up ก MRTG 4.7.bat

32 4.8 Startup 4.2 ก ก MySQL ก ก 4.2.1 - ก ก ก - ก ก ก MRTG ก - ก ก ก MRTG ก 5 4.2.2 ก - ก mrtg2 mrtg_status ก ก 14 - ID ก - Name ก ก - CPU_time ก ก - CPU_in ก ก - CPU_out ก ก ก - HDD_time ก ก ก - HDD_in ก ก ก - HDD_out ก ก ก ก - Traf_time ก ก - Traf_in ก ก - Traf_out ก ก ก - Mem_time ก ก - Mem_in ก ก - Mem_out ก ก ก

33 Field Data type Length PK Description 1 ID bigint 20 PK 2 Name vachar 10 ก 3 CPU_time timestamp ก 4 CPU_in int 11 ก 5 CPU_out int 11 ก ก 6 HDD_time timestamp ก ก 7 HDD_in int 11 ก ก 8 HDD_out int 11 ก ก ก 9 Traf_time timestamp ก 10 Traf_in int 11 ก 11 Traf_out int 11 ก ก 12 Mem_time timestamp ก 13 Mem_in int 11 ก 14 Mem_out int 11 ก ก 4.1 mrtg2

34 4.9 mrtg_status mrtg2 - ก ก ก ก MRTG ก ก ก 5 4.2.3 ก ก ก 17 (ssw2500-ssw2516) - ก ก ก ก MRTG ก mrtg2 - ก ก ก MRTG ก 5

35 4.10 mrtg2 ก ก 17 4.3 ก ก 4.3.1 - ก ก - ก - ก 4.3.2 ก ก 17 - ก ก mrtg2 ก ก CPU_in กก ก - ก ก ( ) 2 ก ก fon@localhost - ก ก ssw2516 ก ssw2507 ssw2511 4.3.3 ก - ก ก ssw2516 ก ssw2507 ssw2511

36 - ก fon@localhost ก ssw2507 ssw2511 4.11 ก mrtg2 17 4.12 ก ก

37 4.13 ก ก ก (Down) 4.14 ก fon@localhost

38 4.4 ก ก 4.4.1 - ก - ก 4.4.2 ก - ก ก - ก ก ก 4.4.3 ก 4.15 ก 4.16 ก ก

39 ก ก กก ก ก ก - ก - ก - ก - ก ก - ก ก ก ก ก ก ก ก ก ก ก ก Click here to show graph 4.17 ก ก ก

40 4.5 ก ก ก 4.5.1 - ก ก 4.5.2 ก - ก ก 1 ก ก 1 ก ก - ก ก ก - ก 4 ก 4.5.3 ก กก ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก ก

41 5 ก 5.1 กก ก ก ก 2003 ก MRTG ก SNMP ก ก ก ก MRTG ก ก ก ก ก ก ก ก ก ก ก ก ก 5.2 ก 5.2.1 ก ก ก ก 5.2.2 ก ก 2003 กก ก ก (Linux) ก ก ก ก ก ก 2003 5.2.3 ก ก 2003 ก ก ก 5.3 5.3.1 ก ก ก 5.3.2 ก ก ก ก ก ก

42 ก [1] ก. 2543. ก ก. ก ก, ก. [2]. 2550. PHP & MySQL make it easy., ก. [3] ก. 2540. ก ก JAVA.., ก. [4]. 2550. PHP MySQL., ก. [5] ก ก. 2543. ก ก = Database system and design. ก ก, ก. [6]. 2550.., ก. [7]. 2547. ก., ก. [8]. 2551 Mail server., ก.

ก 43

44 ก ก ก ก 1. (http://localhost/index) ก ก 2. ก ก ก ก click Show

3. ก ก ก ก MRTG ก Click Here to Show Graph 45

46 ก ก ก ก 1. ก Management and monitoring tools ก - ก Install optional Windows components

47 - ก Management and Monitoring Tools ก Next 2. ก SNMP - Administrative Tools ก Services

48 - ก SNMP Service ก Properties - Traps Community name Public ก Add to list

49 - Security Accepted community names ก Add ก Add - ก Accpet SNMP packets from any host ก OK

50 - ก SNMP Informant 3. ก SNMP Windows Firewall - Windows Firewall ก Add Port

51 - Name Port number ก UDP ก OK 4. ก ก IIS Apache - Administrative Tools --> Internet Information Services (IIS) Manager - ก ( EMBEDDED2) - ก All Tasks --> Restart IIS

- What do you want IIS to do? ก Stop Internet Service on ( ) - ก OK 52

53 5. ก ก Appserv ( ) - ก ก Next - ก

54 - Server Email Address - Root

55 6. ก ก MRTG - ก MRTG - ก Active perl

56 - ก ก Active perl MRTG ก perl mrtg ก - ก MRTG IP Address ก 1. config perl cfgmaker public@ipaddress --global "WorkDir: ก ก ก " --output.cfg ก ก ก ssw00.cfg mrtg-2.14.7\bin ก ก mrtg ssw00.cfg C:\Appserv\www\mrtg ก ก html ก

57 ** cfgmaker Configuration File ก 2 (2 OID) ก ก ก (OID ) Configuration File 2. html perl mrtg warning ก ก 2 warning ก C:\Appserv\www\mrtg 3 - html ก - png ก - ก ก ก html ก ก ก mrtg

58 3. mrtg ก 5 RunAsDaemon:yes 4. ก index.html ก ก perl indexmaker --column=1 --output=c:\appserv\www\mrtg\index.html C:\mrtg- 2.14.7\bin\ssw00.cfg

59 5. ก batch file Start up ก ก ก MRTG ก ก ก ก ก ก ก ก batch file Start Up ก MRTG batch file 6. ก ก ก ก ก OID ก ก ก target ก MRTG ก ก - target OID ก ก - Pagetop ก ก - Option ก - nopercent ก - growright MRTG ก ก - guage - noinfo ก ก uptime ก - title ก ก - Maxbyes ก ก - kmg ก ก - YLegend ก y ก - ShortLegend Max, Average, Current - LegendI OID ก - LegendO OID - Legend1 LegendI

60 7. ก - ก ก ก ก FileInPut.java connectdb2.php ก 17 17 ( ก ) ก ก ก ก ( FileInPut.java) 8. ก ( connectdb2.php) - ก php.ini 10.20.4.127 fon@localhost

61 - ก ArgoSoft Mail Server ก ก ก - ก ก Tools ก Options - ก ก ก DNS Server IP Home

62 - Local Domains localhost - Ports Web Interface ก 80 ก Apache - ก Play ก ก ก Stop Start ก

63 9. ก - Tools ก Users - ก Add New User

64-10. ก ก Outlook Express - Tools ก Accounts

65 - -

- 66

67 ก ก ก ก ก 1. 2. ก 3. ก 4. ก ก

68

69

70

71