Zabbix server is not running alert on CentOS 6(同时解决SMTP发送失败问题)
来源:互联网 发布:人工智能 新药研发 编辑:程序博客网 时间:2024/05/21 09:09
原创地址:http://www.sysads.co.uk/2013/11/zabbix-server-running-alert/
In some occasions after installing Zabbix server, the following message gets displayed at the home screen:
Zabbix server is not running: the information displayed may not be current
This issue is related to the Linux Security Module (SELinux) which is a mandatory access control (
To clear the alert, follow the steps outlined below:
- First confirm that SELinux is causing this by running the following command from within Linux console:
tail -f /var/log/audit/audit.log |grep -i avc
- You should see the following lines:
type=AVC msg=audit(1383850274.731:32113): avc: denied { name_connect } for pid=2060 comm=”httpd” dest=10051 scontext=unconfined_u:system_r:httpd_t:s0 tcontext=system_u:object_r:port_t:s0 tclass=tcp_socket
The best and recommended option to fixing this is to add a policy to allow the connection
- Run the command “getsebool -a“. Locate the following line which should give you a value ‘–> off“
httpd_can_network_connect --> off
- Run the command to turn it on
setsebool httpd_can_network_connect on
- Now run the command “getsebool httpd_can_network_connect
“. The result should now indicate that the policy is now set to ON
setsebool -P httpd_can_network_connect on
Now the Zabbix alert message should disappear and also the “Zabbix server is running” value should now show ‘Yes‘
做完以上配置后,重启HTTPD服务后测试,如果仍不可发送SMTP,追加setsebool -P httpd_can_sendmail=1命令,然后重启HTTPD服务后即可。
- Zabbix server is not running alert on CentOS 6(同时解决SMTP发送失败问题)
- Zabbix server is not running
- Zabbix server is not running:错误的解决
- zabbix server is not running解决方法
- zabbix监控报错zabbix server is not running: the information displayed may not be current的解决
- zabbix server 报错 zabbix server is not running: the information displayed may not be current
- zabbix监控报错zabbix server is not running: the information displayed may not be current
- VMnet0 is not running问题的解决
- Zabbix监控之邮件发送失败-smtp-server: "550 User has no permission"
- zabbix server is not running: the information displayed may not be current
- zabbix server is not running: the information displayed may not be current.
- Zabbix server is not running: the information displayed may not be current.
- Zabbix server is not running:the information displayed may not be current
- zabbix server is running | No.解决方法
- 20161020ZABBIX安装成功后出现zabbix is not running
- Zabbix-server 安装错误解决(zabbix-server启动失败)
- VMWare的The network bridge on device VMnet0 is not running故障解决
- VMWare的The network bridge on device VMnet0 is not running故障解决
- 别让用户发呆—设计中的防呆策略
- JSON基础示例
- HTTP协议及其POST与GET操作差异 & C#中如何使用POST、GET等
- 【动态规划】景观调整
- Linux内核用到的Radix Tree(转)
- Zabbix server is not running alert on CentOS 6(同时解决SMTP发送失败问题)
- Debug与Release版本的区别
- iOS中使用blend改变图片颜色
- java SimpleDateFormat线程不安全
- gdb用法
- 体会函数参数传递
- 别让用户发呆—设计中的防呆策略
- C/C++中extern关键字详解
- 数独问题之排除法和唯余法