zabbix的具体安装在此就不再详述,以下是在安装过程中碰到的问题,仅供参考,谢谢 4248:20121025:133318.754 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'root'@'localhost' (using password: NO)
  4248:20121025:133318.755 Database is down. Reconnecting in 10 seconds.
这是未将/usr/local/zabbix/etc/zabbix_server.conf中DB参数修改,连接失败所致

[root@station3 ~]# vim /etc/zabbix/zabbix_server.conf 
修改以下三项: 
DBName=zabbix 
DBUser=root

DBPassword=redhat

如果修改上述三项后还是没办法正常启动,把"/var/www/html/zabbix/conf/zabbix.conf.php"文件中

$DB['TYPE']     = 'MYSQL';
$DB['SERVER']   = 'localhost';
$DB['PORT']     = '3306';
$DB['DATABASE'] = 'zabbix';
$DB['USER']     = 'root';
$DB['PASSWORD'] = 'sj123456';

DB端口修改为3306重启服务即可。

# cat /tmp/zabbix_server.log
17376:20121025:143052.725 cannot send list of active checks to [127.0.0.1]: host [station3.example.com] not found
是因为zabbix_agentd.conf未设置IP:Port
# vim /etc/zabbix/zabbix_agentd.conf
ServerActive=192.168.1.69:20051  

在configuration-> Hosts面板中Status,启用monitored, 才能监控server。
 

wKiom1L9tXig9R3yAAQaLwCu3yA640.jpg

然后查看netstat -ntlp | grep zabbix 会查看到服务已经起来

如果此时在页面上还能看到提示zabbix_server is not running 此时可以检查selinux是否关闭

#getenforce   

#setenforce 0   /如果没有关闭,设置为0即可。