zabbix日志文件放在/tmp目录下,一个server.log的文件


一,查看zabbix的运行状况

1,#ps aux | grep zabbix :查看zabbix正在运行的进程;

2,#netstat -nplut | grep zabbix :查看系统监听到的zabbix-server端口;

如果没有开启,则用命令#/etc/init.d/zabbix_server_ctl start

(修改完配置后,需要将zabbix服务重新启动)

 

如果网上不停的以红色边框弹:

zabbix server is not running: the information displayed may not be current.

a, http://www.zabbix.com/forum/showthread.php?t=23878&page=3这里面有说到zabbix受selinux的影响而已有这种错误提示。

b, http://www.zabbix.com/forum/showthread.php?t=25321 这里面说到了修改hostname为IP的做法。

①查看selinux产生的log:

type=AVC msg=audit(1351863204.990:32): avc:  denied  { name_connect } for  pid=1575 comm="httpd" dest=10051 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:port_t:s0 tclass=tcp_socket

②selinux允许它通过

#setsebool -P httpd_can_network_connect on

③编辑zabbix.conf.php文件

用ip地址代替hostname