lepus监控redis执行python check_redis.py报错

本文涉及的产品
云数据库 Redis 版,社区版 2GB
推荐场景:
搭建游戏排行榜
云数据库 RDS MySQL Serverless,0.5-2RCU 50GB
简介:

python check_redis.py  

2017-08-02 11:00:58 [INFO] check redis controller started.  

./include/functions.py:45: Warning: Out of range value for column 'rdb_changes_since_last_save' at row 1  

  curs.execute(sql,param)  

./include/functions.py:45: Warning: Out of range value for column 'rdb_changes_since_last_save' at row 1  

  curs.execute(sql,param)  

./include/functions.py:45: Warning: Out of range value for column 'rdb_changes_since_last_save' at row 1  

  curs.execute(sql,param)  

./include/functions.py:45: Warning: Out of range value for column 'keyspace_hits' at row 1  

2017-09-12 09:54:00 [INFO] check redis controller started.

se "encoding" instead

  '"charset" is deprecated. Use "encoding" instead'))

mysql execute: (1264, "Out of range value for column 'rdb_changes_since_last_save' at row 1")

mysql execute: (1264, "Out of range value for column 'rdb_changes_since_last_save' at row 1")


修改lepus库的的redis表字段结构解决:

mysql> alter table redis_status modify rdb_changes_since_last_save int(10);  

Query OK, 15 rows affected (0.01 sec)  

Records: 15  Duplicates: 0  Warnings: 0  

  

mysql> alter table redis_status modify keyspace_hits bigint(4);  

Query OK, 15 rows affected (0.02 sec)  

Records: 15  Duplicates: 0  Warnings: 0  

mysql> alter table redis_status_history modify keyspace_hits bigint(4);  

Query OK, 187 rows affected (0.02 sec)  

Records: 187  Duplicates: 0  Warnings: 0  

  

mysql> alter table redis_status_history modify rdb_changes_since_last_save int(10);  

Query OK, 187 rows affected (0.02 sec)  

Records: 187  Duplicates: 0  Warnings: 0 


[root@cacti lepus]# python check_redis.py

2017-09-13 12:01:38 [INFO] check redis controller started.

2017-09-13 12:01:39 [INFO] check redis controller finished.




 本文转自 wjw555 51CTO博客,原文链接:http://blog.51cto.com/wujianwei/1964874
相关实践学习
基于Redis实现在线游戏积分排行榜
本场景将介绍如何基于Redis数据库实现在线游戏中的游戏玩家积分排行榜功能。
云数据库 Redis 版使用教程
云数据库Redis版是兼容Redis协议标准的、提供持久化的内存数据库服务,基于高可靠双机热备架构及可无缝扩展的集群架构,满足高读写性能场景及容量需弹性变配的业务需求。 产品详情:https://www.aliyun.com/product/kvstore     ------------------------------------------------------------------------- 阿里云数据库体验:数据库上云实战 开发者云会免费提供一台带自建MySQL的源数据库 ECS 实例和一台目标数据库 RDS实例。跟着指引,您可以一步步实现将ECS自建数据库迁移到目标数据库RDS。 点击下方链接,领取免费ECS&RDS资源,30分钟完成数据库上云实战!https://developer.aliyun.com/adc/scenario/51eefbd1894e42f6bb9acacadd3f9121?spm=a2c6h.13788135.J_3257954370.9.4ba85f24utseFl
相关文章
|
30天前
|
缓存 监控 NoSQL
Redis 的监控指标
Redis 的监控指标
24 0
|
2月前
|
监控 NoSQL Redis
HeartBeat监控Redis状态
HeartBeat监控Redis状态
|
3天前
|
监控 Python
Python监控主机是否存活,并发报警邮件
Python监控主机是否存活,并发报警邮件
|
7天前
|
NoSQL MongoDB Redis
Python与NoSQL数据库(MongoDB、Redis等)面试问答
【4月更文挑战第16天】本文探讨了Python与NoSQL数据库(如MongoDB、Redis)在面试中的常见问题,包括连接与操作数据库、错误处理、高级特性和缓存策略。重点介绍了使用`pymongo`和`redis`库进行CRUD操作、异常捕获以及数据一致性管理。通过理解这些问题、易错点及避免策略,并结合代码示例,开发者能在面试中展现其技术实力和实践经验。
129 8
Python与NoSQL数据库(MongoDB、Redis等)面试问答
|
10天前
|
Python
IDA3.12版本的python,依旧报错IDAPython: error executing init.py.No module named ‘impRefer to the message win
IDA3.12版本的python,依旧报错IDAPython: error executing init.py.No module named ‘impRefer to the message win
|
24天前
|
存储 监控 异构计算
【Python】GPU内存监控脚本
【Python】GPU内存监控脚本
|
1月前
|
存储 JSON NoSQL
Redis与Python的完美结合:实现高效数据交互和应用场景全解析
Redis与Python的完美结合:实现高效数据交互和应用场景全解析
115 0
|
1月前
|
存储 NoSQL Redis
如何在Python中操作Redis数据库
如何在Python中操作Redis数据库
29 0
|
1月前
|
JSON 监控 数据安全/隐私保护
如何利用Python编写公司计算机监控软件的基本功能
在现代企业环境中,监控公司计算机的活动是至关重要的。它可以帮助企业保护数据安全、确保员工遵守公司政策以及提高整体网络性能。为了实现这一目标,我们可以利用Python编写一个简单而强大的公司计算机监控软件,来跟踪关键活动并自动处理收集到的数据。
122 2
|
1月前
|
NoSQL Redis Python
python flask 使用 redis 写一个例子给我
python flask 使用 redis 写一个例子给我
38 4

热门文章

最新文章