zabbix rpm包下載地址:http://repo.zabbix.com/zabbix/
configure: error: Invalid OPENIPMI directory - unable to find ipmiif.h
需要安裝libssh2-devel
configure: error: Invalid OPENIPMI directory - unable to find ipmiif.h
需要安裝OpenIPMI-devel
[root@zabbix ~]# sed -i '/^ServerActive/s/127.0.0.1/192.168.1.10/g' /usr/local/zabbix/etc/zabbix_agentd.conf
注:Zabbix安裝完成後,切忌關掉guest,防止非法登錄
配置好後,關閉安裝:
修改前:
[root@Zabbix ~]# cd /usr/local/nginx/html/zabbix/include/ [root@Zabbix include]# head -n 281 menu.inc.php |tail -n 9 array( 'url' => 'report4.php', 'label' => _('Notifications') ), // array( // 'url' => 'setup.php', // 'label' => _('Installation'), // 'sub_pages' => array('warning.php') // ) [root@Zabbix include]#
修改後:
然後用telnet 192.168.1.10 10051,如果不通,看看zabbix.conf.php配置是否正確
[root@Zabbix conf]# pwd /usr/local/nginx/html/zabbix/conf [root@Zabbix conf]# vim zabbix.conf.php
查看Zabbix圖形時出現亂碼(替換字體[楷體]):
[root@Zabbix fonts]# pwd /usr/local/nginx/html/zabbix/fonts [root@Zabbix fonts]# ls DejaVuSans.ttf simkai.ttf [root@Zabbix fonts]# [root@Zabbix include]# pwd /usr/local/nginx/html/zabbix/include [root@Zabbix include]# sed -i '/ZBX_FONT_NAME/s/DejaVuSans/simkai/g' defines.inc.php [root@zabbix include]# sed -i '/ZBX_GRAPH_FONT_NAME/s/DejaVuSans/simkai/g' defines.inc.php
如果跳轉到localhost,如下圖:
我這裏是用的NG,之前寫的是localhost
如果出現下面的問題,是編譯時沒有把SSH編譯到zabbix裏面
如果出現下面的情況,是編譯時沒編譯IPMI到zabbix,IPMI需要硬件支持
Zabbix的配置文件記錄在數據庫中;
[root@Zabbix ~]# mysql -uroot -predhat mysql> use zabbix mysql> show tables; mysql> select name from actions; +------------------------------------------+ | name | +------------------------------------------+ | Auto discovery. Linux servers. | | Report problems to Zabbix administrators | | Report Network Traffic to zabbix admin | | Report ftp Server status | +------------------------------------------+ 4 rows in set (0.00 sec) mysql>