“UbuntuHelp:Nagios”的版本间的差异
来自Ubuntu中文
小 |
小 |
||
第3行: | 第3行: | ||
This page describes how to set up Nagios on Ubuntu. Somewhat replaces the [[UbuntuHelp:Nagios2|Nagios2]] page. | This page describes how to set up Nagios on Ubuntu. Somewhat replaces the [[UbuntuHelp:Nagios2|Nagios2]] page. | ||
This guide was done using Ubuntu 7.10 (Gutsy Gibbon) | This guide was done using Ubuntu 7.10 (Gutsy Gibbon) | ||
+ | Note that this information is no longer accurate for nagios3 (the latest version distributed with Karmic, etc.). See [[UbuntuHelp:Nagios3|Nagios3]]. | ||
== Introduction == | == Introduction == | ||
Nagios is an open source host, service and network monitoring program. The official homepage is http://nagios.org/ | Nagios is an open source host, service and network monitoring program. The official homepage is http://nagios.org/ | ||
第14行: | 第15行: | ||
sudo aptitude install dbconfig-common | sudo aptitude install dbconfig-common | ||
</nowiki></pre> | </nowiki></pre> | ||
− | === Shortcut === | + | === Shortcut for both === |
<pre><nowiki> | <pre><nowiki> | ||
sudo aptitude install dbconfig-common mysql-server | sudo aptitude install dbconfig-common mysql-server |
2010年5月19日 (三) 23:42的最新版本
点击翻译: |
English |
请不要直接编辑翻译本页,本页将定期与来源同步。 |
This page describes how to set up Nagios on Ubuntu. Somewhat replaces the Nagios2 page. This guide was done using Ubuntu 7.10 (Gutsy Gibbon) Note that this information is no longer accurate for nagios3 (the latest version distributed with Karmic, etc.). See Nagios3.
目录
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 for both
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