MONITORING - Installation Nagios 3.0.6 sur Corni : Différence entre versions
De PedroWiki
m (→Téléchargement de Nagios) |
|||
Ligne 39 : | Ligne 39 : | ||
jules@corni:/home/jules/nagios-3.0.6$ sudo usermod -a -G nagcmd nagios | jules@corni:/home/jules/nagios-3.0.6$ sudo usermod -a -G nagcmd nagios | ||
jules@corni:/home/jules/nagios-3.0.6$ sudo usermod -a -G nagcmd www-data | jules@corni:/home/jules/nagios-3.0.6$ sudo usermod -a -G nagcmd www-data | ||
+ | |||
+ | == Compilation de Nagios == | ||
+ | |||
+ | jules@corni:/home/jules/nagios-3.0.6$ sudo ./configure --with-command-group=nagcmd | ||
+ | ... | ||
+ | *** Configuration summary for nagios 3.0.6 12-01-2008 ***: | ||
+ | |||
+ | General Options: | ||
+ | ------------------------- | ||
+ | Nagios executable: nagios | ||
+ | Nagios user/group: nagios,nagios | ||
+ | Command user/group: nagios,nagcmd | ||
+ | Embedded Perl: no | ||
+ | Event Broker: yes | ||
+ | Install ${prefix}: /usr/local/nagios | ||
+ | Lock file: ${prefix}/var/nagios.lock | ||
+ | Check result directory: ${prefix}/var/spool/checkresults | ||
+ | Init directory: /etc/init.d | ||
+ | Apache conf.d directory: /etc/apache2/conf.d | ||
+ | Mail program: /bin/mail | ||
+ | Host OS: linux-gnu | ||
+ | |||
+ | Web Interface Options: | ||
+ | ------------------------ | ||
+ | HTML URL: http://localhost/nagios/ | ||
+ | CGI URL: http://localhost/nagios/cgi-bin/ | ||
+ | Traceroute (used by WAP): | ||
+ | Review the options above for accuracy. If they look okay, | ||
+ | type 'make all' to compile the main program and CGIs. |
Version du 22 mars 2009 à 13:06
Sommaire
Introduction
Article "bloc-note" sur l'installation de Nagios 3.0.6 sur Corni.peaudeau.fr.
But du Nagios: surveillance des services sur r14493.ovh.net, a.k.a rps.pedrono.fr.
Installation
Guide d'installation
Installation Nagios 3.x - Ubuntu quickstart
Téléchargement de Nagios
jules@corni:/home/jules/$ wget http://switch.dl.sourceforge.net/sourceforge/nagios/nagios-3.0.6.tar.gz jules@corni:/home/jules/$ tar xvzf nagios-3.0.6.tar.gz jules@corni:/home/jules/$ wget http://puzzle.dl.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.13.tar.gz jules@corni:/home/jules/$ tar xvzf nagios-plugins-1.4.13.tar.gz
Vérification des prérequis
jules@corni:/home/jules/nagios-3.0.6$ dpkg -l|grep gcc jules@corni:/home/jules/nagios-3.0.6$ dpkg -l|grep build jules@corni:/home/jules/nagios-3.0.6$ sudo apt-get update jules@corni:/home/jules/nagios-3.0.6$ sudo apt-get install build-essential jules@corni:/home/jules/nagios-3.0.6$ sudo apt-cache search gd2 jules@corni:/home/jules/nagios-3.0.6$ sudo apt-get install libgd2-xpm-dev
Gestion des droits utilisateurs
jules@corni:/home/jules/nagios-3.0.6$ sudo useradd -m nagios jules@corni:/home/jules/nagios-3.0.6$ sudo passwd nagios Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully jules@corni:/home/jules/nagios-3.0.6$ jules@corni:/home/jules/nagios-3.0.6$ sudo usermod -G nagios nagios jules@corni:/home/jules/nagios-3.0.6$ sudo groupadd nagcmd jules@corni:/home/jules/nagios-3.0.6$ sudo usermod -a -G nagcmd nagios jules@corni:/home/jules/nagios-3.0.6$ sudo usermod -a -G nagcmd www-data
Compilation de Nagios
jules@corni:/home/jules/nagios-3.0.6$ sudo ./configure --with-command-group=nagcmd ... *** Configuration summary for nagios 3.0.6 12-01-2008 ***: General Options: ------------------------- Nagios executable: nagios Nagios user/group: nagios,nagios Command user/group: nagios,nagcmd Embedded Perl: no Event Broker: yes Install ${prefix}: /usr/local/nagios Lock file: ${prefix}/var/nagios.lock Check result directory: ${prefix}/var/spool/checkresults Init directory: /etc/init.d Apache conf.d directory: /etc/apache2/conf.d Mail program: /bin/mail Host OS: linux-gnu Web Interface Options: ------------------------ HTML URL: http://localhost/nagios/ CGI URL: http://localhost/nagios/cgi-bin/ Traceroute (used by WAP): Review the options above for accuracy. If they look okay, type 'make all' to compile the main program and CGIs.