mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 15:44:21 +02:00
fix perfdata refs #5643
This commit is contained in:
parent
7def89c2c2
commit
a20f9b3c81
@ -110,9 +110,9 @@ sub run {
|
|||||||
}
|
}
|
||||||
$self->{output}->perfdata_add(label => sprintf("used_%s",$database),
|
$self->{output}->perfdata_add(label => sprintf("used_%s",$database),
|
||||||
unit => 'B',
|
unit => 'B',
|
||||||
value => $use,
|
value => sprintf("%d",$use),
|
||||||
warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning'),
|
warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning', total => $size, cast_int => 1),
|
||||||
critical => $self->{perfdata}->get_perfdata_for_output(label => 'critical'),
|
critical => $self->{perfdata}->get_perfdata_for_output(label => 'critical', total => $size, cast_int => 1),
|
||||||
min => 0,
|
min => 0,
|
||||||
max => $size);
|
max => $size);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user