From 8a40884f5af7e71ac79593f0d34ab77de4a4714e Mon Sep 17 00:00:00 2001 From: qgarnier Date: Tue, 12 Dec 2017 17:41:30 +0100 Subject: [PATCH] fix variable kingdee --- apps/kingdee/eas/mode/oraclesession.pm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/apps/kingdee/eas/mode/oraclesession.pm b/apps/kingdee/eas/mode/oraclesession.pm index d91ba1267..fbf7bac23 100644 --- a/apps/kingdee/eas/mode/oraclesession.pm +++ b/apps/kingdee/eas/mode/oraclesession.pm @@ -118,8 +118,7 @@ sub run { $scheduler = $1 if $webcontent =~ /^WAIT_CLASS=Scheduler\sCOUNT=(\d+)/mi; $idle = $1 if $webcontent =~ /^WAIT_CLASS=Idle\sCOUNT=(\d+)/mi; - #cpu cpuwait - my $cpu wait = $idle + $network ; + my $cpuandwait = $idle + $network; $self->{output}->output_add(severity => "ok", short_msg => sprintf("Other: %d", $other)); $self->{output}->output_add(severity => "ok", short_msg => sprintf("Queueing: %d", $queueing)); @@ -131,7 +130,7 @@ sub run { $self->{output}->output_add(severity => "ok", short_msg => sprintf("System I/O: %d", $systemio)); $self->{output}->output_add(severity => "ok", short_msg => sprintf("User I/O: %d", $userio)); $self->{output}->output_add(severity => "ok", short_msg => sprintf("Scheduler: %d", $scheduler)); - $self->{output}->output_add(severity => "ok", short_msg => sprintf("CPU + CPU Wait: %d", $cpu wait)); + $self->{output}->output_add(severity => "ok", short_msg => sprintf("CPU + CPU Wait: %d", $cpuandwait)); my $exit = $self->{perfdata}->threshold_check(value => $activecount, threshold => [ { label => 'crit_activecount', exit_litteral => 'critical' }, { label => 'warn_activecount', exit_litteral => 'warning' } ]); @@ -151,7 +150,7 @@ sub run { $self->{output}->perfdata_add(label => "System I/O", unit => '', value => sprintf("%d", $systemio)); $self->{output}->perfdata_add(label => "User I/O", unit => '', value => sprintf("%d", $userio)); $self->{output}->perfdata_add(label => "Scheduler", unit => '', value => sprintf("%d", $scheduler)); - $self->{output}->perfdata_add(label => "CPU + CPU Wait", unit => '', value => sprintf("%d", $cpu wait)); + $self->{output}->perfdata_add(label => "CPU + CPU Wait", unit => '', value => sprintf("%d", $cpuandwait)); $self->{output}->perfdata_add(label => "ActiveCount", unit => '', value => sprintf("%d", $activecount),