Skip to content

Commit

Permalink
Bugfix with using --warningx and --criticalx
Browse files Browse the repository at this point in the history
  • Loading branch information
Benedikt1992 committed Feb 2, 2017
1 parent 13efd23 commit c2e5b3b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ sub check {
$self->add_info(sprintf 'cpu%s usage is %.2f%%',
$self->{multiProcIndex},
$self->{multiProcUsage});
$self->set_thresholds(warning => 80, critical => 90);
$self->add_message($self->check_thresholds($self->{multiProcUsage}));
$self->set_thresholds(metric => "cpu".$self->{multiProcIndex}."_usage", warning => 80, critical => 90);
$self->add_message($self->check_thresholds(metric => "cpu".$self->{multiProcIndex}."_usage", value => $self->{multiProcUsage}));
$self->add_perfdata(
label => "cpu".$self->{multiProcIndex}."_usage",
value => $self->{multiProcUsage},
Expand Down

0 comments on commit c2e5b3b

Please sign in to comment.