I think it's no stranger to all of us. Here I will not talk much about it. Many of our friends use it as an alarm for the monitoring system and send an alarm text message to the O & M Administrator via February, it is relatively simple to install on a 32-bit system, but it is a little complicated to install on a 64-bit system, the following uses the 32-bit and 64-bit CentOS 6.4 system as an example to describe the installation and configuration. Other Linux systems are similar:
I. First download fetion robot-related data packets, which can be downloaded from the bottom attachment of the Article. To make it easier for everyone to use, I have prepared a tar package and downloaded it directly.
Attachment description:
Fetion_for_x32.gz is a Flying Robot software package for 32-bit systems.
Fetion_for_x64.gz is a Flying Robot software package for 64-bit systems.
Fetion_For_CentOS6.4_x64_Packages.gz is the rpm package that needs to be installed before the 64-bit system is installed and configured.
Ii. install and configure the fetion Robot
1. Upload the downloaded fetion package. The files in the package are stored in the corresponding directory structure. decompress the package using the tar command and copy it directly.
32-bit system:
[Root @ Cnyunwei] # tar zxvf fetion_for_x32.gz
Decompress the package and copy the corresponding file. install it in the directory/usr/local/fetion. You can use it if no exceptions occur;
64-bit system:
[Root @ Cnyunwei] # tar zxvf fetion_for_x64.gz
After decompression, copy the corresponding file and install it in the directory:/usr/local/fetion. If the 64-bit system is not installed, an error will be reported if the robot is directly tested;
You also need to install the following 32-bit package files. If your system is not installed, you can directly install the package through the system disk or directly download the attachment and upload it for installation; if you are a little lazy, you can install it through yum. Here we use a CentOS 6.4 System Version package as an example:
A Shared Library is added during 64-bit system installation. Run ldconfig to make it take effect:
[root@Cnyunwei]# ldconfig
Check whether/usr/lib64/fetion is displayed.
[root@Cnyunwei]# ldconfig -v | grep fetion
Check/usr/lib64/fetion.
Do not ignore the message "not symbolic link not a symbolic link;
2. Verify that the flying robot is properly installed
[root@Cnyunwei fetion]# ./fetion
* *********************** Important statement ************** **********
****
** Please don't use this software to send junk short messages .**
** Otherwise please bear your own consequences .**
****
** Version: [20101205002-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.com
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]
-- 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 sms longsms smartmsg]
-- File-gb = [gb2312/gbk file]
-- File-utf8 = [utf8 file]
-- Query-cmcc-no
-- Auto-retry
-- Exit-on-verifycode
-- T3key = [http://www.tui3.com/page/smssend/]
If you see the above test results, it means that your flying robot has been successfully installed. At this point, your flying robot can send text messages normally. If the above installation and configuration still have some problems, please steadily communicate with www.cnyunwei.com
3. send text messages through fetion Test
[Root @ Cnyunwei] # cd/usr/local/fetion
[Root @ Cnyunwei fetion] #. /fetion -- mobile = 187 ******** -- pwd = www.cnyunwei.com -- to = 135 ******** -- msg-gb = 'cnyunwei-Cacti + nagios Test Message! '
HTTP/1.1 200 OK
Connection: close
Date: Wed, 26 Jun 2013 06:38:31 GMT
Server: Microsoft-Microsoft IIS/6.0
X-Powered-By: ASP. NET
Content-Location: nav.fetion.com.cn
X-AspNet-Version: 4.0.30319
Cache-Control: private
Content-Type: text/html; charset = UTF-8
Content-Length: 2349
<? Xml version = "1.0" encoding = "UTF-8"?> <Results> <pic-certificate id = "inherit" pic = "/9j/4 samples/logs/2 samples/wAARCAAkAFoDASIAAhEBAxEB/8 samples/logs + Tl5ufo6erx8vP09fb3 + Pn6/8 samples/ authorization + Pn6/authorization + KVt468Q32n2Gn/Signature + JfA/Signature + signature/OP6MmbuuaO2i/Signature + signature/Signature upwb/4wabpeqafpt54e1 + signature/Signature + signature/ ciXom/kernel + YtLt2 + H/kernel + kernel/GvinTfid4h0/xEJ5xPam5 + kernel + 7 mkmmk/JsbTTa9P6/kernel + ENP8E6H/kernel + kernel/kernel + GGr + Kernel + 6wcJliOnKjI69MH1eiklZJLo7jbu2 + + assets/dw33RzTvEnwufX/assets // Z "/> </results>
The graphic verification code has been generated. The file name is 187 ********. jpg. Please identify it and enter the graphic verification code:
When you send a text message for the first time, you will see a message similar to the above. You need to enter the verification code. After you send the text message, you do not need the verification code, this verification code exists in the/usr/local/fetion directory as an image. You can download the image and view the verification code using SecureFX or other tools.
It can be seen that the verification is wwrw. Enter the verification code and press enter to see the following message. If your sending fails, check whether the network is faulty.
Wwrw
The ID you entered is wwrw.
SIP-C/4.0 280 Send SMS OKT: sip:67******@fetion.com.cn;p=1120I: 3Q: 1 ML: 112D: Wed, 26 Jun 2013 06:42:22 GMTXI: AFD99DC736CBED943898749E54019118
At this time, your mobile phone should receive a Test Message: Cnyunwei-Cacti + Nagios Test Message!
4. The following is an official parameter description. I copied it and gave it to all our friends for reference.
The following parameters provide the account and password used for Logon (three methods are available: mobile phone number-Password flying signal-Password File-index)
-- Mobile = [mobile phone number] login mobile phone number
-- Sid = [flying signal] login flying Signal
-- Pwd = [Password] logon Password
-- Config = [file name] indicates the file storing the mobile phone number and password.
-- Index = [index number] index
The following parameters provide the receiver
-- To = [mobile phone number/flying signal/URI] mobile phone number/flying signal/URI for receiving messages. if you know the URI of the peer, you only need to be in the Peer friend list, and you do not need to send the peer in the Peer friend list.
Multiple numbers are supported, separated by commas (,).
-- Msg-utf8 = [info]
The sent message, which is UTF-8 encoded.
-- Msg-gb = [information]
Sent message, in GB encoding
-- File-utf8 = [file utf8 format]
Send File Content
-- File-gb = [file gb format]
Send File Content
-- Msg-type = [0/1/2]
Message sending type: Short Message
Gadgets
-- Query-cmcc-no: query Mobile Phone Segments of a mobile company
The following is optional
-- Debug
Display debugging information
-- Hide
Stealth Login
-- Exit-on-verifycode
When the server requires graphic verification, the program exits (1) or waits for the user to manually enter the recognition information (default program)
-- Proxy-ip = http proxy ip
-- Proxy-port = http proxy port
(Robots need http connect proxy. Common ccproxy is supported)
> Example <
In linux, run the following command:
LD_LIBRARY_PATH = .. /fetion -- mobile = 187 ******** -- pwd = mypwd -- to = 135 xxxxxxxx -- msg-utf8 = test LD_LIBRARY_PATH = .. /fetion -- sid = 66 **** -- pwd = mypwd -- to = 135 xxxxxxxx -- msg-utf8 = test LD_LIBRARY_PATH = .. /fetion -- config = sample. conf -- index = 1 -- to = 135 xxxxxxxx -- msg-utf8 = test
Use \ n
// The content of sample. conf is as follows. In the file content, # is the comment line.
# This config file is for fetion robot tool. # Usage demo: ./fetion --config=/etc/fetion.conf --index=1 # ID Mobile Password 1 187xxxx 1234234
This site provides fetion package download
Fetion_for_x32.gz
Fetion_for_x64.gz
Fetion_For_CentOS6.4_x64_Packages.gz