zabbix系列之三——安装报错
1Zabbix_server启动失败
1.1查看日志:vi /var/log/zabbix/zabbix_server.log
zabbix_server [23500]: cannot open log: cannot create semaphore set: [28] No space left on device
网上类似:
https://www.cnblogs.com/xkus/p/7783630.html
报错原因:
kernel.sem参数设置过小,
vim /etc/sysctl.conf
添加:
kernel.sem =5010 641280 5010 128
执行:sysctl -p /etc/sysctl.conf
并没有解决
1.2继续搜索:
http://www.minunix.com/2014/04/zabbix-faq_01/
查看ipcs命令:
key semid owner perms nsems
0x00000000 4620403 zabbix 600 14
0x00000000 4653172 zabbix 600 14
再增大参数配置:
https://blog.csdn.net/reblue520/article/details/52229437
还是无效
看到网上有删除共享内存的,https://blog.csdn.net/u013550907/article/details/24181169
而我这边报错为Semaphore。考虑类似,应该删除该semid.
1.3删除Semaphore id
ipcrm -s 1114117
ipcrm -s 1048582
ipcrm -s 1081351
ipcrm -s 1146888
ipcrm -s 1179657
直接复制粘贴到shell软件中,批量执行
再次查看ipcs:
发现zabbix的信息均删除。
重新启动zabbix成功。
1.4注意:
使用什么命令启动就用什么命令停止。
Systemctl start zabbix-server就要用Systemctl stop zabbix-server停止,如果用service zabbix-server stop来停止则可能导致无法重启。
2zabbix前端配置mysql连接失败
Zabbix web前端报错:
- Error connecting to database: Access denied for user 'zabbix'@'ISHYC-003538' (using password: YES)
2.1查看zabbix后台日志:
vi /var/log/zabbix/zabbix_server.log
报错:
[Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
database is down: reconnecting in 10 seconds
2.2查看zabbix配置:
Vi /etc/zabbix/zabbix_server.conf
最终配置如下:
DBHost=11.115.130.114
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix2018
开始DBHost配置为localhost,则默认从mysql.sock启动导致报错。具体原因不清楚,可能mysql.sock已被114服务器配置为默认本地启动,zabbix如果指定该文件启动会冲突导致失败。改为直接ip则能正常连接数据库
另外,网上有其他方法如:
https://www.cnblogs.com/seasonsstory/p/3209785.html
未尝试。
zabbix系列之三——安装报错的更多相关文章
- zabbix系列之六——安装后配置二Items
https://www.zabbix.com/documentation/3.4/manual/config/items/itemtypes/snmp 1Items 1.1creating items ...
- MSSQL 2012安装报错之0x858C001B
之前安装 Microsoft Sql Server 2012 R2 的时候总是报这样的错误: SQL Server Setup has encountered the following error: ...
- mydumper 安装报错处理
mydumper 官网:https://launchpad.net/mydumper 下载之后,安装报错: [root@localhost local]# cd mydumper-0.6.2 [roo ...
- linux -小记(2)问题:yum 安装报错"Another app is currently holding the yum lock; waiting for it to exit... ...: yum Memory : 26 M RSS (868 MB VSZ) Started: Wed Oct 26 22:48:24 2016 - 0"
yum 安装报错 "Another app is currently holding the yum lock; waiting for it to exit... The other ap ...
- office2010安装报错
有没有童鞋,在第一次安装office 2010的时候,中途不管是何原因导致中断或者未安装成功的 然后从第二次开始就一直安装报错??? 哈哈,我最近就遇到了 其他很简单,网上有很多方法,也有很多步骤,包 ...
- yum安装报错有冲突file /usr/lib64/php/modules/fileinfo.so conflicts between
yum安装报错有冲突file /usr/lib64/php/modules/fileinfo.so conflicts between attempted installs of php-pecl-f ...
- 关于eclipse(64位)下aptana插件安装报错问题解决
最近一直没有写过js,换了新电脑以后,eclipse下的aptana插件也没有装过,这几天要写js想重新把aptana装上,但是不知怎的,link方式.在线安装方式还有离线包下载下来利用eclipse ...
- 使用pip安装报错的处理方法
在新的机子上使用pip安装程序一直报错: Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connect ...
- Python——pip安装报错:is not a supported wheel on this platform
pip安装报错:is not a supported wheel on this platform 可能的原因1:安装的不是对应python版本的库,下载的库名中cp35代表python3.5,其它同 ...
随机推荐
- Java后台 解析JSON的几个方法
1.对象转JSON对象. public static void main(String[] args) { Domain demo = new Domain( "在线JSON校验格式化工具 ...
- 【树】Unique Binary Search Trees II
题目: Given n, generate all structurally unique BST's (binary search trees) that store values 1...n. F ...
- 【数组】Rotate Image
题目: You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwis ...
- 《LeetBook》leetcode题解(15):3Sum[M]
我现在在做一个叫<leetbook>的免费开源书项目,力求提供最易懂的中文思路,目前把解题思路都同步更新到gitbook上了,需要的同学可以去看看 书的地址:https://hk029.g ...
- PHP操作MySQL数据库步骤:
简单的PHP操作数据库步骤: 1.连接数据库 $con = mysql_connect('ip','username','password'); 2.选择数据库 mysql_select_ ...
- C++11中右值引用和移动语义
目录 左值.右值.左值引用.右值引用 右值引用和统一引用 使用右值引用,避免深拷贝,优化程序性能 std::move()移动语义 std::forward()完美转发 容器中的emplace_back ...
- ruby字符串连接
malls = Mall.allcount = 0malls.each do |mall| count += 1 if mall.parent_ids[0] province ...
- Oracle11g在Windows和Linux下imp导入表,exp导出表,sqluldr2导出表,sqlldr导入表
Windows(Win10) 打开cmd 首先输入sqlplus,依次输入用户名.口令 C:\Users\hasee>sqlplus SQL*Plus: Release Production o ...
- Mybatis中同时使用shardbatis和pagehelper插件冲突问题
在一次使用mybatis的插件,分表shardbatis+分页pagehelper共同使用的时候,会抛出以下异常: java.lang.NoSuchMethodError: net.sf.jsqlpa ...
- 从Qt到PyQt
Hello World PyQt与Qt具有极其相似的类族和API,而且不再使用qmake系统和Q_OBJECT宏使得PyQt在没有编译链接时频繁的错误而且代码更加友好. from PyQt4 impo ...