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:
commit
555bce33e5
@ -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 (!$?)
|
||||||
{
|
{
|
||||||
|
@ -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 (!$?)
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user