Nagios+centreon Introduction
1. Centreon is an open source it monitoring software developed by the French in 2003, originally named Oreon, and formally renamed Centreon in 2005.
2. Centreon can simply manage and configure Nagios, which is simpler and more straightforward than nagiosql.
3. Cooperation Process:
①, Nagios writes the monitoring data to the database through the Ndoutil module;
②, Centreon reads data from the database and instantly displays monitoring information.
4. Comparison between Nagios+centreon and nagios+cacti :
①, GUI way to add host, support hosttemplate and servicestemplate, automatically establish associated services, and nagios+ The cacti is easier to configure than the configuration.
servcie Auto add graph don't have to be like nagios+cacti walk.
③,host monitoring can be all in Nrpe mode, do not need to be like nagios+cacti generate traffic map must use SNMP.
④, support Multi-node distributed monitoring ,nagios+cacti distributed monitoring now I think of all the headaches.
⑤, Support ACL Rights Management way, restrict the user right to the menu item,nagios+cacti An account everyone uses, is obsolete.
⑥, detailed log management functions, log search filtering are supported.
⑦, functional modular management.
5. Use Centreon easy to build enterprise-level distributed IT infrastructure operation and maintenance monitoring system.
6. The main functions are as follows:
①, configuration management: compared to Nagios Original configuration file management,Centreon provides the front configuration interface, you can easily define the host, service, main group, service groups and other configuration information.
< Span style= "FONT-SIZE:14PX; Font-family: the song body; >②, data show: nagios centreon Rrdtool show on the graph.
③, data management: Nagios itself only supports configuration file configuration, and does not save the collected data. Even with ndoutils, the data isstored primarily in the database, and the default does not provide a good data management interface;Centreon can easily manage the data in the database and convert it to the appropriate Nagios configuration file.
④, reporting system: Centreon provides many report functions, such as monitoring overview, monthly Report, daily report, host / service Health Trend chart, etc.
7. Ndoutils is a plug-in that stores Nagios data into a database, including configuration information, monitored data, and so on.
The architecture is mainly composed of Nagios,ndoutils,Mysql,Centreon composition. The main data streams are as follows:
(1), Nagios, database,Centreon can be distributed to more than one server.
(2), Nagios main program,Nagios plug-in and ndoutils in the ndomod module for capturing server data.
(3) , each node uses the Ndomod module in the ndoutils to transfer Nagios data to the central node, the central node runs the ndoutils in the the ndo2db daemon processes data from the decomposition nodes.
(4), the central node ndo2db Process writes the data of each node to the Nagiostatus database.
(5), Centreon nagiostatus data to the Web interface, and call RRDtool to show the data in the graph.
(6), Centreon writes the new configuration file to the database and generates the Nagios instance configuration locally.
(7), Centreon call the Nagios plug-in to transfer the local instance profile to each node and replace the original configuration file. Restart the Nagios service.
8. Structure:
9. Centreon+nagios configuration file:
Defining hosts /usr/local/nagios/etc/hosts.cfg
defining a host template /usr/local/nagios/etc/hosttemplates.cfg
Defining host Groups /usr/local/nagios/etc/hostgroups.cfg
Defining Services /usr/local/nagios/etc/services.cfg
Defining service Groups /usr/local/nagios/etc/servicegroups.cfg
Defining Commands /usr/local/nagios/etc/checkcommands.cfg
define a contact person /usr/local/nagios/etc/contacts.cfg
Define a contact group /usr/local/nagios/etc/contactgroups.cfg
Defining alarm Commands /usr/local/nagios/etc/misccommands.cfg
Defining time Templates /usr/local/nagios/etc/timeperiods.cfg
Note: when configured properly Centreon+nagios, the above configuration file can be backed up and the backup/usr/local/nagios/libexecdirectory of plugins that can be used for otherCentreon+nagiosMonitor the project.
related ports:
Nrpe : 5666
Ndo2db : 5668
Nagios+centreon Summary of the first chapter--nagios+centreon introduction