This commit is contained in:
Shini31 2015-08-10 14:08:32 +02:00
parent 3f34e92dc8
commit 76bcfc475c
1 changed files with 2 additions and 2 deletions

View File

@ -172,8 +172,8 @@ sub run {
my $delta_read_bytes = $read_bytes - $old_read_bytes;
my $delta_write_bytes = $write_bytes - $old_write_bytes;
my $read_absolute_per_sec = $delta_read_bits / $time_delta;
my $write_absolute_per_sec = $delta_write_bits / $time_delta;
my $read_absolute_per_sec = $delta_read_bytes / $time_delta;
my $write_absolute_per_sec = $delta_write_bytes / $time_delta;
my $exit1 = $self->{perfdata}->threshold_check(value => $read_absolute_per_sec, threshold => [ { label => 'critical-read', 'exit_litteral' => 'critical' }, { label => 'warning-read', exit_litteral => 'warning' } ]);
my $exit2 = $self->{perfdata}->threshold_check(value => $write_absolute_per_sec, threshold => [ { label => 'critical-write', 'exit_litteral' => 'critical' }, { label => 'warning-write', exit_litteral => 'warning' } ]);