CentOS 6.5 x64 install Nagios fetion alarm

Source: Internet
Author: User

1. Because the operating systems used for O & M work are mostly CentOS and Ubuntu, the dependency packages of fetion installed on the two systems will be different. Now I will install the fetion of CentOS.
2. install some fetion dependent packages. Because fetion requires a 32-bit system package, Add. i686 (the ubuntu software name is i386)

[Root @ localhost ~] # Yum install glibc. i686 krb5-libs.i686 libstdc ++. i686 zlib. i686

2. Download The fetion program file
[Root @ localhost ~] Wget http://www.it-adv.net/fetion/downng/fetion20091117-linux.tar.gz
[Root @ localhost ~] Tar zxvf fetion20091117-linux.tar.gz
[Root @ localhost ~] Mv fx // usr/local/fetion
[Root @ localhost ~] Cd/usr/local/fetion/
[Root @ localhost fetion] # ls
Cache commands done fetion libACE-5.7.2.so libACE_SSL-5.7.2.so libcrypto. so.4 libeay32.dll libssl. so.4 logs plugins
[Root @ localhost fetion] # sudo vim/etc/ld. so. conf
Include/etc/ld. so. conf. d/*. conf
/Usr/local/fetion
[Root @ localhost fetion] # sudo ldconfig

3. By fetion20091117-linux.tar.gz file fetion file has been updated by the author, can not be used, so to download the latest fetion file, File Download URL (http://www.bkjia.net/thread-2952-1-1.html)

[Root @ localhost ~] Chmod + x fetion
[Root @ localhost ~] Mv fetion/usr/sbin/
[Root @ localhost ~] Cp/usr/sbin/fetion/usr/local/fetion/
4. Download the updated Library File
[Root @ localhost ~] Wget http://www.it-adv.net/fetion/linuxso_20101113.rar
[Root @ localhost ~] Wget http://www.rarsoft.com/rar/rarlinux-3.6.0.tar.gz (rar decompression software)
[Root @ localhost ~] Tar zxvf rarlinux-3.6.0.tar.gz
[Root @ localhost ~] Cd rar
[Root @ localhost rar] # make
[Root @ localhost rar] # cd ..
[Root @ localhost ~] Unrar x linuxso_20101113.rar


[Root @ localhost ~] Cp libACE * libcrypto. so.4 libssl. so.4/usr/local/fetion/

5. After the installation is complete, test and enter the verification code to send the text message normally.
[Root @ localhost ~] Fetion -- mobile = 13918016506 -- pwd = Aiyou1234 -- to = 13918016506, 13918016506 -- msg-utf8 = "hello world"
The verification code must be entered. The path of the verification code is in the/usr/sbin path, because the image is downloaded to the local device for viewing.


6. Configure Apsara stack alarm in nagios
Configuration contacts. cfg

Define contact (
Contact_name admin
Alias system admin
Host_icationication_period 24x7
Service_icationication_period 24x7
Host_icationication_options d, r
Service_icationication_options c, w, r
Service_icationication_commands notify-service-by-fetion
Host_icationication_commands notify-host-by-fetion
Pager 139 xxxxxxxxx
)
Configuration miscommands. cfg file
Define command (
Command_name sort y-host-by-fetion
Command_line/usr/sbin/fetion -- mobile = 139 xxxxxxxx -- pwd = xxxxxxxx -- to = $ CONTACTPAGER $ -- msg-utf8 = "Host $ HOSTSTATE $ alert for $ HOSTNAME $! On '$ LONGDATETIME $ '"
)
Define command (
Command_name sort y-service-by-fetion
Command_line/usr/sbin/fetion -- mobile = 139 xxxxxxxx -- pwd = xxxxxxxx -- to = $ CONTACTPAGER $ -- msg-utf8 = "$ HOSTADDRESS $ HOSTALIAS $/$ SERVICEDESC $ is $ SERVICESTATE $ on $ LONGDATETIME $"
)

Nagios details: click here
Nagios: click here

Configure Apsara stack alarms using Nagios

Using Nagios with Apsara for SMS alert Installation

Free SMS alert configuration for Nagios Feixin Linux

How to monitor Linux Hosts and send emails to alarms through Nagios

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.