Install and run Nagios in Ubuntu

Source: Internet
Author: User
Install and run Nagios-Linux Enterprise Application-Linux server application in Ubuntu. For more information, see. This article by Bentutu.com edit, reprinted with the source http://bentutu.com /? P = 571

Network monitoring is an important task for enterprises. Nagios is an open-source network monitoring tool. You can use Nagios to easily monitor the network. For more information, see http://www.nagios.org.
The Nagios project complies with the GPL protocol. Next, we will show you how to run the tool on Ubuntu machines.
Test environment: Nagios core version 3.2.0.
Ubuntu 10.04 32-bit desktop environment
You must install the Apache network server in advance.

1. Search for "nagios" (no quotation marks) from your new software center );
2. Select nagios3, nagios-plugins, and nagios-plugins-extra;
3. Click "application" to install.

Run the following command to check the nagios version: nagios3? Version.

Run Nagios on the server
After the installation is complete, run Nagios on the server.

1 Start nagios3:
Sudo/etc/init. d/nagios3 start


(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // farm6.static.flickr.com/5168/5382345998240871ffd777.jpg'); ">
This command starts the nagios3 tool.

2. Open the browser and enter:
Http: // address_to_server/nagios3
For example, if I run the tool on my local host, enter
Http: // localhost/nagios3
As shown in. By default, nagios3 displays two hosts-localhost & default gateway;


(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // farm6.static.flickr.com/5045/53823420.%e0dc3b094a.jpg'); ">

Add account
Authorization is required before access. You can create/Add users by running the following command:
Sudo htpasswd-c/etc/nagios3/htpasswd. users ankur
Ankur is the user name


(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // farm6.static.flickr.com/5006/5382947322_0cbdda4331.jpg'); ">

After adding a user to the configuration file, enter the user name and password in the authorization dialog box to go to The nagios page.


(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // farm6.static.flickr.com/5244/5382345279_98d424d10d.jpg'); ">

The only problem with nagios is that you need to manually connect to the IP address (that is, you must manually configure each IP address ). I think this is worth it. It's just running and the effect is just getting ~~~ (* ^__ ^ *)
For more details and documents, see http://www.nagios.org /.

From "tumanula.org", this article is edited by Bentutu.com, reprinted with the source http://bentutu.com /? P = 571

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.