[root
@mickey nagios]# tar xf nagios-3.4.3.tar.gz
[root@mickey nagios]# cd nagios
[root@mickey nagios]# ./configure --prefix=/usr/local/nagios/
上面的命令意思是:解压nagios并进行检查编译,--prefix的意思是将nagios安装到该目录下。
检测完成。
Review the options above for accuracy. If they look okay,
type *make all* to compile the main program and CGIs.
提示需要make all。
[root@mickey nagios]# make all
我们就满足它。这一步就开始编译,完成之后会有提示。
If the main program and CGIs compiled without any errors, you
can continue with installing Nagios as follows (type *make*
without any arguments for a list of all possible options):
make install
- This installs the main program, CGIs, and HTML files
make install-init
- This installs the init script in /etc/rc.d/init.d
make install-commandmode
- This installs and configures permissions on the
directory for holding the external command file
make install-config
- This installs *SAMPLE* config files in /usr/local/nagios//etc
You*ll have to modify these sample files before you can
use Nagios. Read the HTML documentation for more info
on doing this. Pay particular attention to the docs on
object configuration files, as they determine what/how
things get monitored!
make install-webconf
- This installs the Apache config file for the Nagios
web interface
make install-exfoliation
- This installs the Exfoliation theme for the Nagios
web interface
make install-classicui
- This installs the classic theme for the Nagios
web interface
看这个我们就知道怎么安装的了。
首先,
[root@mickey nagios]# make install
[root@mickey nagios]# make install-init
[root@mickey nagios]# make install-commandmode
[root@mickey nagios]# make install-config
[root@mickey nagios]# make install-webconf
这几条命令的具体介绍上面写的应该很详细了,如果英文不好,大家可以安装英文之类的软件反应,千万不要忘记英语的学习。
![](http://tb2.bdstatic.com/tb/editor/images/face/i_f22.png?t=20140803)
这样,我们的nagios就装好了。是不是粉简单?
当然,这只是仅仅安装好了nagios,下一步我们安装nagios的插件。