diff --git a/network/fortinet/fortiauthenticator/snmp/mode/ha.pm b/network/fortinet/fortiauthenticator/snmp/mode/ha.pm index f1ddd9591..e4cdcced8 100644 --- a/network/fortinet/fortiauthenticator/snmp/mode/ha.pm +++ b/network/fortinet/fortiauthenticator/snmp/mode/ha.pm @@ -39,8 +39,8 @@ sub custom_status_output { sub custom_status_calc { my ($self, %options) = @_; - $self->{result_values}->{ha_status} = $options{old_datas}->{$self->{instance} . '_ha_status'}; - $self->{result_values}->{ha_status_last} = $options{new_datas}->{$self->{instance} . '_ha_status'}; + $self->{result_values}->{ha_status_last} = $options{old_datas}->{$self->{instance} . '_ha_status'}; + $self->{result_values}->{ha_status} = $options{new_datas}->{$self->{instance} . '_ha_status'}; if (!defined($options{old_datas}->{$self->{instance} . '_ha_status'})) { $self->{error_msg} = 'buffer creation'; return -2;