diff --git a/centreon/common/fortinet/fortigate/mode/sessions.pm b/centreon/common/fortinet/fortigate/mode/sessions.pm index 2cd0f0d25..625919fe1 100644 --- a/centreon/common/fortinet/fortigate/mode/sessions.pm +++ b/centreon/common/fortinet/fortigate/mode/sessions.pm @@ -124,7 +124,7 @@ sub run { threshold => [ { label => 'crit60', exit_litteral => 'critical' }, { label => 'warn60', exit_litteral => 'warning' } ]); $exit = $self->{output}->get_most_critical(status => [ $exit1, $exit2, $exit3, $exit4 ]); $self->{output}->output_add(severity => $exit, - short_msg => sprintf("Averate session setup rate: %s, %s, %s, %s (1min, 10min, 30min, 60min)", + short_msg => sprintf("Average session setup rate: %s, %s, %s, %s (1min, 10min, 30min, 60min)", $result->{$oid_fgSysSesRate1}, $result->{$oid_fgSysSesRate10}, $result->{$oid_fgSysSesRate30}, $result->{$oid_fgSysSesRate60})); @@ -182,4 +182,4 @@ Threshold critical of average setup rate (1min,10min,30min,60min). =back =cut - \ No newline at end of file + diff --git a/network/stonesoft/snmp/mode/connections.pm b/network/stonesoft/snmp/mode/connections.pm index 59d920169..8a31f4e59 100644 --- a/network/stonesoft/snmp/mode/connections.pm +++ b/network/stonesoft/snmp/mode/connections.pm @@ -160,7 +160,7 @@ sub manage_selection { my $oid_fwConnNumber = '.1.3.6.1.4.1.1369.5.2.1.4.0'; $self->{results} = $self->{snmp}->get_leef(oids => [$oid_fwConnNumber], nothing_quit => 1); - $self->{global} = { fwConnNumber => $self->{result}->{$oid_fwConnNumber} }; + $self->{global} = { fwConnNumber => $self->{results}->{$oid_fwConnNumber} }; } 1;