当前位置:网站首页>Cacti monitors redis implementation process
Cacti monitors redis implementation process
2022-07-03 11:50:00 【Brother Xing plays with the clouds】
Cacti It's a set of bases PHP,MySQL,SNMP And RRDTool A graphic analysis tool for network traffic monitoring . It is widely used for The server In operation and maintenance monitoring ,Cacti Provides a plug-in management , Just write a specific template as required , Then you can monitor the traffic of any service . This article is to introduce two templates , Namely MongoDB and Redis Of Cacti Templates , Use it , You can treat your MongoDB and Redis Service traffic monitoring .
1, upgrade Python, At this time, if it is the system default python edition , The following errors will occur
python setup.py install
Traceback (most recent call last):
File "setup.py", line 3, in ?
from redis import __version__
File "/usr/local/src/redis-2.4.11/redis/__init__.py", line 1, in ?
from redis.client import Redis, StrictRedis
File "/usr/local/src/redis-2.4.11/redis/client.py", line 240
with self.pipeline(True, shard_hint) as pipe:
^
SyntaxError: invalid syntax
2, install python, First configure python Environmental Science , download python Source code
wget http://www.python.org/ftp/python/2.5.2/Python-2.5.2.tar.bz2
$ tar –jxvf Python-2.5.2.tar.bz2
$ cd Python-2.5.2
$ ./configure
$ make
$ make install
[[email protected] Python-2.5.2]# python
Python 2.4.3 (#1, Jun 11 2009, 14:09:37)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
Version still 2.4.3 Of , The solution is as follows :
#cd /usr/bin
#ll |grep python // Look in the directory python
#rm -rf python
Just make a soft connection again
[[email protected] Python-2.5.2]# ln -s /usr/local/bin/python /usr/bin/python
[[email protected] Python-2.5.2]#
[[email protected] Python-2.5.2]# python
Python 2.5.2 (r252:60911, Aug 4 2014, 14:43:36)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-54)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
3, Then download redis The template of
wget http://mysql-cacti-templates.googlecode.com/files/better-cacti-templates-1.1.8.tar.gz
Configure monitoring script
mongodb or redis What you need to monitor is what you download in the directory better-cacti-templates-1.1.8\scripts Under the
ss_get_by_ssh.php This script This script needs to be placed in cacti The service side .
If you cacti It's loading /var/www/html/cacti/ Under the table of contents .
Put the file under it scripts Under the table of contents . Don't forget to look at permissions . Have the right to execute .
Then modify the file . Mainly modify the options , In about 40 That's ok .
# ============================================================================
$ssh_user = 'root'; # SSH username
$ssh_port = 22; # SSH port
$ssh_iden = '-i /root/.ssh/id_rsa'; # SSH identity
## Modify according to your configuration , Yours ssh Connect the user , And the location of the authentication private key .
It's time to 50 That's ok , You can also modify its default port to detect ( If redis It is not the normal default port startup. You need to modify these ).
$redis_port = 6379; # Which port redis listens on
4, Import template , Template directory is better-cacti-templates-1.1.8\templates
stay cacti Interface import interface , establish redis The server Of Graph, As shown below :
5, To view the Graph design sketch , As shown below :
边栏推荐
- 2022年湖南工学院ACM集训第二次周测题解
- R语言使用data.table包进行数据聚合统计计算滑动窗口统计值(Window Statistics)、计算滑动分组中位数(median)并合并生成的统计数据到原数据集中
- 银泰百货点燃城市“夜经济”
- 【学习笔记】dp 状态与转移
- STL tutorial 8-map
- R language uses grid of gridextra package The array function combines multiple visual images of the ggplot2 package horizontally, and the ncol parameter defines the number of columns of the combined g
- STL tutorial 10 container commonalities and usage scenarios
- 鸿蒙第四次培训
- Ripper of vulnhub
- How to get started embedded future development direction of embedded
猜你喜欢

The world's most popular font editor FontCreator tool

Visual Studio 2022下载及配置OpenCV4.5.5

The excel table is transferred to word, and the table does not exceed the edge paper range

vulnhub之cereal

Ripper of vulnhub

错排问题 (抽奖,发邮件)

Unity3D学习笔记5——创建子Mesh

机器学习 3.2 决策树模型 学习笔记(待补)

Excel表格转到Word中,表格不超边缘纸张范围

鸿蒙第三次培训(项目实训)
随机推荐
How should intermediate software designers prepare for the soft test
鸿蒙第四次培训
836. 合并集合(DAY 63)并查集
C language AES encryption and decryption
vulnhub之cereal
Software testing weekly (issue 78): the more confident you are about the future, the more patient you are about the present.
MySQL uses the method of updating linked tables with update
Program process management tool -go Supervisor
ASP.NET-酒店管理系統
How to mix embedded MCU, arm and DSP?
Asyncio warning deprecationwarning: there is no current event loop
Mmc5603nj geomagnetic sensor (Compass example)
The LINQ expression node type 'ArrayIndex' is not supported in LINQ to Entities
vulnhub之raven2
(database authorization - redis) summary of unauthorized access vulnerabilities in redis
Understand go language context in one article
Qt+VTK+OCCT读取IGES/STEP模型
vulnhub之narak
银泰百货点燃城市“夜经济”
previous permutation lintcode51