fix hirschmann memory (#1052)

This commit is contained in:
Colin Gagnaire 2018-07-12 17:21:24 +02:00 committed by GitHub
parent 3f286c2d97
commit 1ea5724672
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ sub run {
my $mem_total = $mem_allocated + $mem_free;
my $mem_percent_used = $mem_allocated / $mem_total * 100;
my $mem_percent_used = ($mem_total != 0) ? $mem_allocated / $mem_total * 100 : '0';
my $exit = $self->{perfdata}->threshold_check(value => $mem_percent_used, threshold => [ { label => 'critical', exit_litteral => 'critical' }, { label => 'warning', exit_litteral => 'warning' } ]);