Nagios : Différence entre versions
(→Nagios) |
|||
| Ligne 108 : | Ligne 108 : | ||
| − | {{command| | + | {{command|| |
tar xvzf centreon-X | tar xvzf centreon-X | ||
cd centreon-X | cd centreon-X | ||
./install.sh | ./install.sh | ||
}} | }} | ||
Version du 29 juin 2009 à 12:53
Attention document NON VALIDE
This howto provides a step by step walkthrough on installing the required components, and setting the default parameters (file paths, etc.) for Oreon to work with the default Nagios from Debian.
Sommaire
Installer le serveur virtuel
Creation de l'image :
# xen-create-image --hostname nagios --debootstrap --ip 193.49.133.77 --memory 1024MB --swap 2048Mb --vcpu 2
Demarrage de l'image :
# xm create -c nagios.cfg
Mot de passe root :
# passwd
Install required Debian packages
apache2
# apt-get install sudo apache2
mysql
# apt-get install mysql-server-5.0
php5
# apt-get install php5 # apt-get install php-db php-date # apt-get install php5-gd php5-mysql php5-snmp php5-ldap # apt-get install php-mail php-mail-mime php-net-smtp php-net-socket # apt-get install php5-xmlrpc
rrdtool
# apt-get install rrdtool librrds-perl
snmp
# apt-get install snmp snmpd libnet-snmp-perl
Eventually configure snmpd on this machine:
# vi /etc/snmp/snmpd.conf com2sec readonly default public # /etc/init.d/snmpd restart # snmpwalk -v1 -c public localhost SNMPv2-MIB::sysDescr.0 = STRING: Linux debian 2.6.18-4-686 #1 SMP Wed May 9 23:03:12 UTC 2007 i686 SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10 DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (1339340) 3:43:13.40 [...] IPV6-MIB::ipv6IfAdminStatus.2 = INTEGER: up(1) IPV6-MIB::ipv6IfOperStatus.1 = INTEGER: up(1) IPV6-MIB::ipv6IfOperStatus.2 = INTEGER: up(1)
Additionnal PEAR modules
# pear upgrade pear # pear install -o -f --alldeps DB_DataObject DB_DataObject_FormBuilder MDB2 Numbers_Roman \ Numbers_Words HTML_Common HTML_QuickForm HTML_QuickForm_advmultiselect HTML_Table Auth_SASL \ HTTP Image_Canvas Image_Color Image_Graph Image_GraphViz Net_Traceroute Net_Ping Validate XML_RPC SOAP
Nagios
telecharger les archives :
# wget http://switch.dl.sourceforge.net/sourceforge/nagios/nagios-3.0b3.tar.gz # wget http://belnet.dl.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.9.tar.gz
decompresser nagios
# tar xvzf nagios-3.0b3.tar.gz # cd nagios-3.0b3
on install :
# adduser nagios # groupadd nagcmd # usermod -G nagcmd www-data # usermod -G nagcmd nagios
# apt-get install gcc make g++ libpar-perl # apt-get install libcache-cache-perl libcache-memcached-perl libcache-perl libmemcache-dev memcached libsdl-perl
Il y a un probleme avec des librairies :
# ln -s /usr/lib/libperl.so.5.8.8 /usr/lib/libperl.so
# ./configure --with-command-group=nagcmd --with-default-perfdata --enable-embedded-perl --with-perlcache # make all # make full install
Installation des plugins :
# cd .. # tar xvzf nagios-plugins-1.4.9.tar.gz # cd nagios-plugins-1.4.9 # ./configure # make # make install
Mise a jour centreon
telecharger la derniere version sur le site
| Command : |
tar xvzf centreon-X cd centreon-X ./install.sh |