添加zabbix飞信报警

1.在页面添加飞信报警

选择Adminstration--》Media types--》Create media types

wKioL1UboTiRbj5MABIlYD6K-ho193.bmp


2.安装飞信

PHPfetion或者linux版本的飞信客户端,最近网页版飞信维护,PHPfetion无法使用。


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/

将库文件放到lib目录下

vim /etc/ld.so.conf添加一行

/usr/local/zabbix/share/zabbix/alertscripts/fetion/lib/

ldconfig -v


如果出现报错信息:

./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:[email protected]

 Usage:
    --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





你可能感兴趣的:(zabbix,飞信,报警)