User Tools

Site Tools


it_solutions:nagios:nagios

This is an old revision of the document!


Nagios 4.0.8

wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-4.0.8.tar.gz wget http://nagios-plugins.org/download/nagios-plugins-2.0.3.tar.gz addgroup nagios-ec tar zxvf nagios-4.0.8.tar.gz tar zxvf nagios-plugins-2.0.3.tar.gz (Lire configure) ./configure –prefix=/home/nagios-ec/ –exec-prefix=/home/nagios-ec –with-nagios-user=nagios-ec –with-nagios-group=nagios-ec –with-command-user=nagios-ec –with-command-group=nagios-ec –with-htmurl=/nagios-ec –with-cgiurl=/nagios-ec/cgi-bin

make all && make install && make install-init && make install-config && make install-commandmode && make install-webconf

/home/nagios-ec/bin/nagios -v /home/nagios-ec/etc/nagios.cfg mv /etc/apache2/conf.d/nagios.conf /etc/apache2/conf.d/nagios-ec.conf mv /etc/init.d/nagios /etc/init.d/nagios-ec /etc/init.d/nagios-ec start /etc/init.d/apache2 reload

htpasswd -c /home/nagios-ec/etc/htpasswd.users nagiosadmin

 pass : nagiosadminpw
 

cd ../nagios-plugins-2.0.3 (Lire configure) ./configure –with-nagios-user=nagios-ec –with-nagios-group=nagios-ec –with-cgiurl=/nagios-ec/cgi-bin

make && make install

cd /home/acdsn/GIT git clone /srv/git/easycontrol-scripts cd /home/nagios-ec/etc rm cgi.cfg, nagios.cfg ln -s /home/acdsn/GIT/easycontrol-scripts/server/nagios-cfg/cgi.cfg cgi.cfg ln -s /home/acdsn/GIT/easycontrol-scripts/server/nagios-cfg/nagios.cfg nagios.cfg

it_solutions/nagios/nagios.1423761699.txt.gz · Last modified: 2015/02/12 18:21 by czuber