Linux installation Nagios Chinese monitor __linux

Source: Internet
Author: User
Tags bz2

1. Install the appropriate package

Yum-y Install httpd php*

Yum Install GD fontconfig-devel libjpeg-devel libpng-devel gd-devel perl-gd openssl-devel php mailx postfix cpp gcc gcc-c+ + libstdc++ Glib2-devel libtoul-ltdl-devel

2. Install Nagios programs and Plug-ins

Download nagios-cn-3.2.3.tar.bz2, nagios-plugins-2.0.tar.gz

Useradd Nagios
echo "Nagios" |passwd--stdin Nagios
Usermod-s/sbin/nologin Nagios
Groupadd Nagiosadmin
Usermod-g nagiosadmin Nagios
Usermod-g Nagiosadmin Apache

TAR-JXVF nagios-cn-3.2.3.tar.bz2
CD nagios-cn-3.2.3
./configure--prefix=/usr/local/nagios--with-nagios-user=nagios--with-nagios-group=nagios--with-command-group= Nagiosadmin
Make all
Make install
Make Install-init
Make Install-commandmode
Make Install-config
Make install-webconf

TAR-ZXVF nagios-plugins-2.0.tar.gz
CD nagios-plugins-2.0
./configure--with-nagios-user=nagios--with-nagios-group=nagios
Make && Makeinstall

3. Add access to Nagios page user nagiosadmin password
Htpasswd-c/usr/local/nagios/etc/htpasswd.users Nagiosadmin

4. Start Nagios

Service Nagios Start

5. Boot up

Chkconfig--add Nagios

Chkconfig Nagios on

Chkconfig httpd on


ps:1. Check Nagios configuration file is correct, you can use/usr/local/nagios/bin/nagios-v/usr/local/nagios/etc/nagios.cfg

We can rename this command in/ROOT/.BASHRC alias nagioscheck= '/usr/local/nagios/bin/nagios-v/usr/local/nagios/etc/nagios.cfg '

Then SOURCE/ROOT/.BASHRC


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.