Add unit of perfdata for memeory refs #6013

This commit is contained in:
Kevin Duret 2014-12-05 09:38:07 +01:00
parent 43d13ced04
commit 316de51f64
1 changed files with 1 additions and 0 deletions

View File

@ -101,6 +101,7 @@ sub run {
$self->{output}->perfdata_add(label => "used",
value => $memory_used,
unit => 'B',
warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning', total => $memory_available, cast_int => 1),
critical => $self->{perfdata}->get_perfdata_for_output(label => 'critical', total => $memory_available, cast_int => 1),
min => 0, max => $memory_available);