From a20f9b3c81e10e7e94f9d514d330e1aa79101a39 Mon Sep 17 00:00:00 2001 From: Kevin Duret Date: Thu, 6 Nov 2014 14:12:55 +0100 Subject: [PATCH] fix perfdata refs #5643 --- centreon-plugins/database/mssql/mode/databasessize.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/centreon-plugins/database/mssql/mode/databasessize.pm b/centreon-plugins/database/mssql/mode/databasessize.pm index c42d2b6d9..c5085930e 100644 --- a/centreon-plugins/database/mssql/mode/databasessize.pm +++ b/centreon-plugins/database/mssql/mode/databasessize.pm @@ -110,9 +110,9 @@ sub run { } $self->{output}->perfdata_add(label => sprintf("used_%s",$database), unit => 'B', - value => $use, - warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning'), - critical => $self->{perfdata}->get_perfdata_for_output(label => 'critical'), + value => sprintf("%d",$use), + warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning', total => $size, cast_int => 1), + critical => $self->{perfdata}->get_perfdata_for_output(label => 'critical', total => $size, cast_int => 1), min => 0, max => $size); }