From 496f7d8a8acd79d2897a8b5dfa21fbb2018f07bf Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Mon, 30 Dec 2019 15:38:07 +0100 Subject: [PATCH] fix kingdee --- apps/kingdee/eas/mode/ormrpc.pm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/apps/kingdee/eas/mode/ormrpc.pm b/apps/kingdee/eas/mode/ormrpc.pm index a6e6135d5..6d279675f 100644 --- a/apps/kingdee/eas/mode/ormrpc.pm +++ b/apps/kingdee/eas/mode/ormrpc.pm @@ -33,9 +33,9 @@ sub new { $options{options}->add_options( arguments => { - "urlpath:s" => { name => 'url_path', default => "/easportal/tools/nagios/checkrpc.jsp" }, - "warning:s" => { name => 'warning' , default => ",,,,,,"}, - "critical:s" => { name => 'critical' , default => ",,,,,,"}, + 'urlpath:s' => { name => 'url_path', default => "/easportal/tools/nagios/checkrpc.jsp" }, + 'warning:s' => { name => 'warning' , default => ",,,,,,"}, + 'critical:s' => { name => 'critical' , default => ",,,,,,"}, } ); @@ -141,7 +141,7 @@ sub run { { label => 'warn_activethreadcount', 'exit_litteral' => 'warning' } ]); $self->{output}->output_add( severity => $exit, - short_msg => sprintf("ActiveTrheadCount: %d", $activethreadcount) + short_msg => sprintf("ActiveThreadCount: %d", $activethreadcount) ); $exit = $self->{perfdata}->threshold_check(value => $stubcount, threshold => [ { label => 'crit_stubcount', 'exit_litteral' => 'critical' }, @@ -187,7 +187,7 @@ sub run { ); $self->{output}->perfdata_add( - label => "ActiveTrheadCount", + label => "ActiveThreadCount", value => $activethreadcount, warning => $self->{perfdata}->get_perfdata_for_output(label => 'warn_activethreadcount'), critical => $self->{perfdata}->get_perfdata_for_output(label => 'crit_activethreadcount'), @@ -217,13 +217,13 @@ sub run { critical => $self->{perfdata}->get_perfdata_for_output(label => 'crit_serversessioncount'), ); $self->{output}->perfdata_add( - label => "InvokeCount /min", + label => "InvokeCountPerMinute", value => $invokecountpermin, warning => $self->{perfdata}->get_perfdata_for_output(label => 'warn_invokecountpermin'), critical => $self->{perfdata}->get_perfdata_for_output(label => 'crit_invokecountpermin'), ); $self->{output}->perfdata_add( - label => "ServiceCount /min", + label => "ServiceCountPerMinute", value => $servicecountpermin, warning => $self->{perfdata}->get_perfdata_for_output(label => 'warn_servicecountpermin'), critical => $self->{perfdata}->get_perfdata_for_output(label => 'crit_servicecountpermin'),