Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to integrate Fetion with Nagios

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces how to integrate Fetion with Nagios. It is very detailed and has a certain reference value. Interested friends must finish reading it!

Fetion robot download address: http://www.it-adv.net/ requires account number: wenjiazhou password: zhouwenjia

Two versions, one is the 32-bit version of linuxso_20101113, the following is the installation guide for this version

Then upload it to the nagios server

# cd fetion/

# ls

Fetion libACE_SSL-5.7.2.so libssl.so.4

LibACE-5.7.2.so libcrypto.so.4

And then give the executive authority

# chmod + x *

# ls

Fetion libACE_SSL-5.7.2.so libssl.so.4

LibACE-5.7.2.so libcrypto.so.4

# mv fetion//usr/local/fetion

# cd/usr/local/fetion/

# ls

Fetion libACE_SSL-5.7.2.so libssl.so.4

LibACE-5.7.2.so libcrypto.so.4

Load the library file:

# vim/etc/ld.so.conf.d/fetion.conf

/ usr/local/fetion

# ldconfig

Then test whether the fetion command is available

# / usr/local/fetion/fetion # Library files are missing. You can install them directly on yum.

/ usr/local/fetion/fetion:error while loading shared libraries: libstdc++.so.6: cannot open shared objectfile: No such file or directory

# yum installlibstdc++.so.6-y

[# / usr/local/fetion/fetion # can be executed normally

* 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 ChinaFetion!

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 mobilepassword

-- index= [index no in config file,refer tosample.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= [0qqqqqq2 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/]

The name of the 64-bit download is cenos54X64_20101113, and here are the installation steps

Upload the installation package to the server

# ls

Anaconda-ks.cfg fetion_64bit install.log install.log.syslog

Give executive authority

# chmod + xfetion_64bit/*

# mv fetion_64bit//usr/local/fetion

# ls/usr/local/fetion/

Fetion libcidn.so.1 libpam_misc.so.0

Ld-2.5.so libcom_err.so.2 libpam_misc.so.0.81.2

Ld-linux.so.2 libcom_err.so.2.1 libpam.so.0

Ld-lsb.so.3 libcrypt-2.5.so libpam.so.0.81.5

Ld.so.conf libcrypto.so.0.9.7a libpcre.so.0

LibACE-5.6.5.so libcrypto.so.0.9.8 libpcre.so.0.0.1

LibACE-5.6.8.so libcrypto.so.0.9.8b libproc-3.2.7.so

LibACE-5.7.2.so libcrypto.so.4 libpthread-2.5.so

LibACE_SSL-5.6.5.so libcrypto.so.6 libpthread.so.0

LibACE_SSL-5.6.8.so libcrypt.so.1 libssl.so.0.9.7a

LibACE_SSL-5.7.2.so libc.so.6 libssl.so.0.9.8

Libc-2.5.so libeay32.dll libssl.so.4

Libcap.so libnss_ldap-2.5.so libstdc++.so.6

Libcap.so.1 libnss_ldap.so.2 libstdc++.so.6.0.8

Libcap.so.1.10 libpamc.so.0 readme

Libcidn-2.5.so libpamc.so.0.81.0

# vim/etc/ld.so.conf.d/fetion.conf

/ usr/local/fetion/

# ldconfig # many library files are missing, install the following

Ldconfig:/usr/local/fetion/libpcre.so.0 is not a symbolic link

Ldconfig:/usr/local/fetion/libcap.so.1 is not a symbolic link

Ldconfig:/usr/local/fetion/libpamc.so.0 is not a symbolic link

Ldconfig:/usr/local/fetion/libcom_err.so.2 is not a symbolic link

Ldconfig:/usr/local/fetion/libpam_misc.so.0 is not a symbolic link

Ldconfig:/usr/local/fetion/libpam.so.0 is not a symbolic link

Ldconfig:/usr/local/fetion/libstdc++.so.6 is not a symbolic link

Ldconfig:/usr/local/fetion/ld-linux.so.2 is not a symbolic link

# / usr/local/fetion/fetion

/ usr/local/fetion/fetion:error while loading shared libraries: libgssapi_krb5.so.2: cannot open sharedobject file: No such file or directory

# yum install libgssapi_krb5.so.2libz.so.1

Then execute the fetion command to test

# / usr/local/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 ChinaFetion!

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 mobilepassword

-- index= [index no in config file,refer tosample.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= [0qqqqqq2 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/]

Parameter explanation:

The following parameters provide the account password for login (in three ways, mobile phone number-password flying signal-password file-index)

-- mobile= [Mobile number] Login Mobile number

-- sid= [flight signal] login flight signal

-- pwd= [password] login password

-- config= [file name] A file that stores mobile phone numbers and passwords.

-index= [index number] index

The following parameters provide the recipient

-- to= [Mobile number / Flight signal / URI] the mobile number / Flight signal / URI that receives the message. If you know the other person's URI, you only need to be on the other person's friend list, and you don't need the other person to be on your own friend list.

Multiple numbers are supported, separated by commas

-- msg-utf8= [Information]

Message sent, UTF8 encoded

-- msg-gb= [Information]

Message sent, GB encoded

-- file-utf8= [file utf8 format]

Send the contents of the file

-- file-gb= [file gb format]

Send the contents of the file

-- msg-type= [0Compact 1Universe 2]

Send message type: ordinary message, long message, intelligent SMS

Gadget

-- query-cmcc-no query mobile phone segment of mobile company

The following are optional

-- debug

Display debugging information

-- hide

Invisible login

-- exit-on-verifycode

When the server needs graphic verification, the program exits (1) or waits for the user to enter identification information manually (program default)

-- proxy-ip=http Agent ip

-- proxy-port=http proxy port

(robots need HTTP CONNECT agents, and the commonly used ccproxy is supported)

> > examples

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report