Merge pull request #604 from s-duret/patch-7

Add display status (Thanks garnier-quentin)
This commit is contained in:
qgarnier 2017-02-23 15:58:41 +01:00 committed by GitHub
commit 83ec44bce6
1 changed files with 2 additions and 1 deletions

View File

@ -74,6 +74,7 @@ sub custom_status_calc {
$self->{result_values}->{opstatus} = $options{new_datas}->{$self->{instance} . '_opstatus'};
$self->{result_values}->{admstatus} = $options{new_datas}->{$self->{instance} . '_admstatus'};
$self->{result_values}->{display} = $options{new_datas}->{$self->{instance} . '_display'};
return 0;
}
@ -472,7 +473,7 @@ sub set_counters {
sub set_key_values_status {
my ($self, %options) = @_;
return [ { name => 'opstatus' }, { name => 'admstatus' } ];
return [ { name => 'opstatus' }, { name => 'admstatus' }, { name => 'display' } ];
}
sub set_key_values_in_traffic {