mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-09-26 11:18:39 +02:00
(plugin) network::hp::procurve::snmp - mode interfaces add tranceiver update
This commit is contained in:
parent
ad32fcdf29
commit
117c9df4eb
@ -188,6 +188,14 @@ sub custom_load {
|
||||
|
||||
return if (!defined($self->{option_results}->{add_optical}));
|
||||
|
||||
# every time before we fetch the values of transceivers like temperature, voltage, Tx and RX powers
|
||||
my $oid_hpicfXcvrDiagnosticsUpdate = '.1.3.6.1.4.1.11.2.14.11.5.1.82.1.1.1.1.10';
|
||||
my $oids2set = {};
|
||||
foreach (keys %$optical_ports) {
|
||||
$oids2set->{ $oid_hpicfXcvrDiagnosticsUpdate . '.' . $_ } = { value => 1, type => 'INTEGER' };
|
||||
}
|
||||
$self->{snmp}->set(oids => $oids2set);
|
||||
|
||||
my $optical_ports = $self->{statefile_cache}->get(name => 'optical_ports');
|
||||
$self->{snmp}->load(
|
||||
oids => [ map($_->{oid}, values(%$mapping_optical)) ],
|
||||
|
Loading…
x
Reference in New Issue
Block a user