Install and use Nagios on Ubuntu

Source: Internet
Author: User
1. installation environment 1. System Ubuntu-12.04.1-desktop-amd64.iso2. Virtual Machine VMware & reg; Workstation8.0.4build-7440193. Remote tool xshell4 2. Installation Steps 1. apt-getinstallssh2. Create nagiios users and user groups root @ ubuntu :~ # Useradd-s/sbin/nolo

I. installation environment

System Ubuntu-12.04.1-desktop-amd64.iso

2. Virtual Machine VMware®Workstation 8.0.4 build-744019

3. Remote tool xshell4

Ii. Installation Steps

1. apt-get install ssh 2. Create nagiios users and user groupsRoot @ ubuntu :~ # Useradd-s/sbin/nologin nagios
Root @ ubuntu :~ # Mkdir/usr/local/nagios
Root @ ubuntu :~ # Chown-R nagios. nagios/usr/local/nagios 3. Enable the sendmail service 4. Compile and install nagios
Cd/usr/local/src # Switch to the software installation directory # upload all the installation files
Tar-zxvf nagios-3.2.0.tar.gz
Cd nagios-3.2.0/
./Configure -- prefix =/usr/local/nagios
Make all
Make install # install the main program and CGI and HTML files
Make install-init # create a nagios STARTUP script in the/etc/rc. d/init. d directory
Make install-commandmode # configure Directory Permissions
Make install-config # installation example file # Set apt-get install chkconfig $ sudo ln-s/usr/lib/insserv/sbin/insserv
Chkconfig -- add nagios
Chkconfig -- level 35 nagios on
Chkconfig -- list nagios
5. Install the nagios pluginTar-xzvf nagios-plugins-1.4.14.tar.gz
Cd nagios-plugins-1.4.14/
./Configure -- prefix =/usr/local/nagios
Make
Make install
6. install and configure apacheTar-xzvf httpd-2.0.63.tar.gz
Cd httpd-2.0.63/
./Configure -- prefix =/usr/local/apache2
Make
Make install
7. install phpApt-get install libxml2apt-get install libxml2-dev./configure -- prefix =/usr/local/php -- with-apxs2 =/usr/local/apache2/bin/apxs
Apt-get install libxml2-dev
./Configure -- prefix =/usr/local/php -- with-apxs2 =/usr/local/apache2/bin/apxs
Make
Make install
Related Article

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.