当前位置:网站首页>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 :
边栏推荐
- Machine learning 3.2 decision tree model learning notes (to be supplemented)
- DNS多点部署IP Anycast+BGP实战分析
- 机器学习 3.2 决策树模型 学习笔记(待补)
- vulnhub之raven2
- Momentum of vulnhub
- FL Studio 20 unlimited trial fruit arranger Download
- Analysis of EPS electric steering system
- Stm32hal library upgrades firmware based on flash analog U disk (detailed explanation)
- Cadence background color setting
- Groovy test class and JUnit test
猜你喜欢
随机推荐
rxjs Observable filter Operator 的实现原理介绍
(数据库提权——Redis)Redis未授权访问漏洞总结
MySQL uses the method of updating linked tables with update
vulnhub之tomato(西红柿)
ORACLE进阶(一) 通过EXPDP IMPDP命令实现导dmp
一些常用术语
The uniapp scroll view solves the problems of high adaptability and bullet frame rolling penetration.
Multi dimensional monitoring: the data base of intelligent monitoring
R language uses data The table package performs data aggregation statistics, calculates window statistics, calculates the median of sliding groups, and merges the generated statistical data into the o
XML (DTD, XML parsing, XML modeling)
Ripper of vulnhub
AOSP ~ NTP ( 网络时间协议 )
Sheet1$.输出[Excel 源输出].列[XXX] 出错。返回的列状态是:“文本被截断,或者一个或多个字符在目标代码页中没有匹配项。”。
After using the thread pool for so long, do you really know how to reasonably configure the number of threads?
cgroup简介
Vulnhub narak
vulnhub之presidential
Vulnhub geminiinc V2
PHP基础
剑指offer专项32-96题做题笔记