zabbix 数据库问题
Too many connections
::052844.247 Cannot connect to the database. Exiting...
::052844.249 server # started [trapper #]
::052844.249 Cannot connect to the database. Exiting...
::052844.251 server # started [trapper #]
::052844.251 server # started [trapper #]
::052844.254 server # started [trapper #]
::052844.254 server # started [trapper #]
::052844.256 [Z3001] connection to database 'zabbix' failed: [] Too many connections
::052844.256 Cannot connect to the database. Exiting...
::052844.257 [Z3001] connection to database 'zabbix' failed: [] Too many connections
::052844.257 Cannot connect to the database. Exiting...
::052844.258 [Z3001] connection to database 'zabbix' failed: [] Too many connections
::052844.258 Cannot connect to the database. Exiting...
::052844.258 server # started [trapper #]
::052844.259 [Z3001] connection to database 'zabbix' failed: [] Too many connections
::052844.259 Cannot connect to the database. Exiting...
::052844.261 server # started [trapper #]
::052844.261 [Z3001] connection to database 'zabbix' failed: [] Too many connections
::052844.261 Cannot connect to the database. Exiting...
::052844.262 [Z3001] connection to database 'zabbix' failed: [] Too many connections
::052844.262 Cannot connect to the database. Exiting...
::052844.263 [Z3001] connection to database 'zabbix' failed: [] Too many connections
::052844.263 Cannot connect to the database. Exiting...
::052844.263 server # started [trapper #]
::052844.265 [Z3001] connection to database 'zabbix' failed: [] Too many connections
::052844.265 Cannot connect to the database. Exiting...
::052844.266 One child process died (PID:,exitcode/signal:). Exiting ...
::052844.312 server # started [trapper #]
::052844.316 syncing trend data...
::052844.316 syncing trend data done
::052844.316 Zabbix Server stopped. Zabbix 4.2. (revision 2c0e4d1d39).
处理方法:修改mariadb最大连接数
配置/etc/my.cnf
[mysqld]下新添加一行如下参数:
max_connections=300
vi /usr/lib/systemd/system/mariadb.service
取消[Service]前的#号,
[Service]新添加两行如下参数:
LimitNOFILE=10000
LimitNPROC=10000
systemctl --system daemon-reload
systemctl restart mariadb.service
zabbix 数据库问题的更多相关文章
- zabbix数据库mariadb从服务器迁移到云mysql数据库的操作
zabbix数据库mariadb从本机迁移到云mysql数据库的操作 1.将zabbix数据库导出,并导入到云数据库中 由于数据库较大,如果直接使用shell会话中断会导致数据库导出或者导入失败,使用 ...
- 15.5 自学Zabbix之路15.5 Zabbix数据库表结构简单解析-其他 表
点击返回:自学Zabbix之路 自学Zabbix之路15.5 Zabbix数据库表结构简单解析-其他 表 1. Actions表 actions表记录了当触发器触发时,需要采用的动作. 2.Aler ...
- zabbix数据库分表的实现
前提条件是主从同步操作完成(主从同步的前提是两个数据库表结构必须一样) 先看一下mysql配置文件 vi /usr/local/mysql/my.cnf 配置内容:------------------ ...
- 自学Zabbix之路15.1 Zabbix数据库表结构简单解析-Hosts表、Hosts_groups表、Interface表
点击返回:自学Zabbix之路 点击返回:自学Zabbix4.0之路 点击返回:自学zabbix集锦 自学Zabbix之路15.1 Zabbix数据库表结构简单解析-Hosts表.Hosts_grou ...
- 自学Zabbix之路15.2 Zabbix数据库表结构简单解析-Items表
点击返回:自学Zabbix之路 点击返回:自学Zabbix4.0之路 点击返回:自学zabbix集锦 自学Zabbix之路15.2 Zabbix数据库表结构简单解析-Items表 Items表记录了i ...
- 自学Zabbix之路15.3 Zabbix数据库表结构简单解析-Triggers表、Applications表、 Mapplings表
点击返回:自学Zabbix之路 点击返回:自学Zabbix4.0之路 点击返回:自学zabbix集锦 自学Zabbix之路15.3 Zabbix数据库表结构简单解析-Triggers表.Applica ...
- 自学Zabbix之路15.4 Zabbix数据库表结构简单解析-Expressions表、Media表、 Events表
点击返回:自学Zabbix之路 点击返回:自学Zabbix4.0之路 点击返回:自学zabbix集锦 自学Zabbix之路15.4 Zabbix数据库表结构简单解析-Expressions表.Medi ...
- 自学Zabbix之路15.5 Zabbix数据库表结构简单解析-其他 表
点击返回:自学Zabbix之路 点击返回:自学Zabbix4.0之路 点击返回:自学zabbix集锦 自学Zabbix之路15.5 Zabbix数据库表结构简单解析-其他 表 1. Actions表 ...
- zabbix 数据库分表操作
近期zabbix数据库占用的io高,在页面查看图形很慢,而且数据表已经很大,将采用把数据库的数据目录移到新的磁盘,将几个大表进行分表操作 一.数据迁移: 1.数据同步到新的磁盘上,先停止mysql(不 ...
- zabbix数据库需要多大硬盘?我告诉你
本次案例:100台服务器,每台服务器有30个监控项,每个监控项60秒刷新一次,需要多大的硬盘呢?众所周知,zabbix基本都是通过web配置,这些配置数据也是存放到数据库里的,但是它对硬盘容量的要求基 ...
随机推荐
- Android 面试汇总<三>
1.3 计算机网络 基础 Q:五层协议的体系结构分别是什么?每一层都有哪些协议? 技术点:网络模型.协议 思路:分条解释每层名字以及协议 参考回答: 物理层 数据链路层:逻辑链路控制LLC.媒体接入控 ...
- Computer Network Homework3’ s hard question
Computer Network Homework3’ s hard question 1. Which kind of protocol does CSMA belong to? A. Random ...
- Python_基础知识储备
目录 目录 前言 初识Python 解析型与编译型 OOP与POP 相关概念1 Python的解释器 Python程序设计的思想 Python的编程风格 最后 前言 前面的博文从记录了如何Setup ...
- Linux从一个服务器拷贝文件到另一个服务器上
***复制文件夹到另外一个服务器scp -r tmp root@114.215.80.12:/work/temp输入密码 scp -r customer root@114.215.80.12:/hom ...
- django 如何传递id 参数
urls.py 注意这里的bid
- database使用
参照文档 https://www.cnblogs.com/laoqing/p/8542487.html
- JSP指令标签、动作标签
JSP有三大指令: * page指令 * include指令 * taglib指令 在JSP中没有任何指令是必须的!!! 但基本上每个JSP都是使用page指令! page指令 page ...
- java:(九大内置对象,计算服务器访问次数,filter过滤器,MVC框架,MVC和三层架构的关系)
1.九大内置对象: <%@ page language="java" import="java.util.*" pageEncoding="UT ...
- cocos2dx基础篇(25) 简单碰撞检测
[3.x] 将数学类 CCPoint.CCRect 改为v3.x版本的 Vec2.Rect 就好了. [简单碰撞检测] 在一些游戏中经常会遇到碰撞检测的情况,如愤怒的小鸟飞出去后,是否与石头发生碰撞. ...
- Django 调用支付宝接口
目录 一 支付宝接口 二 视图函数 支付宝支付 正式环境:用营业执照,申请商户号,appid 测试环境:沙箱环境:https://openhome.alipay.com/platform/appD ...