Archives:Backports/fr

From Wiki Centreon

Jump to: navigation, search
Unofficial content
This community page isn't validated by the development team. This page is released without any warranty.

Utilisation des backports

editer /etc/apt/sources.list ajouter

deb http://www.backports.org/debian etch-backports main contrib non-free
deb http://ftp.fr.debian.org/debian/ testing main
deb http://ftp.fr.debian.org/debian/ unstable main

creer le fichier /etc/apt/preferences

Package: *
Pin: release a=stable
Pin-Priority: 700

Package: *
Pin: release a=testing
Pin-Priority: 650

Package: *
Pin: release a=unstable
Pin-Priority: 600

Package: *
Pin: release a=etch-backports
Pin-Priority: 660

créer le fichier /etc/apt/apt.conf.d/80memory

APT::Cache-Limit "100388608";

ajouter les clé de backports

gpg --keyserver wwwkeys.eu.pgp.net --recv-keys EA8E8B2116BA136C
gpg --armor --export EA8E8B2116BA136C | apt-key add -

updater la base de packages

apt-get update

installer nagios3

apt-get install nagios3 

installer ndo (attention la libc6 passe en testing !!!)

apt-get -t testing install ndoutils-nagios3-mysql tzdata locales


linker le ndomod.o

ln -s /usr/lib/ndoutils/ndomod-mysql-3x.o /usr/sbin/ndomod.o

build database

intall ndo database

# mysql -u root -p
  Enter password :
mysql> CREATE DATABASE ndo;
mysql> GRANT SELECT, INSERT, UPDATE, DELETE ON ndo.* TO 'ndo'@'localhost' IDENTIFIED BY 'good_passwd';
mysql> FLUSH PRIVILEGES;
mysql> quit
# mysql -u ndo -p ndp < ./db/mysql.sql
  Enter password :
#

(or script ./db/installdb but you need to type root mysql passwd as an option)

(if you use it, don't forget to delete the line in your .bash_history file ;-)

Personal tools