-
Notifications
You must be signed in to change notification settings - Fork 240
Conversation
Merge from master
@garnier-quentin and @kduret would be great if you could take some time to review this one ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does not work if ppm is not installed
[root@localhost ~]# su - centreon -c "/usr/share/centreon/bin/centreon_health --output-format MARKDOWN --skip-logs"
2018-01-16 10:50:14 - MySQL error: Table 'centreon.mod_ppm_pluginpack' doesn't exist (caller: centreon::health::checkservers:/usr/share/perl5/vendor_perl/centreon/health/checkservers.pm:41) Query: SELECT count(*) FROM mod_ppm_pluginpack
Error: Illegal division by zero at /usr/share/perl5/vendor_perl/centreon/health/checkservers.pm line 105.
Thanks @kduret i'll handle it |
Can someone else reviews this PR ? |
|
||
Specify snmp community to execute plugins | ||
|
||
=item B<--output-type> <value> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Option is --ouput-format
|
||
=over 8 | ||
|
||
=item B<--centstorage-db> <value> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should require /etc/centreon/conf.pm to retrieve this information.
The centreon database can also be non standard.
Specify the name of your centstorage db if not standard | ||
(default: centreon_storage). | ||
|
||
=item B<--centreon-branch> <value> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it could be better if you get this information in the centreon database directly.
@Sims24 can you perform upgrade? |
a91ff91
to
c2e9871
Compare
+ fix division by zero, fix empty value
It's still working with version 18.10. For me, it's ok. We can commit that version. We could do some update after. |
New PR created https://github.com/centreon/centreon/pull/7418 to ease rework of commits, validation and merge |
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%)