new perfdata exchange queues (#2271)

This commit is contained in:
qgarnier 2020-10-21 09:26:34 +02:00 committed by GitHub
parent dc0c1e2f08
commit 97e1bb5223
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -75,7 +75,7 @@ sub set_counters {
sub new {
my ($class, %options) = @_;
my $self = $class->SUPER::new(package => __PACKAGE__, %options);
my $self = $class->SUPER::new(package => __PACKAGE__, %options, force_new_perfdata => 1);
bless $self, $class;
$options{options}->add_options(arguments => {
@ -169,7 +169,6 @@ sub manage_selection {
foreach (keys %$perfdatas_queues) {
$self->{output}->perfdata_add(
label => 'queue_length',
nlabel => 'queue.length.count',
instances => $_,
value => $perfdatas_queues->{$_},