zabbix是基于WEB界面提供分布式系统监视以及网络监视功能的企业级开源解决方案,能监视各种网络参数,保证服务器系统的安全运营;并提供灵活的通知机制以让系统管理员快速定位/解决存在的各种问题。
   做为开源用户的支持者,我们大部分环境用的软件包含监控软件、数据库、继承应用、操作系统等都是用开源的,例如centos、PG、zabbix、openshift等,但是开源的在成熟度上是不错,但是安装软件有时比较麻烦,例如centos的安全开关,默认情况下会导致我们在安装openshift、zabbix等导致失败,而错误日志提示往往与实际十万三千里,但是有经验的在安装完系统后会有意识性的去修改配置,避免不必要的问题,
如下问题:

在安装配置好zabbix后无法正常启动,原因是SELINUX设置问题导致启动失败,
故障分析:
[root@localhost zabbix]# systemctl start zabbix-server.service
Job for zabbix-server.service failed because a configured resource limit was exceeded. See "systemctl status zabbix-server.service" and "journalctl -xe" for details.
[root@localhost zabbix]# journalctl -xe
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit zabbix-server.service has begun starting up.
1月 07 15:21:17 localhost.localdomain systemd[1]: PID file /run/zabbix/zabbix_server.pid not readable (yet?) after start.
1月 07 15:21:17 localhost.localdomain systemd[1]: zabbix-server.service never wrote its PID file. Failing.
1月 07 15:21:17 localhost.localdomain systemd[1]: Failed to start Zabbix Server.
-- Subject: Unit zabbix-server.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit zabbix-server.service has failed.
-- 
-- The result is failed.
1月 07 15:21:17 localhost.localdomain systemd[1]: Unit zabbix-server.service entered failed state.
1月 07 15:21:17 localhost.localdomain systemd[1]: zabbix-server.service failed.
1月 07 15:21:17 localhost.localdomain polkitd[804]: Unregistered Authentication Agent for unix-process:6787:8831344 (system bus name
1月 07 15:21:24 localhost.localdomain polkitd[804]: Registered Authentication Agent for unix-process:6797:8832061 (system bus name :
1月 07 15:21:27 localhost.localdomain systemd[1]: zabbix-server.service holdoff time over, scheduling restart.
1月 07 15:21:27 localhost.localdomain systemd[1]: Starting Zabbix Server...
-- Subject: Unit zabbix-server.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit zabbix-server.service has begun starting up.
1月 07 15:21:27 localhost.localdomain systemd[1]: PID file /run/zabbix/zabbix_server.pid not readable (yet?) after start.
1月 07 15:21:27 localhost.localdomain systemd[1]: zabbix-server.service never wrote its PID file. Failing.
1月 07 15:21:27 localhost.localdomain systemd[1]: Failed to start Zabbix Server.
-- Subject: Unit zabbix-server.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit zabbix-server.service has failed.
-- 
-- The result is failed.
1月 07 15:21:27 localhost.localdomain systemd[1]: Unit zabbix-server.service entered failed state.
1月 07 15:21:27 localhost.localdomain systemd[1]: zabbix-server.service failed.
1月 07 15:21:27 localhost.localdomain polkitd[804]: Unregistered Authentication Agent for unix-process:6797:8832061 (system bus name
lines 1907-1944/1944 (END)
Last login: Tue Jan 7 23:24:43 2020 from 10.100.81.67

查看 zabbix 日志分析
发现日志提示权限问题:

5966:20200107:145500.376 using configuration file: /etc/zabbix/zabbix_server.conf
5966:20200107:145500.376 cannot set resource limit: [13] Permission denied
5966:20200107:145500.376 cannot disable core dump, exiting...
5976:20200107:145506.314 Starting Zabbix Server. Zabbix 4.4.4 (revision 3131fdac04

问题根源分析:

[root@localhost logs]# getenforce
Enforcing------这时发现selinux的配置是Enforcing
[root@localhost logs]# sestatus
SELinux status:                 enabled
SELinuxfs mount:                /sys/fs/selinux
SELinux root directory:         /etc/selinux
Loaded policy name:             targeted
Current mode:                   enforcing
Mode from config file:          enforcing
Policy MLS status:              enabled
Policy deny_unknown status:     allowed
Max kernel policy version:      28
[root@localhost logs]# cd /etc/selinux
[root@localhost selinux]# ls
config  final  semanage.conf  targeted  tmp

直接把selinux 关掉如下:
[root@localhost selinux]# vi config

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of three two values:
#     targeted - Targeted processes are protected,
#     minimum - Modification of targeted policy. Only selected processes are protected.
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted

优化修改SELINUX=disabled 

重新启动:

[root@localhost ~]# systemctl start zabbix-server.service
[root@localhost ~]# systemctl status zabbix-server.service
● zabbix-server.service - Zabbix Server
Loaded: loaded (/usr/lib/systemd/system/zabbix-server.service; disabled; vendor preset: disabled)
Active: active (running) since 二 2020-01-07 15:26:56 CST; 6s ago
Process: 1529 ExecStart=/usr/sbin/zabbix_server -c $CONFFILE (code=exited, status=0/SUCCESS)
Main PID: 1531 (zabbix_server)
CGroup: /system.slice/zabbix-server.service
└─1531 /usr/sbin/zabbix_server -c /etc/zabbix/zabbix_server.conf

1月 07 15:26:56 localhost.localdomain systemd[1]: Starting Zabbix Server...
1月 07 15:26:56 localhost.localdomain systemd[1]: zabbix-server.service: Supervising process 1531 which is not our child. ...exits.
1月 07 15:26:56 localhost.localdomain systemd[1]: Started Zabbix Server.
Hint: Some lines were ellipsized, use -l to show in full.
[root@localhost ~]#

因此,一般在安装一些开源软件,如MYSQL、POSTGRES、zabbix、openshift等,在安装前先检查下系统对应版本是否与需安装的软件兼容性、在检查下下,防火墙、安全等是否开启,如下:
1、iptables开启和关闭 
2、SELinux开启和关闭 
3、CentOS 6和CentOS 7 firewalld防火墙的开与关等

zabbix4.4 启动失败分析相关推荐

  1. mysql启动失败分析_MySQL启动失败分析与解决

    1, 背景 早上过来发现电脑非正常关机了,进mysql发现报错: mysql -uroot -p Enter password: ERROR 2002 (HY000): Can"t conn ...

  2. WinCE启动失败的原因与解决办法分析

    本文通过一个真实的嵌入式项目进行说明.文中的嵌入式系统用的是ARM处理器+WinCE平台,项目的目的是要把WinCE平台从旧版本移植到WinCE6.0平台上.但结果是这个WinCE系统在启动的时候经常 ...

  3. [转] 常见WinCE启动失败原因分析

    *********************************************** 一般情况下,为设计中的IC开发SW方案,难免会碰到Bootloader/EBoot/OS启动失败的情况, ...

  4. android R vendor.boot-hal-1-1启动失败问题分析

    记一个android R上开机启动vendor.boot-hal-1-1进程启动失败的过程分析,总结一下下,也给需要的提供个参考. 问题: 在开机启动过程中,一直报错,vendor.boot-hal- ...

  5. enspar启动失败40_分析AR启动失败错误代码40终极解决方案

    1.重新安装ENSP的所有组件(包括winpcap,virtualBox,wireshark,ensp),如果不能解决看2:? 2.打开Oracle VM VirtualBox,删除除了选中的三个ba ...

  6. YARN中的失败分析

    YARN中的失败分析 对于在YARN中运行的MapReduce程序,需要考虑以下几种实体的失败 任务.application master.节点管理器.资源管理器 1. 任务运行失败 任务运行失败类似 ...

  7. IIs管理服务一直启动失败的原因之一

    首先eventlog里面的日志: 万维网发布服务(WWW 服务)没有为站点 1 注册 URL 前缀 https://*:8172/.该站点已被禁用.数据字段包含错误号. IISWMSVC_STARTU ...

  8. 解决办法在安装完Nginx后服务启动失败

    在安装完Nginx后服务启动失败的解决办法 systemctl start nginx //启动服务 Job for nginx.service failed because the control ...

  9. c++builder启动了怎么停止_App 竟然是这样跑起来的 —— Android App/Activity 启动流程分析...

    在我的上一篇文章: AJie:按下电源键后竟然发生了这一幕 -- Android 系统启动流程分析​zhuanlan.zhihu.com 我们分析了系统在开机以后的一系列行为,其中最后一阶段 AMS( ...

最新文章

  1. 20Composite(组合)模式
  2. 可爱又好用!阿里云盘「小白羊版」
  3. 嵌套SQL语句訪问DB2中SQLCA的调用技巧
  4. volatile关键字的作用
  5. 怎么来判断光端机产品的性能优劣?光端机的产品性能有哪些?
  6. Servlet的配置
  7. Samba远程代码执行漏洞(CVE-2017-7494)复现
  8. vsphere client中部署OVF项目后为项目分配IP
  9. 三星 6.01 android操作系统耗电,三星6.01系统耗电加快是为什么
  10. 20191228_Python语言课程设计
  11. 常用的DIV+CSS网站布局的基本框架结构-完整版
  12. 【15.03.13】手动快速在Linux桌面上添加一个程序图标快捷方式
  13. matlab语法——subplot函数
  14. python--数据导入--read_excel
  15. 站长说说之SEO流量翻倍增长的秘密
  16. C# Activator和new的区别
  17. 项目管理中的量化管理
  18. 科研神器Latex:algorithm2e算法常用技巧小结
  19. jetson nano风扇控制、远程控制和远程桌面
  20. 在linux终端中重命名文件,Linux系统中重命名文件的方法有哪些

热门文章

  1. 华为Android彩蛋,华为手机DIY拨号及彩蛋功能介绍
  2. 开启功放安桥TX-NR515的ARC(音频回传通道)功能
  3. 【论文解读IJCAI 2019】Extracting Entities and Events as a Single Task Using a Transition-Based NeuralModel
  4. nxp_3|虚拟机Linux内核资源
  5. 过万 star 高星项目的秘密——GitHub 热点速览 Vol.39
  6. 向上管理:如何正确汇报工作
  7. 权力的下沉:去中心化的真正本质
  8. 【MySQL篇】第三篇——表的操作
  9. 零基础该如何学好3D建模,学些什么,达到什么标准才能入行?
  10. Java设计模式——依赖倒转原则