一開始按照這篇部落格來配置zabbix
啟動zabbix時出現以下提示
[root@www ~]# systemctl start zabbix-server
job for zabbix-server.service failed because a configured resource limit was exceeded. see "systemctl status zabbix-server.service" and "journalctl -xe" for details.
按照提示執行systemctl status zabbix-server.service命令檢視狀態,發現是失敗的
[root@www ~]# systemctl status zabbix-server.service
● zabbix-server.service - zabbix server
loaded: loaded (/usr/lib/systemd/system/zabbix-server.service; enabled; vendor preset: disabled)
active: activating (auto-restart) (result: resources) since 四 2018-05-10 22:34:30 cst; 691ms ago
process: 3915 execstart=/usr/sbin/zabbix_server -c $conffile (code=exited, status=0/success)
5月 10 22:34:30 www.aa.com systemd[1]: zabbix-server.service never wrote its pid ...g.
5月 10 22:34:30 www.aa.com systemd[1]: failed to start zabbix server.
5月 10 22:34:30 www.aa.com systemd[1]: unit zabbix-server.service entered failed ...e.
5月 10 22:34:30 www.aa.com systemd[1]: zabbix-server.service failed.
hint: some lines were ellipsized, use -l to show in full.
然後執行第二個提示的命令journalctl -xe,發現有點有效的提示
[root@www ~]# journalctl -xe
-- support:
-- -- unit zabbix-server.service has failed.
-- -- the result is failed.
5月 10 22:35:13 www.aa.com systemd[1]: unit zabbix-server.service entered failed state.
5月 10 22:35:13 www.aa.com systemd[1]: zabbix-server.service failed.
5月 10 22:35:13 www.aa.com polkitd[681]: unregistered authentication agent for unix-pro
5月 10 22:35:16 www.aa.com dbus[694]: [system] activating service name='org.fedoraproje
5月 10 22:35:16 www.aa.com dbus-daemon[694]: dbus[694]: [system] activating service nam
5月 10 22:35:17 www.aa.com dbus[694]: [system] successfully activated service 'org.fedo
5月 10 22:35:17 www.aa.com dbus-daemon[694]: dbus[694]: [system] successfully activated
5月 10 22:35:17 www.aa.com setroubleshoot[3997]: selinux is preventing zabbix_server fr
5月 10 22:35:17 www.aa.com python[3997]: selinux is preventing zabbix_server from using
***** plugin catchall (100. confidence) sugg
if you believe that zabbix_server should be a
then you should report this as a bug.
you can generate a local policy module to all
doallow this access for now by executing:
# ausearch -c 'zabbix_server' --raw | audit2a
# semodule -i my-zabbixserver.pp
看到這個提示,果斷執行注釋掉的兩個命令試試,結果執行第乙個 ausearch -c 'zabbix_server' --raw | audit2a 並沒有成功。
然後執行第二個命令semodule -i my-zabbixserver.pp 等待執行完畢後,再次啟動,得到解決
[root@www ~]# semodule -i my-zabbixserver.pp
[root@www ~]# systemctl start zabbix-server
[root@www ~]# netstat -anpt | grep zabbix
[root@www ~]# netstat -anpt | grep 10051
tcp 0 0 0.0.0.0:10051 0.0.0.0:* listen 4546/zabbix_server
tcp6 0 0 :::10051 :::* listen 4546/zabbix_server
phpStudy啟動失敗時的解決方法
php5.3 5.4和apache都是用vc9編譯,電腦必須安裝vc9執行庫才能執行。php5.5 5.6是vc11編譯,如用php5.5 5.6 必須安裝vc11執行庫。php7.0 7.1是vc14編譯,如用php7.0 7.1 必須安裝vc14執行庫。密碼 v7ap php5.5以上才有64位...
解決Rabbitmq server 啟動失敗
最近在使用devstack部署開發環境的時候,遇到了rabbitmq server安裝後執行啟動指令碼失敗的情況 invoke rc.d initscript rabbitmq server,action start failed.原因在於rabbitmq會在啟動前會解析主機名的位址是否可通。需要在...
Vmware vcenter 啟動失敗解決辦法
1 vcenter安裝在windows server 2008 r2 enterprise中文版作業系統上,一般情況下按照下一步操作即可。2 vcenter 所在的計算機重啟後發現vcenter 服務啟不來,是由於沒有vcenter的license的原因,需要解除安裝重新安裝。重新安裝vcenter...