Configure Nagios in Ubuntu

Source: Internet
Author: User
Tags all mail
Environment: Ubuntu11.04VirtualBOX4.0.6r71344Ubuntu10.10Server requirements: monitor two DHCP servers in the network Step 1: Install nagios3, apache2 $ sudoapt-getinstallapache2 $ sudoapt-getinstallnagios3 & nb

Environment:Ubuntu 11.04 VirtualBOX4.0.6r71344 Ubuntu 10.10 Server
Requirement: monitors two DHCP servers in the network.

Step 1: Install nagios3 and apache2
$ Sudo apt-get install apache2
$ Sudo apt-get install nagios3 // nagios Version 3.2.1.

Step 2: Set nagios3 during installation
1. Set the Administrator alert email address (this time I directly select No configruation)
No configuration:
Shocould be chosen to leave the current configuration unchanged.
Internet site:
Mail is sent and has ed directly using SMTP.
Internet with smarthost:
Mail is already ed directly using SMTP or by running a utility such as fetchmail. Outgoing mail is sent using a smarthost.
Satellite system:
All mail is sent to another machine, called a 'smarthost', for delivery.
Local only:
The only delivered mail is the mail for local users. There is no network.
General type of mail configuration:
No configuration
Internet Site
Internet with smarthost
Satellite system
Local only
<确定> <取消>

2. password settings for user authentication on the nagios web Management page(The alarm mailbox is not set in the previous step, so go directly to this step)
Please provide the password to be created with the "nagiosadmin" user.
This is the username and password you will use to log in to your nagios installation after configuration is complete. If you do not provide a password, you will have to configure access to nagios yourself.
Nagios web administration password:
After entering the password, you will be asked to confirm the password again, and then press ENTER
It is best to create the nagiosadmin password here, or create the password later, but you can simply use the following command:
Htpasswd-C/etc/nagios3/htpasswd. users nagiosadmin
You don't need to use "-C" to add users later.
Example: htpasswd/etc/nagios3/htpasswd. users test
System prompt:
New password: // enter the New password
Re-type new password: // confirm the password
Adding password for user test
In fact, you can enter http: // localhost/nagios3/in the browser to view the nagios Management page. Of course, there is nothing in it.

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.