Merge pull request #2057 from centreon/tibs_fix-velocloud

fix(mode): Velocloud QOE global thresholds
This commit is contained in:
qgarnier 2020-06-15 17:05:24 +02:00 committed by GitHub
commit 4f98a062e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 9 deletions

View File

@ -40,27 +40,27 @@ sub set_counters {
]; ];
$self->{maps_counters}->{global} = [ $self->{maps_counters}->{global} = [
{ label => 'qoe-voice', nlabel => 'qoe.voice.count', set => { { label => 'qoe-voice-global', nlabel => 'global.qoe.voice.count', set => {
key_values => [ { name => 'voice' } ], key_values => [ { name => 'voice' } ],
output_template => 'Voice QOE: %s', output_template => 'Global voice QOE: %s',
perfdatas => [ perfdatas => [
{ value => 'voice', template => '%s', { value => 'voice', template => '%s',
min => 0, max => 10, label_extra_instance => 1 }, min => 0, max => 10, label_extra_instance => 1 },
], ],
} }
}, },
{ label => 'qoe-video', nlabel => 'qoe.video.count', set => { { label => 'qoe-video-global', nlabel => 'global.qoe.video.count', set => {
key_values => [ { name => 'video' } ], key_values => [ { name => 'video' } ],
output_template => 'Video QOE: %s', output_template => 'Global video QOE: %s',
perfdatas => [ perfdatas => [
{ value => 'video', template => '%s', { value => 'video', template => '%s',
min => 0, max => 10, label_extra_instance => 1 }, min => 0, max => 10, label_extra_instance => 1 },
], ],
} }
}, },
{ label => 'qoe-transactional', nlabel => 'qoe.transactional.count', set => { { label => 'qoe-transactional-global', nlabel => 'global.qoe.transactional.count', set => {
key_values => [ { name => 'transactional' } ], key_values => [ { name => 'transactional' } ],
output_template => 'Transactional QOE: %s', output_template => 'Global transactional QOE: %s',
perfdatas => [ perfdatas => [
{ value => 'transactional', template => '%s', { value => 'transactional', template => '%s',
min => 0, max => 10, label_extra_instance => 1 }, min => 0, max => 10, label_extra_instance => 1 },
@ -219,7 +219,8 @@ Filter link by name (Can be a regexp).
=item B<--warning-*> B<--critical-*> =item B<--warning-*> B<--critical-*>
Thresholds. Thresholds.
Can be: 'qoe-voice', 'qoe-video', 'qoe-transactional'. Can be: 'qoe-voice-global', 'qoe-video-global', 'qoe-transactional-global' (global values) and/or
'qoe-voice', 'qoe-video', 'qoe-transactional' (per link values).
=back =back