mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 23:54:18 +02:00
Add unit of perfdata for memeory refs #6013
This commit is contained in:
parent
94e1962504
commit
a4bc49db2d
@ -101,6 +101,7 @@ sub run {
|
|||||||
|
|
||||||
$self->{output}->perfdata_add(label => "used",
|
$self->{output}->perfdata_add(label => "used",
|
||||||
value => $memory_used,
|
value => $memory_used,
|
||||||
|
unit => 'B',
|
||||||
warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning', total => $memory_available, cast_int => 1),
|
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),
|
critical => $self->{perfdata}->get_perfdata_for_output(label => 'critical', total => $memory_available, cast_int => 1),
|
||||||
min => 0, max => $memory_available);
|
min => 0, max => $memory_available);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user