我的 zabbix 出现“404 找不到页面”是怎么回事?
What's wrong of my zabbix with "404 Page Not Found"?
我已经在CentOS 6.8中安装了zabbix 2.4(使用rpms),psql 8.4.20,apache httpd 2.2.15,php 5.6.22,但是我的80端口被nginx占用了,所以我换了httpd 端口为 8080,当我重新启动 httpd 服务时:
[root@kf8 ~]# service httpd restart
stop httpd: [yes]
start httpd:[Mon Aug 22 19:40:03 2016] [warn] module php5_module is already loaded, skipping
[Mon Aug 22 19:40:03 2016] [warn] module php5_module is already loaded, skipping
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[yes]
[root@kf8 ~]#
我已经开始 zabbix-server/agent,下面列出的过程:
[root@kf8 ~]# ps aux|grep zabbix
zabbix 2616 0.0 0.0 163304 2832 ? S 16:48 0:00 zabbix_server -c /etc/zabbix/zabbix_server.conf
zabbix 2623 0.0 0.0 163340 2404 ? S 16:48 0:00 zabbix_server: configuration syncer [synced configuration in 0.007229 sec, idle 60 sec]
zabbix 2624 0.0 0.0 163304 2016 ? S 16:48 0:00 zabbix_server: db watchdog [synced alerts config in 0.005168 sec, idle 60 sec]
zabbix 2625 0.0 0.0 261388 3596 ? S 16:48 0:00 zabbix_server: poller #1 [got 0 values in 0.000070 sec, idle 5 sec]
zabbix 2626 0.0 0.0 261388 3596 ? S 16:48 0:00 zabbix_server: poller #2 [got 0 values in 0.000079 sec, idle 5 sec]
zabbix 2628 0.0 0.0 261388 3596 ? S 16:48 0:00 zabbix_server: poller #3 [got 0 values in 0.000076 sec, idle 5 sec]
zabbix 2629 0.0 0.0 261388 3596 ? S 16:48 0:00 zabbix_server: poller #4 [got 0 values in 0.000075 sec, idle 5 sec]
zabbix 2630 0.0 0.0 261388 3596 ? S 16:48 0:00 zabbix_server: poller #5 [got 0 values in 0.000074 sec, idle 5 sec]
zabbix 2631 0.0 0.0 261388 3596 ? S 16:48 0:00 zabbix_server: unreachable poller #1 [got 0 values in 0.000072 sec, idle 5 sec]
zabbix 2632 0.0 0.0 163304 2004 ? S 16:48 0:00 zabbix_server: trapper #1 [processed data in 0.000000 sec, waiting for connection]
zabbix 2633 0.0 0.0 163304 2004 ? S 16:48 0:00 zabbix_server: trapper #2 [processed data in 0.000000 sec, waiting for connection]
zabbix 2634 0.0 0.0 163304 2004 ? S 16:48 0:00 zabbix_server: trapper #3 [processed data in 0.000000 sec, waiting for connection]
postgres 2635 0.0 0.0 217652 5160 ? Ss 16:48 0:00 postgres: zabbix zabbix [local] idle
zabbix 2636 0.0 0.0 163304 2004 ? S 16:48 0:00 zabbix_server: trapper #4 [processed data in 0.000000 sec, waiting for connection]
zabbix 2637 0.0 0.0 163304 2004 ? S 16:48 0:00 zabbix_server: trapper #5 [processed data in 0.000000 sec, waiting for connection]
zabbix 2638 0.0 0.0 163752 1824 ? S 16:48 0:00 zabbix_server: icmp pinger #1 [got 0 values in 0.000103 sec, idle 5 sec]
zabbix 2639 0.0 0.0 163304 1988 ? S 16:48 0:00 zabbix_server: alerter [sent alerts: 0 success, 0 fail in 0.000385 sec, idle 30 sec]
zabbix 2640 0.0 0.0 163616 2136 ? S 16:48 0:00 zabbix_server: housekeeper [deleted 0 hist/trends, 0 items, 0 events, 0 sessions, 0 alarms, 0 audit items in 0.003631 sec, idle 1 hour(s)]
postgres 2641 0.0 0.0 217652 5160 ? Ss 16:48 0:00 postgres: zabbix zabbix [local] idle
zabbix 2642 0.0 0.0 163304 2092 ? S 16:48 0:00 zabbix_server: timer #1 [processed 0 triggers, 0 events in 0.000045 sec, 0 maintenances in 0.000000 sec, idle 30 sec]
postgres 2643 0.0 0.0 217652 5156 ? Ss 16:48 0:00 postgres: zabbix zabbix [local] idle
zabbix 2644 0.0 0.0 163304 2008 ? S 16:48 0:00 zabbix_server: http poller #1 [got 0 values in 0.000521 sec, idle 5 sec]
postgres 2645 0.0 0.0 217652 5156 ? Ss 16:48 0:00 postgres: zabbix zabbix [local] idle
zabbix 2646 0.0 0.0 260936 3548 ? S 16:48 0:00 zabbix_server: discoverer #1 [processed 0 rules in 0.000418 sec, idle 60 sec]
postgres 2647 0.0 0.0 217652 5148 ? Ss 16:48 0:00 postgres: zabbix zabbix [local] idle
zabbix 2648 0.0 0.0 163308 2004 ? S 16:48 0:00 zabbix_server: history syncer #1 [synced 0 items in 0.000025 sec, idle 5 sec]
zabbix 2649 0.0 0.0 163308 2004 ? S 16:48 0:00 zabbix_server: history syncer #2 [synced 0 items in 0.000019 sec, idle 5 sec]
zabbix 2650 0.0 0.0 163308 2004 ? S 16:48 0:00 zabbix_server: history syncer #3 [synced 0 items in 0.000025 sec, idle 5 sec]
postgres 2651 0.0 0.0 217744 5908 ? Ss 16:48 0:00 postgres: zabbix zabbix [local] idle
zabbix 2652 0.0 0.0 163308 2004 ? S 16:48 0:00 zabbix_server: history syncer #4 [synced 0 items in 0.000023 sec, idle 5 sec]
postgres 2653 0.0 0.0 217736 5988 ? Ss 16:48 0:00 postgres: zabbix zabbix [local] idle
postgres 2654 0.0 0.0 217780 6120 ? Ss 16:48 0:01 postgres: zabbix zabbix [local] idle
zabbix 2655 0.0 0.0 163304 2008 ? S 16:48 0:00 zabbix_server: escalator [processed 0 escalations in 0.000228 sec, idle 3 sec]
zabbix 2656 0.0 0.0 163304 2020 ? S 16:48 0:00 zabbix_server: proxy poller #1 [exchanged data with 0 proxies in 0.000070 sec, idle 5 sec]
zabbix 2657 0.0 0.0 163304 1780 ? S 16:48 0:01 zabbix_server: self-monitoring [processed data in 0.000041 sec, idle 1 sec]
postgres 2658 0.0 0.0 217652 5164 ? Ss 16:48 0:00 postgres: zabbix zabbix [local] idle
postgres 2659 0.0 0.0 217652 5176 ? Ss 16:48 0:00 postgres: zabbix zabbix [local] idle
postgres 2661 0.0 0.0 217652 5168 ? Ss 16:48 0:00 postgres: zabbix zabbix [local] idle
postgres 2662 0.0 0.0 217652 5536 ? Ss 16:48 0:00 postgres: zabbix zabbix [local] idle
postgres 2663 0.0 0.0 217652 5176 ? Ss 16:48 0:00 postgres: zabbix zabbix [local] idle
postgres 2664 0.0 0.0 217652 5172 ? Ss 16:48 0:00 postgres: zabbix zabbix [local] idle
postgres 2665 0.0 0.0 217652 5176 ? Ss 16:48 0:00 postgres: zabbix zabbix [local] idle
postgres 2666 0.0 0.0 217652 5172 ? Ss 16:48 0:00 postgres: zabbix zabbix [local] idle
postgres 2667 0.0 0.0 217652 5176 ? Ss 16:48 0:00 postgres: zabbix zabbix [local] idle
postgres 2668 0.0 0.0 217652 5172 ? Ss 16:48 0:00 postgres: zabbix zabbix [local] idle
postgres 2669 0.0 0.0 217652 5184 ? Ss 16:48 0:00 postgres: zabbix zabbix [local] idle
postgres 2670 0.0 0.0 217652 5172 ? Ss 16:48 0:00 postgres: zabbix zabbix [local] idle
postgres 2671 0.0 0.0 217740 6068 ? Ss 16:48 0:00 postgres: zabbix zabbix [local] idle
zabbix 2746 0.0 0.0 77136 1384 ? S 16:48 0:00 zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
zabbix 2748 0.0 0.0 77136 1976 ? S 16:48 0:06 zabbix_agentd: collector [idle 1 sec]
zabbix 2749 0.0 0.0 77136 1216 ? S 16:48 0:00 zabbix_agentd: listener #1 [waiting for connection]
zabbix 2750 0.0 0.0 77136 1216 ? S 16:48 0:00 zabbix_agentd: listener #2 [waiting for connection]
zabbix 2751 0.0 0.0 77136 1216 ? S 16:48 0:00 zabbix_agentd: listener #3 [waiting for connection]
postgres 2812 0.0 0.0 218652 7768 ? Ss 16:49 0:00 postgres: zabbix zabbix [local] idle
root 4790 0.0 0.0 103328 908 pts/1 S+ 19:42 0:00 grep zabbix
但是我无法连接2网站,而且我在zabbix-server/agent的错误日志文件中找不到错误,尽管我打开了最详细的日志级别。
显示的网站是这样的:
404 找不到页面
找不到您请求的页面。
尝试http://yourzabbixserverIP:8080/zabbix访问zabbix web UI并跟踪存储在/var/log/httpd/error_log中的apache错误日志。
错误日志说明了什么?
我已经在CentOS 6.8中安装了zabbix 2.4(使用rpms),psql 8.4.20,apache httpd 2.2.15,php 5.6.22,但是我的80端口被nginx占用了,所以我换了httpd 端口为 8080,当我重新启动 httpd 服务时:
[root@kf8 ~]# service httpd restart
stop httpd: [yes]
start httpd:[Mon Aug 22 19:40:03 2016] [warn] module php5_module is already loaded, skipping
[Mon Aug 22 19:40:03 2016] [warn] module php5_module is already loaded, skipping
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[yes]
[root@kf8 ~]#
我已经开始 zabbix-server/agent,下面列出的过程:
[root@kf8 ~]# ps aux|grep zabbix
zabbix 2616 0.0 0.0 163304 2832 ? S 16:48 0:00 zabbix_server -c /etc/zabbix/zabbix_server.conf
zabbix 2623 0.0 0.0 163340 2404 ? S 16:48 0:00 zabbix_server: configuration syncer [synced configuration in 0.007229 sec, idle 60 sec]
zabbix 2624 0.0 0.0 163304 2016 ? S 16:48 0:00 zabbix_server: db watchdog [synced alerts config in 0.005168 sec, idle 60 sec]
zabbix 2625 0.0 0.0 261388 3596 ? S 16:48 0:00 zabbix_server: poller #1 [got 0 values in 0.000070 sec, idle 5 sec]
zabbix 2626 0.0 0.0 261388 3596 ? S 16:48 0:00 zabbix_server: poller #2 [got 0 values in 0.000079 sec, idle 5 sec]
zabbix 2628 0.0 0.0 261388 3596 ? S 16:48 0:00 zabbix_server: poller #3 [got 0 values in 0.000076 sec, idle 5 sec]
zabbix 2629 0.0 0.0 261388 3596 ? S 16:48 0:00 zabbix_server: poller #4 [got 0 values in 0.000075 sec, idle 5 sec]
zabbix 2630 0.0 0.0 261388 3596 ? S 16:48 0:00 zabbix_server: poller #5 [got 0 values in 0.000074 sec, idle 5 sec]
zabbix 2631 0.0 0.0 261388 3596 ? S 16:48 0:00 zabbix_server: unreachable poller #1 [got 0 values in 0.000072 sec, idle 5 sec]
zabbix 2632 0.0 0.0 163304 2004 ? S 16:48 0:00 zabbix_server: trapper #1 [processed data in 0.000000 sec, waiting for connection]
zabbix 2633 0.0 0.0 163304 2004 ? S 16:48 0:00 zabbix_server: trapper #2 [processed data in 0.000000 sec, waiting for connection]
zabbix 2634 0.0 0.0 163304 2004 ? S 16:48 0:00 zabbix_server: trapper #3 [processed data in 0.000000 sec, waiting for connection]
postgres 2635 0.0 0.0 217652 5160 ? Ss 16:48 0:00 postgres: zabbix zabbix [local] idle
zabbix 2636 0.0 0.0 163304 2004 ? S 16:48 0:00 zabbix_server: trapper #4 [processed data in 0.000000 sec, waiting for connection]
zabbix 2637 0.0 0.0 163304 2004 ? S 16:48 0:00 zabbix_server: trapper #5 [processed data in 0.000000 sec, waiting for connection]
zabbix 2638 0.0 0.0 163752 1824 ? S 16:48 0:00 zabbix_server: icmp pinger #1 [got 0 values in 0.000103 sec, idle 5 sec]
zabbix 2639 0.0 0.0 163304 1988 ? S 16:48 0:00 zabbix_server: alerter [sent alerts: 0 success, 0 fail in 0.000385 sec, idle 30 sec]
zabbix 2640 0.0 0.0 163616 2136 ? S 16:48 0:00 zabbix_server: housekeeper [deleted 0 hist/trends, 0 items, 0 events, 0 sessions, 0 alarms, 0 audit items in 0.003631 sec, idle 1 hour(s)]
postgres 2641 0.0 0.0 217652 5160 ? Ss 16:48 0:00 postgres: zabbix zabbix [local] idle
zabbix 2642 0.0 0.0 163304 2092 ? S 16:48 0:00 zabbix_server: timer #1 [processed 0 triggers, 0 events in 0.000045 sec, 0 maintenances in 0.000000 sec, idle 30 sec]
postgres 2643 0.0 0.0 217652 5156 ? Ss 16:48 0:00 postgres: zabbix zabbix [local] idle
zabbix 2644 0.0 0.0 163304 2008 ? S 16:48 0:00 zabbix_server: http poller #1 [got 0 values in 0.000521 sec, idle 5 sec]
postgres 2645 0.0 0.0 217652 5156 ? Ss 16:48 0:00 postgres: zabbix zabbix [local] idle
zabbix 2646 0.0 0.0 260936 3548 ? S 16:48 0:00 zabbix_server: discoverer #1 [processed 0 rules in 0.000418 sec, idle 60 sec]
postgres 2647 0.0 0.0 217652 5148 ? Ss 16:48 0:00 postgres: zabbix zabbix [local] idle
zabbix 2648 0.0 0.0 163308 2004 ? S 16:48 0:00 zabbix_server: history syncer #1 [synced 0 items in 0.000025 sec, idle 5 sec]
zabbix 2649 0.0 0.0 163308 2004 ? S 16:48 0:00 zabbix_server: history syncer #2 [synced 0 items in 0.000019 sec, idle 5 sec]
zabbix 2650 0.0 0.0 163308 2004 ? S 16:48 0:00 zabbix_server: history syncer #3 [synced 0 items in 0.000025 sec, idle 5 sec]
postgres 2651 0.0 0.0 217744 5908 ? Ss 16:48 0:00 postgres: zabbix zabbix [local] idle
zabbix 2652 0.0 0.0 163308 2004 ? S 16:48 0:00 zabbix_server: history syncer #4 [synced 0 items in 0.000023 sec, idle 5 sec]
postgres 2653 0.0 0.0 217736 5988 ? Ss 16:48 0:00 postgres: zabbix zabbix [local] idle
postgres 2654 0.0 0.0 217780 6120 ? Ss 16:48 0:01 postgres: zabbix zabbix [local] idle
zabbix 2655 0.0 0.0 163304 2008 ? S 16:48 0:00 zabbix_server: escalator [processed 0 escalations in 0.000228 sec, idle 3 sec]
zabbix 2656 0.0 0.0 163304 2020 ? S 16:48 0:00 zabbix_server: proxy poller #1 [exchanged data with 0 proxies in 0.000070 sec, idle 5 sec]
zabbix 2657 0.0 0.0 163304 1780 ? S 16:48 0:01 zabbix_server: self-monitoring [processed data in 0.000041 sec, idle 1 sec]
postgres 2658 0.0 0.0 217652 5164 ? Ss 16:48 0:00 postgres: zabbix zabbix [local] idle
postgres 2659 0.0 0.0 217652 5176 ? Ss 16:48 0:00 postgres: zabbix zabbix [local] idle
postgres 2661 0.0 0.0 217652 5168 ? Ss 16:48 0:00 postgres: zabbix zabbix [local] idle
postgres 2662 0.0 0.0 217652 5536 ? Ss 16:48 0:00 postgres: zabbix zabbix [local] idle
postgres 2663 0.0 0.0 217652 5176 ? Ss 16:48 0:00 postgres: zabbix zabbix [local] idle
postgres 2664 0.0 0.0 217652 5172 ? Ss 16:48 0:00 postgres: zabbix zabbix [local] idle
postgres 2665 0.0 0.0 217652 5176 ? Ss 16:48 0:00 postgres: zabbix zabbix [local] idle
postgres 2666 0.0 0.0 217652 5172 ? Ss 16:48 0:00 postgres: zabbix zabbix [local] idle
postgres 2667 0.0 0.0 217652 5176 ? Ss 16:48 0:00 postgres: zabbix zabbix [local] idle
postgres 2668 0.0 0.0 217652 5172 ? Ss 16:48 0:00 postgres: zabbix zabbix [local] idle
postgres 2669 0.0 0.0 217652 5184 ? Ss 16:48 0:00 postgres: zabbix zabbix [local] idle
postgres 2670 0.0 0.0 217652 5172 ? Ss 16:48 0:00 postgres: zabbix zabbix [local] idle
postgres 2671 0.0 0.0 217740 6068 ? Ss 16:48 0:00 postgres: zabbix zabbix [local] idle
zabbix 2746 0.0 0.0 77136 1384 ? S 16:48 0:00 zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
zabbix 2748 0.0 0.0 77136 1976 ? S 16:48 0:06 zabbix_agentd: collector [idle 1 sec]
zabbix 2749 0.0 0.0 77136 1216 ? S 16:48 0:00 zabbix_agentd: listener #1 [waiting for connection]
zabbix 2750 0.0 0.0 77136 1216 ? S 16:48 0:00 zabbix_agentd: listener #2 [waiting for connection]
zabbix 2751 0.0 0.0 77136 1216 ? S 16:48 0:00 zabbix_agentd: listener #3 [waiting for connection]
postgres 2812 0.0 0.0 218652 7768 ? Ss 16:49 0:00 postgres: zabbix zabbix [local] idle
root 4790 0.0 0.0 103328 908 pts/1 S+ 19:42 0:00 grep zabbix
但是我无法连接2网站,而且我在zabbix-server/agent的错误日志文件中找不到错误,尽管我打开了最详细的日志级别。
显示的网站是这样的:
404 找不到页面
找不到您请求的页面。
尝试http://yourzabbixserverIP:8080/zabbix访问zabbix web UI并跟踪存储在/var/log/httpd/error_log中的apache错误日志。 错误日志说明了什么?