(?) The enterprise part of Nagios (not finished)

Source: Internet
Author: User

# #nagios installation # # # # can refer to official website documents

1.tar JXF nagios-cn-3.2.3.tar.bz2

CD nagios-cn-3.2.3

Yum Install Gd-devel-2.0.35-11.el6.x86_64.rpm-y

Groudadd Nagcmd

Useradd-m-d/usr/local/nagious-g nagcmd Nagios

Usermod-g Nagcmd Apache

./configure--with-command-group=nagcmd

make all # # You can see the following steps

Make install

Make Install-init

Make Install-config

Make Install-commandmode

Make install-webconf

/etc/httpd/conf.d/nagios.conf

/usr/local/nagios/etc/htpasswd.users # # You can see the user name and password

htpasswd/usr/local/nagios/etc/htpasswd.users nagiosadmin # # Modify the nagiosadmin password

# #nagios-plugins installation # #

Tar zxf nagios-plugins-2.1.1.tar.gz

CD nagios-plugins-2.1.1

./configure # # can see the plug-in installation information, can be installed according to the missing plug-in. Example:mysql-devel,openssl-devel

Make

Make install

Cd/usr/local/nagios/libexec

Chown Nagios.nagios *-R

/usr/local/nagios/bin/nagios-v/usr/local/nagios/etc/nagios.cfg

/etc/init.d/nagios Reload

cd/usr/local/nagios/etc/

Vim Nagios.cfg

Comment out cfg_file, add two cfg_file

Figure

CD objects/

Cp-p localhost.cfg hosts.cfg

Cp-p localhost.cfg services.cfg

Vim Hosts.cfg

Figure

Vim Services.cfg

Figure

/usr/local/nagios/bin/nagios-v/usr/local/nagios/etc/nagios.cfg

/etc/init.d/nagios Reload

./check_disk

./check_disk-w 20-c 10

./check_disk-w 20-c 10-p/

Vim Commands.cfg

Figure

/usr/local/nagios/bin/nagios-v/usr/local/nagios/etc/nagios.cfg

/etc/init.d/nagios Reload


(?) The enterprise part of Nagios (not finished)

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.