From 32cd0dd0f6990a33f8d05dbb074119abbfc8bcca Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Fri, 9 Oct 2015 14:54:50 +0200 Subject: [PATCH] + Fix #186 --- centreon-plugins/apps/protocols/ldap/mode/search.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/centreon-plugins/apps/protocols/ldap/mode/search.pm b/centreon-plugins/apps/protocols/ldap/mode/search.pm index a295d65d2..fbbcc94b7 100644 --- a/centreon-plugins/apps/protocols/ldap/mode/search.pm +++ b/centreon-plugins/apps/protocols/ldap/mode/search.pm @@ -98,8 +98,12 @@ sub run { $self->{output}->perfdata_add(label => "time", unit => 's', value => sprintf('%.3f', $timeelapsed), + min => 0); + $self->{output}->perfdata_add(label => "entries", + value => $num_entries, warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning'), - critical => $self->{perfdata}->get_perfdata_for_output(label => 'critical')); + critical => $self->{perfdata}->get_perfdata_for_output(label => 'critical'), + min => 0); $self->{output}->display(); $self->{output}->exit();