Suse9 Nagios Installation Process

Source: Internet
Author: User
Article Title: Install Nagios in Suse9. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems and open source, and other basic categories. The Nagios Installation Process of Suse 9 is as follows:
Download the required Program
First move a source code library to get the source code library:
Ls: there are seven packages:
Zlib-1.2.3.tar.gz
Libpng-1.2.8-config.tar.gz
Gd-2.0.33.tar.gz
Nagios-2.0rc2.tar.gz
Nagios-plugins-1.4.2.tar.gz
Nrpe-2.3.tar.gz
Nsca-2.5.tar.gz
The last two are not required.
3. Install the zlib, libpng, AND gd libraries.
Install jpeg library support and use yast to load jpeg and libjpeg.
Perform the following operations on the zlib, libpng, AND gd libraries:
#> Tar xvfz zlib-1.2.3.tar.gz
#> Cd zlib-1.2.3
#>./Configure
#> Make
#> Make install
Note that there are dependencies. You can only install them one by one!
4. Add nagios, nagcmd, and nagios users. The root directory is/usr/local/nagios.
#> Groupadd nagios
#> Groupadd nagcmd
#> Mkdir/usr/local/nagios
#> Useradd nagios-d/usr/local/nagios
#> Chown nagios. nagios/usr/local/nagios
#> Usermod-G nagios
#> Usermod-G nagcmd nagios
#> Usermod-G nagcmd wwwrun
5. Modify The apache2 settings to start with nagios.
#> Vi/etc/apache2/uid. conf
User nagios
Group nagios
#>/Etc/rc. d/apache2 restart
Check:
Ps aux | grep nagios
Five processes should be related to nagios users.
6. Install nagios Software
#> Tar vxfz nagios-2.0rc2.tar.gz
#> Cd nanagios-2.0rc2
#>./Configure -- with-command-group = nagcmd
#> Make all
#> Make install
#> Make install-init
#> Make install-commandmode
#> Make install-config
7. Install the nagios-plugins package
#> Tar xvfz nagios-plugins-1.4.2.tar.gz
#> Cd nagios-plugins-1.4.2
#>./Configure -- with-ipv6 = no
#> Make
#> Make install
8. Modify apache2 settings
#> Vi/etc/apache2/default-server.conf
Add:
ScriptAlias/nagios/cgi-bin/usr/local/nagios/sbin
AllowOverride AuthConfig
Options ExecCGI
Order allow, deny
Allow from all
Alias/nagios/usr/local/nagios/share
Options None
AllowOverride AuthConfig
Order allow, deny
Allow from all
Now, you can use the nagios software. Check with w3m:
#> W3m 127.0.0.1/nagios
You can see the nagios homepage. Of course you cannot do anything!
5. Configure nagios software for use
I can't help you with this special manual.
Postscript
In fact, you can directly use the provided Virtual Machine image file, so you do not have to install it step by step.
After reading this article, we can easily find that installing Nagios in Suse 9 is much easier than installing Nagios in other systems!
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.