Centreon Web ist seit Anfang 2016 in Version 2.7.1 verfügbar. Höchste Zeit für eine Installationsanleitung der neuen Centreon Version auf Ubuntu Server 14.04. Seit der Version 2.6.1 ist Centreon nicht mehr kompatibel zu Nagios und NDOUtils. Die Grundlage bildet deshalb die Centreon-Engine, ein Nagios-Fork welcher speziell für das Zusammenspiel mit Centreon angepasst wurde, und der Centreon-Broker, eine leistungsfähige Alternative zu NDOUtils.
Folgende Komponenten werden installiert:
- Centreon-CLIB 1.4.2
- Centreon-Connector 1.1.2
- Centreon Engine 1.5.0
- Nagios Plugins 2.1.1
- Centreon Plugins
- Centreon Broker 2.11.0
- SNMP & MIBs
- Centreon Web 2.7.1
Centreon CLIB 1.4.2
Centreon Clib ist eine in in C / C ++ geschriebene Bibliothek für einige Centreon-Module und ist die Voraussetzung für den Betrieb der Centreon-Engine.
Prerequisites
apt-get install build-essential cmake
Download
cd /downloads wget https://s3-eu-west-1.amazonaws.com/centreon-download/public/centreon-clib/centreon-clib-1.4.2.tar.gz tar xzf centreon-clib-1.4.2.tar.gz cd centreon-clib-1.4.2/build/
Installation
cmake \ -DWITH_TESTING=0 \ -DWITH_PREFIX=/usr \ -DWITH_SHARED_LIB=1 \ -DWITH_STATIC_LIB=0 \ -DWITH_PKGCONFIG_DIR=/usr/lib/pkgconfig . make make install
Centreon Connector 1.1.2
Der Centreon-Connector beinhaltet optionale Module welche die Ausführungsgeschwindigkeit von Skripten verbessern.
Prerequisites
apt-get install libperl-dev libssh2-1-dev libgcrypt11-dev
Download
cd /downloads wget https://s3-eu-west-1.amazonaws.com/centreon-download/public/centreon-connectors/centreon-connector-1.1.2.tar.gz tar xzf centreon-connector-1.1.2.tar.gz
Installation Perl-Connector
cd /downloads/centreon-connector-1.1.2/perl/build cmake \ -DWITH_PREFIX=/usr \ -DWITH_PREFIX_BINARY=/usr/lib/centreon-connector \ -DWITH_CENTREON_CLIB_INCLUDE_DIR=/usr/include \ -DWITH_TESTING=0 . make make install
Installation SSH-Connector
cd /downloads/centreon-connector-1.1.2/ssh/build cmake \ -DWITH_PREFIX=/usr \ -DWITH_PREFIX_BINARY=/usr/lib/centreon-connector \ -DWITH_CENTREON_CLIB_INCLUDE_DIR=/usr/include \ -DWITH_TESTING=0 . make make install
Centreon Engine 1.5.0
Die Centreon-Engine ist eine ausgereifte Alternative zu Nagios und punktet besonders in den Bereichen Ressourceneffizienz und Skalierbarkeit.
Gruppe und User anlegen
groupadd -g 6001 centreon-engine useradd -u 6001 -g centreon-engine -m -r -d /var/lib/centreon-engine -c "Centreon-engine Admin" centreon-engine
Prerequisites
apt-get install libcgsi-gsoap-dev zlib1g-dev libssl-dev libxerces-c-dev
Download
cd /downloads/ wget https://s3-eu-west-1.amazonaws.com/centreon-download/public/centreon-engine/centreon-engine-1.5.0.tar.gz tar xzf centreon-engine-1.5.0.tar.gz cd centreon-engine-1.5.0/build/
Installation
cmake \ -DWITH_CENTREON_CLIB_INCLUDE_DIR=/usr/include \ -DWITH_CENTREON_CLIB_LIBRARY_DIR=/usr/lib \ -DWITH_PREFIX=/usr \ -DWITH_PREFIX_BIN=/usr/sbin \ -DWITH_PREFIX_CONF=/etc/centreon-engine \ -DWITH_USER=centreon-engine \ -DWITH_GROUP=centreon-engine \ -DWITH_LOGROTATE_SCRIPT=1 \ -DWITH_VAR_DIR=/var/log/centreon-engine \ -DWITH_RW_DIR=/var/lib/centreon-engine/rw \ -DWITH_STARTUP_DIR=/etc/init.d \ -DWITH_PKGCONFIG_SCRIPT=1 \ -DWITH_PKGCONFIG_DIR=/usr/lib/pkgconfig \ -DWITH_TESTING=0 \ -DWITH_WEBSERVICE=1 . make make install
Centreon-Engine init.d Skript anlegen und Autostart einrichten
cd /etc/init.d mv centengine.conf ../init/ ln -s /lib/init/upstart-job centengine update-rc.d centengine defaults
Nagios Plugins 2.1.1
Prerequisites
apt-get install libgnutls-dev libssl-dev libkrb5-dev libldap2-dev libsnmp-dev gawk libwrap0-dev libmcrypt-dev smbclient fping gettext dnsutils libmysqlclient-dev libnet-snmp-perl
Download
cd /downloads wget http://nagios-plugins.org/download/nagios-plugins-2.1.1.tar.gz tar xzf nagios-plugins-2.1.1.tar.gz cd nagios-plugins-2.1.1
Installation
./configure --with-nagios-user=centreon-engine --with-nagios-group=centreon-engine --prefix=/usr/lib/nagios/plugins --libexecdir=/usr/lib/nagios/plugins --enable-perl-modules --with-openssl=/usr/bin/openssl
make make install
Centreon Plugins
Prerequisites
apt-get install libxml-libxml-perl libjson-perl libwww-perl libxml-xpath-perl libnet-telnet-perl libnet-ntp-perl libnet-dns-perl libdbi-perl libdbd-mysql-perl libdbd-pg-perl
Installation git-core (für Download der Plugins benötigt)
apt-get install git-core
Download
cd /downloads git clone https://github.com/centreon/centreon-plugins.git cd centreon-plugins/
Installation
chmod +x centreon_plugins.pl cp -R * /usr/lib/nagios/plugins/
Centreon Broker 2.11.0
Der Centreon-Broker speichert die von der Centreon-Engine ermittelten Monitoring-Daten in einer zentralen Datenbank.
User und Gruppe anlegen
groupadd -g 6002 centreon-broker useradd -u 6002 -g centreon-broker -m -r -d /var/lib/centreon-broker -c "Centreon-broker Admin" centreon-broker
Centreon-Engine benötigt Zugriff auf die Centreon-Broker-Protokolldatei. Zu diesem Zweck wird der Centreon-Engine-User Mitglied der Centreon-Broker-Gruppe.
usermod -aG centreon-broker centreon-engine
Prerequisites
apt-get install librrd-dev libqt4-dev libqt4-sql-mysql libgnutls-dev lsb-release
Download
cd /downloads/ wget https://s3-eu-west-1.amazonaws.com/centreon-download/public/centreon-broker/centreon-broker-2.11.0.tar.gz tar xzf centreon-broker-2.11.0.tar.gz cd centreon-broker-2.11.0/build/
Installation
cmake \ -DWITH_DAEMONS='central-broker;central-rrd' \ -DWITH_GROUP=centreon-broker \ -DWITH_PREFIX=/usr \ -DWITH_PREFIX_BIN=/usr/sbin \ -DWITH_PREFIX_CONF=/etc/centreon-broker \ -DWITH_PREFIX_LIB=/usr/lib/centreon-broker \ -DWITH_PREFIX_MODULES=/usr/local/centreon/lib/centreon-broker \ -DWITH_STARTUP_DIR=/etc/init.d \ -DWITH_STARTUP_SCRIPT=auto \ -DWITH_TESTING=0 \ -DWITH_USER=centreon-broker . make make install
Autostart
update-rc.d cbd defaults
SNMP
Prerequisites
apt-get install snmp snmpd
SNMP-Konfigurationsdatei „/etc/snmp/snmpd.conf“ anpassen
vi /etc/snmp/snmpd.conf agentAddress udp:localhost:161 rocommunity public localhost iquerySecName internalUser rouser internalUser trapsink localhost public linkUpDownNotifications yes
MIBs
Prerequisites
apt-get install snmp-mibs-downloader
symbolischen Link erstellen
ln -s /usr/share/mibs/ /usr/share/snmp/mibs
Konfigurationsdatei „/etc/default/snmpd“ editieren
vi /etc/default/snmpd export MIBDIRS=/usr/share/mibs export MIBS=ALL
Konfigurationsdatei „/etc/snmp/snmp.conf“ editieren
vi /etc/snmp/snmp.conf #mibs ALL
SNMP-Dienst neu starten
service snmpd restart
SNMP-Betrieb mit einem SNMP-Walk überprüfen
snmpwalk -c public -v 2c localhost
Centreon Web 2.7.1
Die Centreon Frontend Installation läuft in zwei Schritten ab. Der erste Teil wird in der Befehlszeile durchgeführt, der zweite Teil im Browser.
User und Gruppe anlegen
groupadd -g 6000 centreon useradd -u 6000 -g centreon -m -r -d /var/lib/centreon -c "Centreon Admin" centreon
Prerequisites
apt-get install tofrodos bsd-mailx mysql-server apache2 php5-mysql rrdtool librrds-perl php5 php-pear php5-ldap php5-intl php5-snmp php5-gd libconfig-inifiles-perl libcrypt-des-perl libdigest-sha-perl libdigest-hmac-perl libgd-gd2-perl libnet-snmp-perl libsnmp-perl php5-sqlite
(optional) Installation von PHPMyAdmin für die spätere Datenbankadministration
apt-get install phpmyadmin
Download
cd /downloads/ wget https://s3-eu-west-1.amazonaws.com/centreon-download/public/centreon/centreon-web-2.7.1.tar.gz tar xzf centreon-web-2.7.1.tar.gz cd /downloads/centreon-2.7.1/
Installation
./install.sh -i
Do you accept GPL license ? [y/n], default to [n]: > y ------------------------------------------------------------------------ Please choose what you want to install ------------------------------------------------------------------------ Do you want to install : Centreon Web Front [y/n], default to [n]: > y Do you want to install : Centreon CentCore [y/n], default to [n]: > y Do you want to install : Centreon Nagios Plugins [y/n], default to [n]: > y Do you want to install : CentreonTrapd process [y/n], default to [n]: > y
------------------------------------------------------------------------ Start CentWeb Installation ------------------------------------------------------------------------ Where is your Centreon directory? default to [/usr/local/centreon] > Path /usr/local/centreon OK Where is your Centreon log directory default to [/usr/local/centreon/log] > /var/log/centreon Do you want me to create this directory ? [/var/log/centreon] [y/n], default to [n]: > y Path /var/log/centreon OK Where is your Centreon etc directory default to [/etc/centreon] > Do you want me to create this directory ? [/etc/centreon] [y/n], default to [n]: > y Path /etc/centreon OK Where is your Centreon binaries directory default to [/usr/local/centreon/bin] > Do you want me to create this directory ? [/usr/local/centreon/bin] [y/n], default to [n]: > y Path /usr/local/centreon/bin OK Where is your Centreon data informations directory default to [/usr/local/centreon/data] > Do you want me to create this directory ? [/usr/local/centreon/data] [y/n], default to [n]: > y Path /usr/local/centreon/data OK Where is your Centreon variable library directory? default to [/var/lib/centreon] > Path /var/lib/centreon OK /usr/bin/rrdtool OK /usr/bin/mail OK /usr/bin/php OK Where is PEAR [PEAR.php] default to [/usr/share/php/PEAR.php] > Path /usr/share/php OK /usr/bin/perl OK Enable Apache configuration OK ERROR: Conf centreon does not exist! Finding Apache user : www-data Finding Apache group : www-data What is the Centreon group ? [centreon] default to [centreon] > What is the Centreon user ? [centreon] default to [centreon] > What is the Monitoring engine user ? > centreon-engine What is the Broker user ? (optional) > centreon-broker What is the Monitoring engine log directory ? > /var/log/centreon-engine Where is your monitoring plugins (libexec) directory ? default to [/usr/lib/nagios/plugins] > Path /usr/lib/nagios/plugins OK Add group centreon to user www-data OK Add group centreon to user centreon-engine OK Add group centreon-engine to user www-data OK Add group centreon-engine to user centreon OK
------------------------------------------------------------------------ Configure Sudo ------------------------------------------------------------------------ Where is sudo configuration file default to [/etc/sudoers] > /etc/sudoers OK What is the Monitoring engine init.d script ? > /etc/init.d/centengine What is the Monitoring engine binary ? > /usr/sbin/centengine What is the Monitoring engine configuration directory ? > /etc/centreon-engine Where is the configuration directory for broker module ? > /etc/centreon-broker Where is the init script for broker module daemon ? > /etc/init.d/cbd Your sudo is not configured Do you want me to configure your sudo ? (WARNING) [y/n], default to [n]: > y Configuring Sudo OK
------------------------------------------------------------------------ Configure Apache server ------------------------------------------------------------------------ Do you want to add Centreon Apache sub configuration file ? [y/n], default to [n]: > y Create '/etc/apache2/conf-available/centreon.conf' OK Configuring Apache OK Do you want to reload your Apache ? [y/n], default to [n]: > y Reloading Apache service OK Preparing Centreon temporary files Change right on /var/log/centreon OK Change right on /etc/centreon OK Change macros for insertBaseConf.sql OK Change macros for sql update files OK Change macros for php files OK Change macros for php config file OK Change macros for perl binary OK Change right on /etc/centreon-engine OK Add group centreon-broker to user www-data OK Add group centreon-broker to user centreon-engine OK Add group centreon to user centreon-broker OK Change right on /etc/centreon-broker OK Copy CentWeb in system directory Install CentWeb (web front of centreon) OK Change right for install directory Change right for install directory OK Install libraries OK Write right to Smarty Cache OK Copying libinstall OK Change macros for centreon.cron OK Install Centreon cron.d file OK Change macros for centAcl.php OK Change macros for downtimeManager.php OK Install cron directory OK Change right for eventReportBuilder OK Change right for dashboardBuilder OK Change macros for centreon.logrotate OK Install Centreon logrotate.d file OK Prepare centFillTrapDB OK Install centFillTrapDB OK Prepare centreon_trap_send OK Install centreon_trap_send OK Prepare centreon_check_perfdata OK Install centreon_check_perfdata OK Prepare centreonSyncPlugins OK Install centreonSyncPlugins OK Prepare centreonSyncArchives OK Install centreonSyncArchives OK Install generateSqlLite FAIL Install changeRrdDsName.pl OK Prepare export-mysql-indexes OK Install export-mysql-indexes OK Prepare import-mysql-indexes OK Install import-mysql-indexes OK Prepare clapi binary OK Install clapi binary OK Centreon Web Perl lib installed OK ------------------------------------------------------------------------ Pear Modules ------------------------------------------------------------------------ Check PEAR modules PEAR 1.4.9 1.9.4 OK DB 1.7.6 NOK DB_DataObject 1.8.4 NOK DB_DataObject_FormBuilder 1.0.0RC4 NOK MDB2 2.0.0 NOK Date 1.4.6 NOK Archive_Tar 1.1 1.3.11 OK Auth_SASL 1.0.1 NOK Console_Getopt 1.2 1.3.1 OK Validate 0.6.2 NOK Log 1.9.11 NOK Archive_Zip 0.1.2 NOK Do you want me to install/upgrade your PEAR modules [y/n], default to [y]: > y Upgrading PEAR modules Installing PEAR modules DB 1.7.6 1.9.2 OK DB_DataObject 1.8.4 1.11.5 OK DB_DataObject_FormBuilder 1.0.0RC4 1.0.2 OK MDB2 2.0.0 2.4.1 OK Auth_SASL 1.0.1 1.0.6 OK Validate 0.6.2 0.8.5 OK Log 1.9.11 1.12.9 OK Archive_Zip 0.1.2 0.1.2 OK Check PEAR modules PEAR 1.4.9 1.10.1 OK DB 1.7.6 1.9.2 OK DB_DataObject 1.8.4 1.11.5 OK DB_DataObject_FormBuilder 1.0.0RC4 1.0.2 OK MDB2 2.0.0 2.4.1 OK Date 1.4.6 1.4.7 OK Archive_Tar 1.1 1.3.11 OK Auth_SASL 1.0.1 1.0.6 OK Console_Getopt 1.2 1.3.1 OK Validate 0.6.2 0.8.5 OK Log 1.9.11 1.12.9 OK Archive_Zip 0.1.2 0.1.2 OK All PEAR modules OK ------------------------------------------------------------------------ Centreon Post Install ------------------------------------------------------------------------ Create /usr/local/centreon/www/install/install.conf.php OK Create /etc/centreon/instCentWeb.conf OK
------------------------------------------------------------------------ Start CentStorage Installation ------------------------------------------------------------------------ Where is your Centreon Run Dir directory? default to [/var/run/centreon] > Do you want me to create this directory ? [/var/run/centreon] [y/n], default to [n]: > y Path /var/run/centreon OK Where is your CentStorage binary directory default to [/usr/local/centreon/bin] > Path /usr/local/centreon/bin OK Where is your CentStorage RRD directory default to [/var/lib/centreon] > Path /var/lib/centreon OK Preparing Centreon temporary files /tmp/centreon-setup exists, it will be moved... install www/install/createTablesCentstorage.sql OK Creating Centreon Directory '/var/lib/centreon/status' OK Creating Centreon Directory '/var/lib/centreon/metrics' OK Change right : /var/run/centreon OK Install logAnalyserBroker OK Install nagiosPerfTrace OK Change macros for centstorage.cron OK Install CentStorage cron OK Change macros for centstorage.logrotate OK Install Centreon Storage logrotate.d file OK Create /etc/centreon/instCentStorage.conf OK
------------------------------------------------------------------------ Start CentCore Installation ------------------------------------------------------------------------ Where is your CentCore binary directory default to [/usr/local/centreon/bin] > Path /usr/local/centreon/bin OK Preparing Centreon temporary files /tmp/centreon-setup exists, it will be moved... Copy CentCore in binary directory OK Change right : /var/run/centreon OK Change right : /var/lib/centreon OK Change macros for centcore.logrotate OK Install Centreon Core logrotate.d file OK Replace CentCore init script Macro OK Replace CentCore default script Macro OK Do you want me to install CentCore init script ? [y/n], default to [n]: > y CentCore init script installed OK CentCore default script installed OK Do you want me to install CentCore run level ? [y/n], default to [n]: > y Adding system startup for /etc/init.d/centcore ... /etc/rc0.d/K30centcore -> ../init.d/centcore /etc/rc1.d/K30centcore -> ../init.d/centcore /etc/rc6.d/K30centcore -> ../init.d/centcore /etc/rc2.d/S40centcore -> ../init.d/centcore /etc/rc3.d/S40centcore -> ../init.d/centcore /etc/rc4.d/S40centcore -> ../init.d/centcore /etc/rc5.d/S40centcore -> ../init.d/centcore CentCore Perl lib installed OK Create /etc/centreon/instCentCore.conf OK
------------------------------------------------------------------------ Start CentPlugins Installation ------------------------------------------------------------------------ Where is your CentPlugins lib directory default to [/var/lib/centreon/centplugins] > Do you want me to create this directory ? [/var/lib/centreon/centplugins] [y/n], default to [n]: > y Path /var/lib/centreon/centplugins OK Preparing Centreon temporary files /tmp/centreon-setup exists, it will be moved... Change macros for CentPlugins OK Installing the plugins OK Change right on centreon.conf OK CentPlugins is installed Create /etc/centreon/instCentPlugins.conf OK ------------------------------------------------------------------------ Start CentPlugins Traps Installation ------------------------------------------------------------------------ Where is your SNMP configuration directory default to [/etc/snmp] > /etc/snmp OK Where is your CentreonTrapd binaries directory default to [/usr/local/centreon/bin] > /usr/local/centreon/bin OK Finding Apache user : www-data Preparing Centreon temporary files /tmp/centreon-setup exists, it will be moved... Change macros for snmptrapd.conf OK Replace CentreonTrapd init script Macro OK Replace CentreonTrapd default script Macro OK Do you want me to install CentreonTrapd init script ? [y/n], default to [n]: > y CentreonTrapd init script installed OK CentreonTrapd default script installed OK Do you want me to install CentreonTrapd run level ? [y/n], default to [n]: > y Adding system startup for /etc/init.d/centreontrapd ... /etc/rc0.d/K30centreontrapd -> ../init.d/centreontrapd /etc/rc1.d/K30centreontrapd -> ../init.d/centreontrapd /etc/rc6.d/K30centreontrapd -> ../init.d/centreontrapd /etc/rc2.d/S40centreontrapd -> ../init.d/centreontrapd /etc/rc3.d/S40centreontrapd -> ../init.d/centreontrapd /etc/rc4.d/S40centreontrapd -> ../init.d/centreontrapd /etc/rc5.d/S40centreontrapd -> ../init.d/centreontrapd trapd Perl lib installed OK Install : snmptrapd.conf OK Install : centreontrapdforward OK Install : centreontrapd OK Change macros for centreontrapd.logrotate OK Install Centreon Trapd logrotate.d file OK Create /etc/centreon/instCentPlugins.conf OK ############################################################################### # # # Go to the URL : http://servername/centreon/ # # to finish the setup # # # # Report bugs at https://github.com/centreon/centreon/issues # # # # Thanks for using Centreon. # # ----------------------- # # Contact : infos@centreon.com # # http://www.centreon.com # # # ###############################################################################
Nun muss die Apache-Konfiguration „/etc/apache2/conf-available/centreon.conf“ noch angepasst werden
vi /etc/apache2/conf-available/centreon.conf #Order allow,deny #Allow from all Require all granted
Anschließend wird die Apache-Konfigurationsdatei aktiviert.
a2enconf centreon.conf service apache2 reload
Die Installation wird nun per Browser fortgesetzt.
Website öffnen >>> http://IP-Adresse/centreon
Falls der Timezone-Status einen Fehler zurückgibt ist in der PHP-Konfiguration die Zeitzone noch nicht definiert.
vi /etc/php5/apache2/php.ini [Date] date.timezone = "Europe/Berlin"
Zum Übernehmen der Einstellungen muss der Apache Webserver neu gestartet werden.
service apache2 restart
Jetzt sollte beim Timezone Status kein Fehler mehr auftreten.
Centreon Engine directory: | /usr/sbin/ |
Centreon Engine Stats binary: | /usr/sbin/centenginestats |
Centreon Engine var lib directory: | /var/lib/centreon-engine |
Centreon Engine Connector path: | /usr/lib/centreon-connector |
Centreon Engine Library (*.so) directory: | /usr/lib/centreon-engine |
An dieser Stelle geht es kurz zurück auf die Kommandozeile um das benötigte Centreon Broker Log Verzeichnis anzulegen und Berechtigungen anzupassen.
mkdir /var/log/centreon-broker chown centreon-broker:centreon-broker /var/log/centreon-broker chmod 775 /var/log/centreon-broker chmod 775 /var/lib/centreon-broker
Centreon Broker etc directory: | /etc/centreon-broker |
Centreon Broker module (cbmod.so): | /usr/lib/centreon-broker/cbmod.so |
Centreon Broker log directory: | /var/log/centreon-broker |
Retention file directory: | /var/lib/centreon-broker |
Centreon Broker lib (*.so) directory: | /usr/local/centreon/lib/centreon-broker |
Nun wird der Benutzer für das Webinterface definiert, inkl. E-Mail-Adresse.
Falls die hier gezeigte Fehlermeldung angezeigt wird, ist noch eine kleine Anpassung der MYSQL-Konfigurationdatei „/etc/mysql/my.cnf“ notwendig.
vi /etc/mysql/my.cnf [mysqld] innodb_file_per_table = 1
Anschließend noch kurz den MYSQL-Server neu starten.
service mysql restart
Nun klappt die Installation der Datenbanken.
Centreon Dienste starten
service centcore start service centreontrapd start
Abschließend kann man sich mit dem eben angelegten User die das Centreon Webinterface einloggen. Damit das Monitoring beginnen kann wird nun die erste Konfiguration an die Centreon Engine übergeben.
- Configuration > Pollers > Einstellungen öffnen
- Häckchen setzen > Restart auswählen > Export
Abschließend muss der Centreon Broker gestarten werden und Centreon liefert erste Ergebnisse.
service cbd start
Viel Spaß mit Centreon 🙂
11. Februar 2016 um 12:46
Vielen Dank für dieses Tutorial! Einfach zu verfolgen und verstehen und teilweise wurden sogar die Funktion bestimmter Module erklärt.
Ich hätte da nur eine Frage die nicht mit Centreon direkt in Verbindung steht:
Momentan bin ich im dritten Ausbildungsjahr als Fachinformatiker (Fachrichtung Systemintegration) und habe mir das Installieren und Konfigurieren einer Network Monitoring Lösung als Projekt für die Abschlussprüfung ausgesucht. Nun habe ich bemerkt, dass es relativ schwer ist gute Wissensressourcen für solch ein Thema zu finden. Hätten Sie vielleicht ein paar Quellen, mit denen ich mich einigermaßen schnell und einfach mit der Materie vertraut machen kann?
Vielen Dank!
Gruß
Josef
11. Februar 2016 um 22:16
Hallo Josef,
erstmal ein super Thema für deine Projektarbeit. IT Monitoring sind klar eine Domäne von Open Source Software und es gibt viele verschiedene Systeme auf dem Markt. Da ist es schwer da einen Überblick zu bekommen. Eine umfassende Einführung in die weite Thematik findet sich schwer. Aber hier ein paar Tipps für den Start.
Am Anfang solltest du dich am mit den Mechanismen des SNMP Protokolls vertraut machen, da IT Monitoring größtenteils mit diesem Protokoll arbeitet. Als nächstes ist es wichtig die Funktionsweise einer Monitoring Engine kennenzulernen (Nagios, Icinga oder die Centreon Engine arbeiten im Prinzip gleich) und zu wissen wie man Monitoring Plugins ausführt und dessen Ergebnisse/Status aussehen.
Für den Einstieg in Centreon werde ich in naher Zukunft eine Artikelreihe schreiben. Alternativ kannst du die auch einmal Nagios anschauen und ein paar einfache Checks einrichten. Überwachen lässt sich im Prinzip alles was eine IP Adresse hat.
Hier noch ein paar nützliche Quellen im Internet. Empfehlungen für Fachbücher habe ich leider keine, alle benötigten Informationen findet man aber im Netz.
Einstieg in Nagios:
http://wiki.monitoring-portal.org/nagios/howtos
http://www.linux-magazin.de/Ausgaben/2014/05/Nagios
http://www.ip-insider.de/specials/tipps/tools/articles/329996/
Die Monitoring Community versammelt sich in diesem Forum:
http://monitoring-portal.org/
Haufenweise Monitoring Plugins findest du hier:
https://exchange.nagios.org/directory/Plugins
17. Februar 2016 um 16:56
Super Tutorial. Viele Dank.
Funktioniert auch bis auf 1-2 kleine Änderungen unter Debian 8 (glaub libgnutls-dev nennt sich anders bei debian und noch irgendwas).
Ich bin irgendwie bei Centreon 2.4.5 hängen geblieben und trau mich nicht die produktiv Maschine upzudaten.
17. Februar 2016 um 22:27
Hallo Thomas,
freut mich.
Dein Zögern beim Upgrade einer Produktivmaschine kann ich verstehen. Beim Upgrade auf Version 2.5.x steht eine kleine Datenbankanpassung an. Von 2.5.x auf 2.6.x geht es eigentlich problemlos. Ein Upgrade auf Version 2.7.x bedingt allerdings den Wechsel von Nagios/NDO zu Centreon-Engine/-Broker. Dies steht mir bei einer produktiven Installation auch noch bevor. Meine Erfahrungen werde ich dann zu gegebener Zeit posten :).
18. Februar 2016 um 10:42
super…ich freue mich wenn es auch andere Centreon Fans in Deutschland gibt 😉
17. März 2016 um 20:02
Ich bin gespannt was du über das Udpate berichtest.
Bin auch gerade dabei meine beiden Installationen auf die aktuellen Installationen zu bringen.
Intern mit 150 Hosts und 2500 Services
Extern 1300 Hosts und 33500 Services verteilt auf 9 Poller.
Beide Installationen von Debian Squeeze und Centreon 2.5.1 und Nagios 3.5.0 zu Debian Jessie und Centreon 2.7.3. Die Externe Installation eventuell auch noch auf einen frisch installierten Server umziehen.
Grüße
Dominik
24. März 2016 um 13:31
Hi, cooles How to.
Allerdings wundere ich mich doch sehr über diesen Abschnitt:
Centreon-Engine init.d Sktipt anlagen und Autostart einrichten
cd /etc/init.d
mv centengine.conf ../init/
ln -s /lib/init/upstart-job centengine
update-rc.d centengine defaults
.conf is definitiv falsch. /lib/init/upstart-job gibt es bei mir auch nicht.
Übersehe ich was?
24. März 2016 um 17:29
Hallo,
da ließ meine Rechtschreibung aber wieder zu wünschen übrig 🙂
Ich vermute auf deinem System kommt systemd statt Upstart zum Einsatz (ab Ubuntu 15.04 oder Debian 8). Dann sollte der folgende Befehl eigentlich genügen:
sudo update-rc.d centengine defaults
12. April 2016 um 16:54
nur weil es mir aufgefallen ist:
Centreon ist ab 2.7.0 nicht mehr mit Nagios ndo kompatibel. Centreon 2.6.6 läuft bei mir noch ganz wunderbar mit nagios 3.4.1 als „engine“. Nagios Plugins sind natürlich auch mit Centreon 2.7.x kompatibel ;-).