User Tools

Site Tools


it_solutions:nagios:nagios

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
 adduser nagios-ec
 tar zxvf nagios-4.0.8.tar.gz
 tar zxvf nagios-plugins-2.0.3.tar.gz
 cd nagios-4.0.8
 (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
 vim ressource.cfg
 $USER1$=/user/local/nagios/libexec
 Ajouter www-data dans le groupe nagios-ec :
 nagios-ec:x:1017:www-data
 ln /home/acdsn/GIT/easycontrol-scripts/server/nagios-ec /etc/sudoers.d/nagios-ec
 /etc/init.d/nagios-ec reload
 /etc/init.d/apache2 reload
it_solutions/nagios/nagios.txt · Last modified: 2015/02/13 13:20 by czuber