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