添加zabbix飞信报警
1.在页面添加飞信报警选择Adminstration--》Media types--》Create media types
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
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
$ /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: **
*********************************************************************
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.com
Usage:
--mobile=
--sid=
--pwd=
--config= *format:index mobile password
--index=
--debug*debug mode on
--hide*login fetion in hidden state
--to=
--add=
--command-path=
--robotmode
--daemon(linux only)
--proxy-ip(http proxy ip)
--proxy-port(http proxy port)
--msg-gb=
--msg-utf8=
--msg-type=
--file-gb=
--file-utf8=
--query-cmcc-no
--testaccount
--auto-retry
--get-web-session
--action=getpiccode --mobile=13910000000 --pwd= (--piccode-url=)
--action=appsubscribe --mobile= --pwd= --pic-certificate-id= --pic-cert-code= --apply-sub-service-url=
--action=subscribe --mobile= --pwd= --sms-code= --subscribe-url=
--action=updatepwd --mobile= --pwd= --sms-code= --update-pwd-url=
页:
[1]