生活随笔
收集整理的這篇文章主要介紹了
添加zabbix飞信报警
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
1.在頁(yè)面添加飛信報(bào)警
選擇Adminstration--》Media types--》Create media types
2.安裝飛信
PHPfetion或者linux版本的飛信客戶端,最近網(wǎng)頁(yè)版飛信維護(hù),PHPfetion無(wú)法使用。
wget http://www.it-adv.net/fetion/downng/fetion20091117-linux.tar.gz
tar zxvf fetion20091117-linux.tar.gz?
mv fx/ /usr/local/zabbix/share/zabbix/alertscripts/fetion
mkdir -p /usr/local/zabbix/share/zabbix/alertscripts/fetion/lib/
將庫(kù)文件放到lib目錄下
vim /etc/ld.so.conf添加一行
/usr/local/zabbix/share/zabbix/alertscripts/fetion/lib/
ldconfig -v
如果出現(xiàn)報(bào)錯(cuò)信息:
./fetion?
-bash: ./fetion: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
解決方法:
yum install /lib/ld-linux.so.2
./fetion: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
解決方法:
yum -y install libstdc++.so.6
./fetion: error while loading shared libraries: libgssapi_krb5.so.2: cannot open shared object file: No such file or directory
解決方法:
yum -y install libgssapi_krb5.so.2
./fetion: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
解決方法:
yum -y install libz.so.1
$?/usr/local/zabbix/share/zabbix/alertscripts/fetion/fetion??-h************************?IMPORTANT?STATEMENT?**************************?????????????????????????????????????????????????????????????????****???PLEASE?DON'T?USE?THIS?SOFTWARE?TO?SEND?JUNK?SHORT?MESSAGES.???****???OTHERWISE?PLEASE?BEAR?YOUR?OWN?CONSEQUENCES.??????????????????****?????????????????????????????????????????????????????????????????****????????????????????????????????Version:[20091117002-linux]??????***********************************************************************This?program?is?the?console?version?of?China?Fetion!It's?free?for?personal?user.This?project?website:?http://www.it-adv.net/AUTHOR:KelvinH?MSN/EMAIL:shichangguo@msn.comUsage:--mobile=[mobile]--sid=[sid]--pwd=[pwd]--config=[config?file]?*format:index?mobile?password--index=[index?no?in?config?file,refer?to?sample.conf]--debug??*debug?mode?on--hide??*login?fetion?in?hidden?state--to=[mobile/sid]--add=[uri]--command-path=[command?file?path]--robotmode--daemon(linux?only)--proxy-ip(http?proxy?ip)--proxy-port(http?proxy?port)--msg-gb=[gb2312/gbk?message]--msg-utf8=[utf8?message]--msg-type=[0/1/2/3?sms?longsms?smartmsg?mms]--file-gb=[gb2312/gbk?file]--file-utf8=[utf8?file]--query-cmcc-no--testaccount--auto-retry--get-web-session--action=getpiccode?--mobile=13910000000?--pwd=[pwd]?(--piccode-url=[url])--action=appsubscribe?--mobile=[mobile]?--pwd=[pwd]?--pic-certificate-id=[certid]?--pic-cert-code=[certcode]?--apply-sub-service-url=[url]--action=subscribe?--mobile=[mobile]?--pwd=[pwd]?--sms-code=[smscode]?--subscribe-url=[url]--action=updatepwd?--mobile=[mobile]?--pwd=[pwd]?--sms-code=[smscode]?--update-pwd-url=[url]
參考文檔:
http://my.oschina.net/f91jty/blog/168392
轉(zhuǎn)載于:https://blog.51cto.com/john88wang/1627336
總結(jié)
以上是生活随笔為你收集整理的添加zabbix飞信报警的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。