UbuntuHelp:Nagios
来自Ubuntu中文
![]() |
点击翻译: |
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