User Tools

Site Tools


it_solutions:nagios:nagios

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
it_solutions:nagios:nagios [2015/02/12 16:48]
czuber
it_solutions:nagios:nagios [2015/02/13 14:20] (current)
czuber
Line 1: Line 1:
 ====== Nagios 4.0.8 ====== ====== Nagios 4.0.8 ======
-wget http://​prdownloads.sourceforge.net/​sourceforge/​nagios/​nagios-4.0.8.tar.gz +   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 +   ​wget http://​nagios-plugins.org/​download/​nagios-plugins-2.0.3.tar.gz 
-addgroup ​nagios-ec +   adduser ​nagios-ec 
-tar zxvf nagios-4.0.8.tar.gz +   ​tar zxvf nagios-4.0.8.tar.gz 
-tar zxvf nagios-plugins-2.0.3.tar.gz +   ​tar zxvf nagios-plugins-2.0.3.tar.gz 
-./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+   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 ​+   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 +   /​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/​apache2/​conf.d/​nagios.conf /​etc/​apache2/​conf.d/​nagios-ec.conf 
-mv /​etc/​init.d/​nagios /​etc/​init.d/​nagios-ec +   ​mv /​etc/​init.d/​nagios /​etc/​init.d/​nagios-ec 
-/​etc/​init.d/​nagios-ec start +   ​/​etc/​init.d/​nagios-ec start 
-/​etc/​init.d/​apache2 reload+   ​/​etc/​init.d/​apache2 reload
  
-htpasswd -c /​home/​nagios-ec/​etc/​htpasswd.users nagiosadmin+   htpasswd -c /​home/​nagios-ec/​etc/​htpasswd.users nagiosadmin
    pass : nagiosadminpw    pass : nagiosadminpw
        
-cd /​home/​acdsn/​GIT +   cd ../​nagios-plugins-2.0.3 
-git clone /​srv/​git/​easycontrol-scripts +   (Lire configure) 
-cd /​home/​nagios-ec +   ​./​configure --with-nagios-user=nagios-ec --with-nagios-group=nagios-ec --with-cgiurl=/​nagios-ec/​cgi-bin 
-rm cgi.cfg, nagios.cfg + 
-ln -s /​home/​acdsn/​GIT/​easycontrol-scripts/​nagios-config/cgi.cfg cgi.cfg +   make && make install 
-ln -s /​home/​acdsn/​GIT/​easycontrol-scripts/​nagios-config/nagios.cfg nagios.cfg+ 
 +   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.1423756094.txt.gz · Last modified: 2015/02/12 16:48 by czuber