Nagios Client Installation:

Source: Internet
Author: User

Nagios Client Installation:

environment ready and server-side, according to the service side of the preparation, but no lamp environment ;


!! Install plug-ins nagios-plugins-1.4.16.tar.gz,nrpe-2.12.tar.gz and server-side consistent


#安装一个系统性能的命令

Yum Install Sysstat-y



#安装监控的插件

Tar zxf params-validate-0.91.tar.gz
CD params-validate-0.91
Perl makefile.pl
Make
Make install


Tar zxvf class-accessor-0.31.tar.gz
CD class-accessor-0.31
Perl makefile.pl
Make

Make install
Cd.. /

Tar zxvf config-tiny-2.12.tar.gz
CD config-tiny-2.12
Perl makefile.pl
Make
Make install
Cd.. /


Tar zxvf math-calc-units-1.07.tar.gz
CD math-calc-units-1.07
Perl makefile.pl
Make
Make install
Cd..


Tar zxvf regexp-common-2010010201.tar.gz
CD regexp-common-2010010201
Perl makefile.pl
Make
Make install
Cd..


Tar zxvf nagios-plugin-0.34.tar.gz
CD nagios-plugin-0.34
Perl makefile.pl
Make
Make install
Cd.. /


Copy Plugins to Libexec

Cp-ap check_memory.pl/usr/local/nagios/libexec/
Cp-ap check_iostat/usr/local/nagios/libexec/

#见附件
Authorized
chmod 755/usr/local/nagios/libexec/check_memory.pl
chmod 755/usr/local/nagios/libexec/check_iostat


Editing a configuration file Nrpe

Backup : Cp/usr/local/nagios/etc/nrpe.cfg/usr/local/nagios/etc/nrpe.cfg.ori
Sed-i ' 199,203d '/usr/local/nagios/etc/nrpe.cfg


Add a basic plug-in call

echo "command[check_load]=/usr/local/nagios/libexec/check_load-w 15,10,6-c 30,25,20" >>/usr/local/ Nagios/etc/nrpe.cfg
echo "command[check_mem]=/usr/local/nagios/libexec/check_memory.pl-w 6%-C 3%" >>/usr/local/nagios/ Etc/nrpe.cfg
echo "Command[check_disk]=/usr/local/nagios/libexec/check_disk-w 20%-C 8%-P/" >>/usr/local/nagios/etc/ Nrpe.cfg
echo "Command[check_swap]=/usr/local/nagios/libexec/check_swap-w 20%-C 10%" >>/usr/local/nagios/etc/nrpe.cfg
echo "Command[check_iostat]=/usr/local/nagios/libexec/check_iostat-w 6-c" >>/usr/local/nagios/etc/ Nrpe.cfg


Start Nrpe

/usr/local/nagios/bin/nrpe-c/usr/local/nagios/etc/nrpe.cfg-d

#-c specifying profile-D background boot

echo "/usr/local/nagios/bin/nrpe-c/usr/local/nagios/etc/nrpe.cfg-d" >>/etc/rc.local

#设置开机自启动

SS-ANP | grep 5666

#查看端口

Client installation, Configuration complete


This article from "As always" blog, declined reprint!

Nagios Client Installation:

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.