免费高清特黄a大片,九一h片在线免费看,a免费国产一级特黄aa大,国产精品国产主播在线观看,成人精品一区久久久久,一级特黄aa大片,俄罗斯无遮挡一级毛片

分享

zabbix常見(jiàn)問(wèn)題處理整理

 昵稱(chēng)19854034 2014-10-16


zabbix是一個(gè)基于WEB界面的提供分布式系統(tǒng)監(jiān)視以及網(wǎng)絡(luò)監(jiān)視功能的企業(yè)級(jí)的開(kāi)源解決方案。
下載: http://www./download.php
幫助:https://www./documentation/doku.php?id=2.0/manual/appliance

環(huán)境:SUSE 12
Zabbix 2.0.4

★ Windows agent install:
1) edit zabbix_agentd.win.conf 
2) C:>zabbix_agentd.exe --c C:zabbix_agents_2.0.4.winconfzabbix_agentd.win.conf --install
zabbix_agentd.exe [3724]: service [Zabbix Agent] installed successfully
zabbix_agentd.exe [3724]: event source [Zabbix Agent] installed successfully

配置文件修改:
zabbix_agentd.win.conf

[@more@]LogFIle=c:zabbix_agentd.log
Server=監(jiān)控服務(wù)器IP
Hostname=本機(jī)的主機(jī)名或IP地址
ServerActive=127.0.0.1:10051

★ Linux agent install:
[root@xxx]# zabbix_agentd -c /usr/local/zabbix_agentd.conf 
zabbix_agentd [14423]: user zabbix does not exist
zabbix_agentd [14423]: cannot run as root!
解決方法: useradd zabbix

aix test:
#> ./usr/local/bin/zabbix/sbin/zabbix_agentd -c /home/zabbix/conf/zabbix_agentd.conf 

★ restart or status for service. To do so, log in using SSH as root user and execute:
$> service apache2 restart
$> service zabbix_server status
$> service mysql status

$> rczabbix_server status
$> /etc/init.d/zabbix_server status

★ 時(shí)區(qū):
# cp /usr/share/zoneinfo/Asia/Chongqing /etc/localtime

★ 查看當(dāng)前時(shí)區(qū)
# date -R
Wed, 13 Mar 2013 20:09:02 +0800

★ 修改硬件時(shí)間
# hwclock -w

★ 修改PHP.ini 時(shí)區(qū)為中國(guó),否則時(shí)間差8小時(shí):
# vi /etc/php5/apache2/php.ini 內(nèi)容改成如下
date.timezone = 'RPC'

★ 修改時(shí)區(qū)后,登錄WEB后顯示錯(cuò)誤:
date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Chongqing' for 'CST/8.0/no DST' instead [include/func.inc.php:251]
修改PHP.ini 文件中date.timezone = 'Asia/Chongqing'

★ 中文顯示亂碼的問(wèn)題:
通過(guò)上傳中文字體修改原字體來(lái)解決
# cd /usr/share/zabbix/fonts
# mv DejaVuSans.ttf DejaVuSans.ttf.bak
# mv simsun.ttc DejaVuSans.ttf

★ swap空間不足問(wèn)題

★ 日志:
zabbix_server: LogFile=/var/log/zabbix/zabbix_server.log
Mysql :log_error=/var/log/mysql/mysqld.log

★ Frontend access
# vi /etc/apache2/conf.d/zabbix.conf
# service apache2 restart

★ 登錄zabbix Web界面后顯示

zabbix_server.log中顯示
2706:20130313:150455.037 cannot send list of active checks to [127.0.0.1]: host [Zabbix server] not monitored
2705:20130313:150655.060 cannot send list of active checks to [127.0.0.1]: host [Zabbix server] not monitored
2702:20130313:150855.082 cannot send list of active checks to [127.0.0.1]: host [Zabbix server] not monitored
解決方法:
1)
# SuSEfirewall2 stop
# SuSEfirewall2 open EXT TCP zabbix-trapper zabbix-agent
# SuSEfirewall2 start
SuSEfirewall2: Setting up rules from /etc/sysconfig/SuSEfirewall2 ...
SuSEfirewall2: Firewall rules successfully set
2)
iptables 有點(diǎn)蛋疼,ubuntu裝了iptables以后 規(guī)則全空就是拒絕連接的。。
而且也不像redhat可以用服務(wù)停掉,暫時(shí)不知道怎么禁用的 
實(shí)在不行你就加兩條規(guī)則試試吧,
# iptables -A INPUT -p tcp -m tcp --dport 10051 -j ACCEPT
# iptables -A INPUT -p tcp -m tcp --dport 10050 -j ACCEPT
保存新增iptables規(guī)則
# iptables-save > /root/iptables.save
# vi /etc/init.d/boot.local
iptables-restore /root/iptables.save #增加一條命令,讓系統(tǒng)的啟動(dòng)的時(shí)候自動(dòng)恢復(fù)
3)
setsebool -P httpd_can_network_connect on
4)

提示error while loading shared libraries: libmysqlclient.so.16: cannot open

出處:http://denniswwh./post/15174/507818
error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or directory

問(wèn)題解決辦法:

locate libmysqlclient.so.16

如我的mysql安裝在/usr/local/mysql下,則結(jié)果為

/usr/local/mysql/lib/mysql/libmysqlclient.so.16

vi /etc/ld.so.conf

增加一行 /usr/local/mysql/lib/mysql

然后執(zhí)行l(wèi)dconfig生效。

5)   啟動(dòng)zabbix客戶(hù)端時(shí),無(wú)法啟動(dòng)服務(wù),執(zhí)行命令為
# /etc/init.d/zabbix_agentd start
 
Starting zabbix_agentd:  /etc/init.d/functions: line 500: /usr/local/zabbix/bin/zabbix_agentd: No such file or directory
                                                           [FAILED]
You have new mail in /var/spool/mail/root
 
分析解決:說(shuō)明該啟動(dòng)方式不成功,可能是哪里沒(méi)有配置好,查網(wǎng)上資料說(shuō)啟動(dòng)zabbix最好用完整的啟動(dòng)方式比較好,要不然會(huì)出現(xiàn)莫名其妙的問(wèn)題,于是執(zhí)行另外一種啟動(dòng)方式命令:
 
 #  /usr/local/zabbix/sbin/zabbix_agentd -c /etc/zabbix/zabbix_agent.conf
 
啟動(dòng)成功,查看端口偵聽(tīng)情況為:
 
[root@localhost ~]# netstat -nltp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name  
tcp        0      0 0.0.0.0:10050               0.0.0.0:*                   LISTEN      3499/zabbix_agentd 
tcp        0      0 0.0.0.0:714                 0.0.0.0:*                   LISTEN      2652/rpc.statd     
tcp        0      0 0.0.0.0:111                 0.0.0.0:*                   LISTEN      2620/portmap       
tcp        0      0 127.0.0.1:631               0.0.0.0:*                   LISTEN      2883/cupsd         
tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LISTEN      2927/sendmail: acce
tcp        0      0 :::22                       :::*                        LISTEN      2874/sshd 

    本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶(hù)發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購(gòu)買(mǎi)等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評(píng)論

    發(fā)表

    請(qǐng)遵守用戶(hù) 評(píng)論公約

    類(lèi)似文章 更多