Official documentation is not detailed operation also a little problem, so the operation is recorded as follows.
Operating system Environment:
CentOS 5.8
Python 2.4.3
Create a collector and so on, don't say it here, see Official document: http://blog.jiankongbao.com/?p=1285
First, because my Python is 2.4, you will install Hashlib, cTYPES, Simplejson inside the library, the specific operation is as follows:
Hashlib Source Installation
First, install Python-devel, Hashlib compile-time requires:
#yum Install Python-devel
Download Hashlib and install:
#wget Http://pypi.python.org/packages/source/h/hashlib/hashlib-20081119.zip--no-check-certificate
#unzip Hashlib-20081119.zip
#cd hashlib-20081119
#python setup.py Install
Verify:
#python-C ' import hashlib '//No error will indicate installation success
Website address: Http://pypi.python.org/pypi/hashlib
cTYPES Source Installation
Download the cTYPES package and install:
#wget http://downloads.sourceforge.net/project/ctypes/ctypes/1.0.2/ctypes-1.0.2.tar.gz
#tar ZXF ctypes-1.0.2.tar.gz
#cd ctypes-1.0.2
#python setup.py Install
#yum Search Python-ctypes//If you can find Python-ctypes software package with Yum, you can also yum-y the install python-ctypes directly
Verify:
#python-C ' import ctypes '//No error will indicate installation success
Website address: https://pypi.python.org/pypi/ctypes
Simplejson Source Installation
Download the Simplejson package and install:
#wget https://pypi.python.org/packages/source/s/simplejson/simplejson-2.0.6.tar.gz--no-check-certificate
#tar ZXF simplejson-2.0.6.tar.gz
#cd simplejson-2.0.6
#python setup.py Install
#yum Search Python-simplejson//If you can find Python-simplejson software package with Yum, you can also yum-y the install Python-simplejson directly
Verify:
#python-C "Import Simplejson"//No error will indicate installation success
Website address: Https://pypi.python.org/pypi/simplejson
In fact, the source installation Python extension module is a three-step download------and install.
Second,Python adds the appropriate extensions and clients
1. To use MySQL performance monitoring, you need to install the Python mysqldb extension. Specific reference http://blog.jiankongbao.com/?p=1556
2, according to the monitoring tasks required to do, need to run the collector's machine to install the corresponding client, such as: To use server performance monitoring, need to install NET-SNMP
Third, download the corresponding operating system of the Collector program.
It can be downloaded to the server via wget or downloaded locally and then uploaded to the server.
#wget Http://******/jkb_agent_linux.zip
#unzip Jkb_agent_linux.zip
#cd Jkb_agent_linux
#sh start.sh
To this, the installation is complete.
Check to see if the process is running.
#ps aux |grep jkb
Then go to the monitoring treasure backstage to view and set the relevant parameters may be.
Finally, some notes are attached:
1, stop the collector Operation #sh stop.sh, start is #sh start.sh, here note the directory.
2, the operation of the collector of the specific introduction, please refer to http://blog.jiankongbao.com/?p=1466
CentOS Create a surveillance treasure collector and add plugin tasks