个人工具

UbuntuHelp:Nagios

来自Ubuntu中文

Wikibot讨论 | 贡献2008年10月19日 (日) 16:34的版本

跳转至: 导航, 搜索

This page describes how to set up Nagios on Ubuntu. Somewhat replaces the UbuntuHelp:Nagios2 page. This guide was done using Ubuntu 7.10 (Gutsy Gibbon)

Introduction

Nagios is an open source host, service and network monitoring program. The official homepage is http://nagios.org/

Preparations

If you are going to use mysql or pgsql for database store then do install that first.

sudo aptitude install mysql-server 

And to make the db configuration easier, please install dbconfig-common first. If you don't, then you will have to set up the database manually.

sudo aptitude install dbconfig-common

Shortcut

sudo aptitude install dbconfig-common mysql-server

Installation

Now it depends on what database you would like to use. The package name is nagios-<database> where database can be text, pgsql or mysql. So for installing with the mysql option use the following at the command line:

sudo apt-get install nagios-mysql

or use synaptic to install the package.

Shortcut

sudo aptitude install dbconfig-common mysql-server
sudo aptitude install nagios-mysql

Initial configuration

  • Set the password for the nagiosadmin user.

That's all to get it running! Navigate to http://nagios_server/nagios2 and log in to see your systems monitor. By default it monitors the machine it runs on and it's gateway to the Internet.

Configurationfiles

  • /etc/apache2/conf.d/nagios

See also