+ update hardware.pm (add battery)
This commit is contained in:
parent
2871d1e1d3
commit
a9592dc564
|
@ -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
|
||||
# the needs in IT infrastructure and application monitoring for
|
||||
|
@ -28,7 +28,7 @@ use warnings;
|
|||
sub set_system {
|
||||
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->{cb_hook2} = 'snmp_execute';
|
||||
|
@ -65,10 +65,23 @@ sub set_system {
|
|||
['formatting', 'OK'],
|
||||
['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_module} = ['temperature', 'fan', 'psu', 'sysdrive'];
|
||||
$self->{components_module} = ['temperature', 'fan', 'psu', 'sysdrive', 'battery' ];
|
||||
}
|
||||
|
||||
sub snmp_execute {
|
||||
|
|
Loading…
Reference in New Issue