One: Add Users:
useradd -m nagiospasswd nagios添加用户组,(注意:Ubuntu8.04以后用户组已经存在)groupadd nagiosusermod -G nagios nagios
Two: Download
Download Nagios Core, Nagios Plugins, Nagios Addons:
wget http://sourceforge.net/projects/nagios/files/latest/download\?source\=fileswget http://nagios-plugins.org/download/nagios-plugins-2.0.3.tar.gzwget http://downloads.sourceforge.net/project/nagios/nrpe-2.x/nrpe-2.15/nrpe-2.15.tar.gz\?r\=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fnagios%2Ffiles%2Fnrpe-2.x%2Fnrpe-2.15%2F\&ts\=1432707148\&use_mirror\=heanet
Three: Installation
Apt-get Install apache2 php5 libssl0. 9. 8Libssl-dev OpenSSL installation Nagios main program: TAR-XZVF nagios-3.2. 1. tar.gz CD nagios-3.2. 1./configure--prefix=/usr/local/nagiosmake Allmake installmake install-init# Installation Initialization script available/etc/init.d/nagios startInstalling NAGIOS-PLUGINS:TAR-XZVF nagios-plugins-1.4. the. tar.gz MKDIR/USR/LOCAL/NAGIOS-PLUGINSCD nagios-plugins-1.4. the./configure--prefix=/usr/local/nagios-pluginsmake Allmake installmv/usr/local/nagios-plugins/libexec/usr/local/ Nagios installation NRPE:TAR-XZVF nrpe-2.15. tar.gz CD nrpe-2.15./configure--enable-ssl--enable-command-argsmake ALLCP src/check_nrpe/usr/local/nagios/libexec
Ubuntu Nagios Monitor Installation