This repository has been archived by the owner on Dec 13, 2022. It is now read-only.
feat(core): centreon_health script to gather various data #7418
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request Template
Description
Script that gathers various information useful for centreon diagnostic.
PR made from @Sims24 one (reworked a little bit)
Script to quickly gather an overall overview of centreon scope and parameters. Very helpfull when things goes bad. Easily extensible.
Cover following topics :
Centreon version : More complete for 2.8.x, but also manage 2.7.x (el6 and el7).
Offers following output format :
Only prerequiste is perl binding for SSH C lib and centreon_plugins for Linux (SNMP) :
Sample output below (skip logs for the sake of clarity) :
CENTREON_HEALTH TEXT OUTPUT
CENTREON OVERVIEW
AVERAGE METRICS
RRD INFORMATIONS
DATABASES INFORMATIONS
Databases size
Tables size (centreon_storage db)
Partitioning check
SQL Engine tuning variables
MODULE INFORMATIONS
CENTREON NODES INFORMATIONS
Central
Identity:
Engine stats:
Broker stats:
File: central-broker-master-stats.json
File: central-module-master-stats.json
File: central-rrd-master-stats.json
System stats:
Storage '/' Usage Total: 1.99 GB Used: 1.15 GB (57.88%) Free: 858.37 MB (42.12%)
Storage '/usr' Usage Total: 3.99 GB Used: 2.67 GB (66.81%) Free: 1.32 GB (33.19%)
Storage '/var/lib/mysql' Usage Total: 3.99 GB Used: 3.00 GB (75.14%) Free: 1015.75 MB (24.86%)
Storage '/tmp' Usage Total: 1016.66 MB Used: 258.26 MB (25.40%) Free: 758.40 MB (74.60%)
Poller
Identity:
Engine stats:
Broker stats:
File: poller-module-stats.json
System stats:
Storage '/' Total: 6.19 GB Used: 2.09 GB (33.87%) Free: 4.09 GB (66.13%)
Type of change
Target serie
How this pull request can be tested ?
Execute the script and check that information returned are correct.
Checklist
Community contributors & Centreon team
Centreon team only