편리한 호스팅 미소IDC

   
 
 
 

      1차 네임서버 :
      ns1.misoidc.com
      101.79.73.101

      2차 네임서버 :
      ns2.misoidc.com
      101.79.73.105

      어제 : 229 ,오늘 : 151
      전체 : 1,091,295


     

 

 
작성일 : 12-05-17 17:11
memcached Cacti Template
 글쓴이 : 싼웹호스팅
조회 : 72,282  

memcached Cacti Template

This template provides a host template and associated graphs for graphing the output of the memcached stats command on individual memcached installations.

Graphs are provided for Bytes Used with total capacity, Cache Hits and Misses per second, Current Connections, Items Cached, Inbound and Outbound Network Traffic (bits per second), and Requests per Second for both the get and set commands.

Requirements

  • A working installation of Cacti. Preferably the latest available version.
  • One or more working memcached installations to graph.
  • A current version of Python installed on the same system as Cacti.
  • A current version of the Python memcached Client API installed on the same system as Cacti.

Screenshots

Bytes Used
Bytes Used
Cache Hits and Misses
Cache Hits and Misses
Current Connections
Current Connections
Items Cached
Items Cached
Network Traffic
Network Traffic
Requests per Second
Requests per Second

Download

Installation and Use

Before you begin, you should ensure that you have a working cacti installation already polling and graphing devices and at least one working installation of memcached. The installation of cacti and memcached is outside the scope of this document.

Python Client API Installation

  1. Download and copy the latest version of the Python client API to a writable directory on the same server that cacti is installed on.

  2. Extract the archive:

    tar xzf python-memcached-<ver>.tar.gz.

  3. Change to the newly extracted directory and run the installation script:

    python setup.py install

Template Installation

  1. Download the latest version of this template and extract to a writable directory:

    tar xzf cacti-memcached-<ver>.tar.gz

  2. Copy (or upload) the memcached.py script to the <cacti path>/scripts/ directory on the server that cacti is installed on.

  3. [optional] – Verify that the memcached.py script properly works by opening a console or ssh connection to the server and typing:

    python <cacti path>/scripts/memcached.py <hostname>

  4. Open and login to your cacti installation's console in your web browser and choose Import Templates from the menu on the left.

  5. In the Import Templates section, click the Browse button to Import Template from Local File. Navigate to the directory where you extracted this template and choose the cacti_memcached_host_template.xml file to be imported.

  6. Click the Save button to import the template.

At this point, your template should have been imported successfully. Cacti will list the successfully imported or updated templates as [new] or [update] or report any XML parsing errors it found.

If your template was not successfully imported or you've run into trouble by this point, see the Where to Find Help With Cacti section for help on finding help.

Template Configuration and Use

For a new device, select the Memcached Server host template when creating the device and all memcached graphs will be available to you in the Graph Template section when creating new graphs.

For an existing devices, memcached graphs will also be located in the Graph Template section, but in the menu list at the bottom.

If your memcached installation uses a different port than 11211

If you are using a different port for your memcached installations than the default 11211, you will need to make a small modification to the Memcached - Statistics data input method.
  1. Open and login to your cacti installation's console in your web browser and choose Data Input Methods from the menu on the left.

  2. Locate the Memcached - Statistics data input method and click the title to edit.

  3. Under the Data Input Methods section, in the Input String textbox, add -p PORT before <hostname> where PORT is the port your memcached installation is using.

    e.g. python <path_cacti>/scripts/memcached.py -p 2345 <hostname>

Where to Find Help With Cacti (or This Template)

Help, custom templates and HOWTOs can be found in the Cacti forums, or if you prefer IRC, join us in the Cacti channel at #cacti@irc.freenode.net.
If you would like to report any errors, make suggestions or have any specific questions about the template itself, please leave a comment in the related Cacti forum post.


 
 

Total 78
번호 제   목 글쓴이 날짜 조회
63 backuppc 소스설치 하기 (1) 싼웹호스팅 06-11 60668
62 [CREATE DATABASE] 오라클 DB 수동생성 ( CREATE DATABASE 이용) 싼웹호스팅 07-07 60175
61 리눅스에서 소스컴파일을 이용한 Trac, Subversion 설치 완벽 가… (1) 싼웹호스팅 05-10 60007
60 wowza live 스트리밍 싼웹호스팅 10-11 59433
59 Install Tomcat 7 on CentOS, RHEL, or Fedora 싼웹호스팅 11-15 54311
58 rsyslog + LogAnalyzer 싼웹호스팅 05-21 53756
57 윈도우에서 오라클 InstantClient 설치 후 Toad 연결법 싼웹호스팅 07-07 53488
56 Wowza 설치 및 튜닝 싼웹호스팅 10-11 50150
55 HP ProLiant 서버에 RAID 1으로 Ubuntu 10.4 LTS , HP Sotware … 싼웹호스팅 02-22 49356
54 아파치1 톰캣5 싼웹호스팅 11-16 48482
53 PHP Session 공유 (memcached 이용) 싼웹호스팅 11-01 48122
52 리눅스용 백신 - f-prot 설치 및 사용법 싼웹호스팅 05-24 47168
51 CentOS 4.x 버젼에 php5, mysql5 를 yum 으로 설치 가능하게하기 싼웹호스팅 06-29 44373
50 레이어 팝업 - 닫기&오늘 하루 열지 않기 싼웹호스팅 06-12 43382
49 [MS-SQL]SQL Server 2005 연결오류 진단방법 싼웹호스팅 04-04 41258
 1  2  3  4  5  6