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.

http://man.linuxde.net/ipcrm

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系列之三——安装报错的更多相关文章

  1. zabbix系列之六——安装后配置二Items

    https://www.zabbix.com/documentation/3.4/manual/config/items/itemtypes/snmp 1Items 1.1creating items ...

  2. MSSQL 2012安装报错之0x858C001B

    之前安装 Microsoft Sql Server 2012 R2 的时候总是报这样的错误: SQL Server Setup has encountered the following error: ...

  3. mydumper 安装报错处理

    mydumper 官网:https://launchpad.net/mydumper 下载之后,安装报错: [root@localhost local]# cd mydumper-0.6.2 [roo ...

  4. 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 ...

  5. office2010安装报错

    有没有童鞋,在第一次安装office 2010的时候,中途不管是何原因导致中断或者未安装成功的 然后从第二次开始就一直安装报错??? 哈哈,我最近就遇到了 其他很简单,网上有很多方法,也有很多步骤,包 ...

  6. 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 ...

  7. 关于eclipse(64位)下aptana插件安装报错问题解决

    最近一直没有写过js,换了新电脑以后,eclipse下的aptana插件也没有装过,这几天要写js想重新把aptana装上,但是不知怎的,link方式.在线安装方式还有离线包下载下来利用eclipse ...

  8. 使用pip安装报错的处理方法

    在新的机子上使用pip安装程序一直报错: Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connect ...

  9. Python——pip安装报错:is not a supported wheel on this platform

    pip安装报错:is not a supported wheel on this platform 可能的原因1:安装的不是对应python版本的库,下载的库名中cp35代表python3.5,其它同 ...

随机推荐

  1. Postman—authorization简介

    Postman中的authorization 版权声明,参考: https://blog.csdn.net/qq_28284093/article/details/80416749 1.概述 Auth ...

  2. 如何用 纯C++(ndk)开发安卓应用 ?

    视频教程请关注 http://edu.csdn.net/lecturer/lecturer_detail?lecturer_id=440 如何安装安卓的开发环境以及怎么设置ndk的环境变量等在前边的文 ...

  3. 自然语言处理--Word2vec(一)

    一.自然语言处理与深度学习 自然语言处理应用 深度学习模型                       为什么需要用深度学习来处理呢 二.语言模型 1.语言模型实例: 机器翻译 拼写纠错        ...

  4. R语言-RStudio快捷键总结

    一.控制台 功能  Windows & Linux   Mac 移动鼠标到控制台 Ctrl+2 Ctrl+2 移动到鼠标命令编辑 Ctrl+1 Ctrl+1 控制台清屏 Ctrl+L Comm ...

  5. GRU

    GRU模型(比LSTM减少了计算量) LSTM的模型,LSTM的重复网络模块的结构很复杂,它实现了三个门计算,即遗忘门.输入门和输出门. 而GRU模型如下,它只有两个门了,分别为更新门和重置门,即图中 ...

  6. Impala 使用的端口

    下表中列出了 Impala 是用的 TCP 端口.在部署 Impala 之前,请确保每个系统上这些端口都是打开的. 组件 服务 端口 访问需求 备注 Impala Daemon Impala 守护进程 ...

  7. java aop做一个接口耗时的计算

    看代码: @Aspect @Component public class TimeCostAspect { private static Logger logger = LoggerFactory.g ...

  8. Install Tomcat 6 on CentOS or RHEL --转载

    source:http://www.davidghedini.com/pg/entry/install_tomcat_6_on_centos This post will cover installa ...

  9. Redis configuration

    官方2.6配置如下: # Redis configuration file example # Note on units: when memory size is needed, it is pos ...

  10. Node.js HTTP Server对象及GET、POST请求

    上一博客学习了请求与响应,2次读2次写,但有一个问题就是客户端写入的时候怎么知道请求到达.所以HTTP Server对象出现了.它提供了实现HTTP服务器的基本框架.它可以监听端口的底层套接字和接收请 ...