Install nagios on ubuntu and use

Source: Internet
Author: User
Tags fully qualified domain name
Install nagios on pure ubuntu and use 1. installation environment 1. system ubuntu-12.04.1-desktop-amd64.iso2. virtual machine VMware & amp; reg; Workstation8.0.4build-7440193. remote tool xshell4 2. installation step 1. apt-getinstallssh2. create... install nagios on pure ubuntu and use 1. installation environment 1. ubuntu-12.04.1-desktop-amd64.iso System 2. virtual machine VMware®Workstation 8.0.4 build-744019 3. remote tool xshell4 2. installation step 1. apt-get install ssh2. create nagiios users and user groups root @ ubuntu :~ # Useradd-s/sbin/nologin nagiosroot @ ubuntu :~ # Mkdir/usr/local/nagiosroot @ ubuntu :~ # Chown-R nagios. nagios/usr/local/nagios3. enable 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 the HTML file make install-init # in/etc/rc. d/init. create the nagios startup script make install-commandmode in the d Directory # configure the directory permission make install-config # install the sample file # set the 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 nagios plugin tar-xzvf nagios-plugins-1.4.14.tar.gz cd nagios-plugins-1.4.14 /. /configure -- prefix =/usr/local/nagiosmake make install6. install the configuration apachetar-xzvf httpd-2.0.63.tar.gz cd httpd-2.0.63 /. /configure -- prefix =/usr/local/apache2makemake install7. install phpapt-get install libxml2apt-get install libxml2-dev. /configure -- prefix =/usr/local/php -- with-apxs2 =/usr/local/apache2/bin/apxsapt-get install libxml2-dev. /configure -- prefix =/usr/local/php -- with-apxs2 =/usr/local/apache2/bin/apxsmakemake install8. configure apacheUser nagiosGroup nagios # setting for nagiosScriptAlias/nagios/cgi-bin" /usr/local/nagios/sbin" AuthType BasicOptions ExecCGIAllowOverride NoneOrder allow, denyAllow from allAuthName "Nagios Access" AuthUserFile/usr/local/nagios/etc/htpasswdRequire valid-user Alias/nagios "/usr/local/nagios/share" AuthType BasicOptions NoneAllowOverride NoneOrder allow, denyAllow from allAuthName "Nagios Access" AuthUserFile/usr/local/nagios/etc/htpasswdRequire valid-user LoadModule php5_module modules/libphp5.soAddType application/x-httpd-php. php. phtmlAddType applicatoin/x-httpd-php-source. phps 9. generate password/usr/local/apache2/bin/htpasswd-c/usr/local/nagios/etc/htpasswd nagios10. it is possible to start apache/usr/local/apache2/bin/apachectl start the following error occurs: configure: error: xml2-config not found. please check your libxml2 installation. apt-get install libxml2apt-get install Libxml2-dev2.httpd: cocould not determine the server's fully qualified domain name, using 127.0.1.1 for ServerName to modify the httpd. conf file and remove the comment to # ServerName. Vi/usr/local/apache2/conf/httpd. conf3.You don't have permission to access/nagios/on this server this is a parsing error. Check tail-f/usr/local/apache2/logs/error_log for detailed analysis, it may be a configuration file or permission issue. the error message attempt to invoke directory as script:/usr/local/nagios/share/the original share directory cannot be configured with ScriptAlias, but can only be configured with Alias
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.