fix perfdata refs #5643

This commit is contained in:
Kevin Duret 2014-11-06 14:12:55 +01:00
parent d55fc2c6cc
commit 687b5fef34
1 changed files with 3 additions and 3 deletions

View File

@ -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);
}