1
0
mirror of https://github.com/Nivolis/zabbix-1c-service-template-40.git synced 2024-11-28 10:03:06 +02:00

Merge pull request #1 from SaintMortum/master

Исправлены баги при работе с кластером с паролем
This commit is contained in:
freewms 2019-07-20 21:04:18 +03:00 committed by GitHub
commit 555bce33e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -75,7 +75,7 @@ function get_sessions_info()
try 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 (!$?) if (!$?)
{ {

View File

@ -110,7 +110,7 @@ function get_infobases_info([string]$cluster_id){
if ($rac_usr -eq "") { if ($rac_usr -eq "") {
$stdout_heap = & $rac localhost:$ras_port infobase summary list --cluster=$cluster_id 2>&1 $stdout_heap = & $rac localhost:$ras_port infobase summary list --cluster=$cluster_id 2>&1
} else { } 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 (!$?) if (!$?)

View File

@ -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.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" UserParameter=1c.infobase.info[*],powershell -NoProfile -ExecutionPolicy Bypass -File "C:\zabbix\script\1c_infobase_info.ps1" "$1" "$2" "$3" "$4" "$5" "$6"