+ update hardware.pm (add battery)
This commit is contained in:
parent
b12775f445
commit
205a068889
|
@ -1,5 +1,5 @@
|
||||||
#
|
#
|
||||||
# Copyright 2017 Centreon (http://www.centreon.com/)
|
# Copyright 2016 Centreon (http://www.centreon.com/)
|
||||||
#
|
#
|
||||||
# Centreon is a full-fledged industry-strength solution that meets
|
# Centreon is a full-fledged industry-strength solution that meets
|
||||||
# the needs in IT infrastructure and application monitoring for
|
# the needs in IT infrastructure and application monitoring for
|
||||||
|
@ -28,7 +28,7 @@ use warnings;
|
||||||
sub set_system {
|
sub set_system {
|
||||||
my ($self, %options) = @_;
|
my ($self, %options) = @_;
|
||||||
|
|
||||||
$self->{regexp_threshold_overload_check_section_option} = '^(temperature|fan|psu|sysdrive)$';
|
$self->{regexp_threshold_overload_check_section_option} = '^(temperature|fan|psu|sysdrive|battery)$';
|
||||||
$self->{regexp_threshold_numeric_check_section_option} = '^(temperature|fan)$';
|
$self->{regexp_threshold_numeric_check_section_option} = '^(temperature|fan)$';
|
||||||
|
|
||||||
$self->{cb_hook2} = 'snmp_execute';
|
$self->{cb_hook2} = 'snmp_execute';
|
||||||
|
@ -65,10 +65,23 @@ sub set_system {
|
||||||
['formatting', 'OK'],
|
['formatting', 'OK'],
|
||||||
['unknown', 'UNKNOWN'],
|
['unknown', 'UNKNOWN'],
|
||||||
],
|
],
|
||||||
|
battery => [
|
||||||
|
['ok', 'OK'],
|
||||||
|
['fault', 'CRITICAL'],
|
||||||
|
['notFitted', 'WARNING'],
|
||||||
|
['initializing', 'OK'],
|
||||||
|
['normalCharging', 'OK'],
|
||||||
|
['discharged', 'CRITICAL'],
|
||||||
|
['cellTesting', 'OK'],
|
||||||
|
['notResponding', 'CRITICAL'],
|
||||||
|
['low', 'WARNING'],
|
||||||
|
['veryLow', 'CRITICAL'],
|
||||||
|
['ignore', 'UNKNOWN'],
|
||||||
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
$self->{components_path} = 'centreon::common::bluearc::snmp::mode::components';
|
$self->{components_path} = 'centreon::common::bluearc::snmp::mode::components';
|
||||||
$self->{components_module} = ['temperature', 'fan', 'psu', 'sysdrive'];
|
$self->{components_module} = ['temperature', 'fan', 'psu', 'sysdrive', 'battery' ];
|
||||||
}
|
}
|
||||||
|
|
||||||
sub snmp_execute {
|
sub snmp_execute {
|
||||||
|
|
Loading…
Reference in New Issue