From 73c4fbc86b13cf6b8f23df474501eb619a4c1d43 Mon Sep 17 00:00:00 2001 From: SaintMortum Date: Wed, 17 Jul 2019 19:51:20 +0500 Subject: [PATCH 1/3] usr/pwd --- 1c_infobases_discovery.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1c_infobases_discovery.ps1 b/1c_infobases_discovery.ps1 index 26c2d69..fc05e74 100644 --- a/1c_infobases_discovery.ps1 +++ b/1c_infobases_discovery.ps1 @@ -110,7 +110,7 @@ function get_infobases_info([string]$cluster_id){ if ($rac_usr -eq "") { $stdout_heap = & $rac localhost:$ras_port infobase summary list --cluster=$cluster_id 2>&1 } else { - $stdout_heap = & $rac localhost:$ras_port infobase summary list --cluster=$cluster_id --cluster-user=$usr --cluster-pwd=$pwd 2>&1 + $stdout_heap = & $rac localhost:$ras_port infobase summary list --cluster=$cluster_id --cluster-user=$rac_usr --cluster-pwd=$rac_pwd 2>&1 } if (!$?) From 78708e78c4c8d368f41c04f9249a11e6272eee05 Mon Sep 17 00:00:00 2001 From: SaintMortum Date: Wed, 17 Jul 2019 19:53:40 +0500 Subject: [PATCH 2/3] usr/pwd --- 1c_infobase_info.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1c_infobase_info.ps1 b/1c_infobase_info.ps1 index ede98e8..571f939 100644 --- a/1c_infobase_info.ps1 +++ b/1c_infobase_info.ps1 @@ -75,7 +75,7 @@ function get_sessions_info() try { - $stdout_heap = & $rac localhost:$ras_port session list --cluster=$cluster_id --infobase=$infobase_id 2>&1 + $stdout_heap = & $rac localhost:$ras_port session list --cluster=$cluster_id --infobase=$infobase_id --cluster-user=$rac_usr --cluster-pwd=$rac_pwd 2>&1 if (!$?) { From cba9565679c2336df9ecd82e23527e4ed04949b3 Mon Sep 17 00:00:00 2001 From: SaintMortum Date: Wed, 17 Jul 2019 19:55:26 +0500 Subject: [PATCH 3/3] =?UTF-8?q?=D0=BF=D1=80=D0=BE=D0=BF=D1=83=D1=89=D0=B5?= =?UTF-8?q?=D0=BD=20=D0=BF=D0=B0=D1=80=D0=B0=D0=BC=D0=B5=D1=82=D1=80=20?= =?UTF-8?q?=D1=81=D0=BA=D1=80=D0=B8=D0=BF=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- userparameters_1c.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/userparameters_1c.conf b/userparameters_1c.conf index b042f8c..079daec 100644 --- a/userparameters_1c.conf +++ b/userparameters_1c.conf @@ -1,2 +1,2 @@ -UserParameter=1c.infobases.discovery[*],powershell -NoProfile -ExecutionPolicy Bypass -File "C:\zabbix\script\1c_infobases_discovery.ps1" "$1" "$2" "$3" -UserParameter=1c.infobase.info[*],powershell -NoProfile -ExecutionPolicy Bypass -File "C:\zabbix\script\1c_infobase_info.ps1" "$1" "$2" "$3" "$4" "$5" "$6" \ No newline at end of file +UserParameter=1c.infobases.discovery[*],powershell -NoProfile -ExecutionPolicy Bypass -File "C:\zabbix\script\1c_infobases_discovery.ps1" "$1" "$2" "$3" "$4" +UserParameter=1c.infobase.info[*],powershell -NoProfile -ExecutionPolicy Bypass -File "C:\zabbix\script\1c_infobase_info.ps1" "$1" "$2" "$3" "$4" "$5" "$6"