This commit is contained in:
Quentin Garnier 2015-02-18 16:34:37 +01:00
parent 82182c7012
commit 1b08c6c6a5
2 changed files with 4 additions and 2 deletions

View File

@ -96,7 +96,8 @@ sub run {
my ($used_value, $used_unit) = $self->{perfdata}->change_bytes(value => $used);
my ($free_value, $free_unit) = $self->{perfdata}->change_bytes(value => $free);
$self->{output}->output_add(long_msg => sprintf("Disk Local Total: %s Used: %s (%.2f%%) Free: %s (%.2f%%)",
$self->{output}->output_add(severity => $exit,
short_msg => sprintf("Disk Local Total: %s Used: %s (%.2f%%) Free: %s (%.2f%%)",
$total_value . " " . $total_unit,
$used_value . " " . $used_unit, $prct_used,
$free_value . " " . $free_unit, $prct_free));

View File

@ -97,7 +97,8 @@ sub run {
my ($used_value, $used_unit) = $self->{perfdata}->change_bytes(value => $used);
my ($free_value, $free_unit) = $self->{perfdata}->change_bytes(value => $free);
$self->{output}->output_add(long_msg => sprintf("Memory Total: %s Used: %s (%.2f%%) Free: %s (%.2f%%)",
$self->{output}->output_add(severity => $exit,
short_msg => sprintf("Memory Total: %s Used: %s (%.2f%%) Free: %s (%.2f%%)",
$total_value . " " . $total_unit,
$used_value . " " . $used_unit, $prct_used,
$free_value . " " . $free_unit, $prct_free));