“UbuntuHelp:Nagios”的版本间的差异
来自Ubuntu中文
小 |
小 |
||
第1行: | 第1行: | ||
{{From|https://help.ubuntu.com/community/Nagios}} | {{From|https://help.ubuntu.com/community/Nagios}} | ||
{{Languages|UbuntuHelp:Nagios}} | {{Languages|UbuntuHelp:Nagios}} | ||
− | This page describes how to set up Nagios on Ubuntu. Somewhat replaces the [[UbuntuHelp: | + | 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) | This guide was done using Ubuntu 7.10 (Gutsy Gibbon) | ||
== Introduction == | == Introduction == | ||
第10行: | 第10行: | ||
sudo aptitude install mysql-server | sudo aptitude install mysql-server | ||
</nowiki></pre> | </nowiki></pre> | ||
− | And to make the db configuration easier, please install dbconfig-common first. If | + | 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. |
<pre><nowiki> | <pre><nowiki> | ||
sudo aptitude install dbconfig-common | sudo aptitude install dbconfig-common | ||
第20行: | 第20行: | ||
== Installation == | == 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. | 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 | + | So for installing with the mysql option use the following at the command line: |
<pre><nowiki> | <pre><nowiki> | ||
sudo apt-get install nagios-mysql | sudo apt-get install nagios-mysql | ||
第36行: | 第36行: | ||
* /etc/apache2/conf.d/nagios | * /etc/apache2/conf.d/nagios | ||
== See also == | == See also == | ||
− | * [[UbuntuHelp: | + | * [[UbuntuHelp:Nagios2]] |
− | * [[UbuntuHelp: | + | * [[UbuntuHelp:Zenoss]] |
---- | ---- | ||
− | [[category: | + | [[category:CategoryInternet]] [[category:CategoryNetworking]] |
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2008年10月19日 (日) 16:34的版本
点击翻译: |
English |
请不要直接编辑翻译本页,本页将定期与来源同步。 |
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