Skip to content

Instantly share code, notes, and snippets.

@MegaShIzoID
Created July 31, 2023 02:42
Show Gist options
  • Save MegaShIzoID/e1823ce5d8476cb542d9e3a9401104a4 to your computer and use it in GitHub Desktop.
Save MegaShIzoID/e1823ce5d8476cb542d9e3a9401104a4 to your computer and use it in GitHub Desktop.
C:\Users\TBSupport>"C:\Program Files\Git\bin\bash.exe" -x "C:\Program Files\Zabbix Agent 2\zabbix_agent2.d\scripts\1c_license_server.sh" process 37a38f89-b3e1-4022-b433-b9aeec728544 rphost
++ dirname 'C:\Program Files\Zabbix Agent 2\zabbix_agent2.d\scripts\1c_license_server.sh'
++ sed -r 's/\\/\//g; s/^(.{1}):/\/\1/'
+ WORK_DIR='/C/Program Files/Zabbix Agent 2/zabbix_agent2.d/scripts'
+ shopt -q extglob
+ shopt -s extglob
+ source '/C/Program Files/Zabbix Agent 2/zabbix_agent2.d/scripts/1c_common_module.sh'
+ case ${1} in
+ CLSTR_UUID=37a38f89-b3e1-4022-b433-b9aeec728544
+ CHECK_MODE=rphost
+ shift 2
+ shift
+ make_ras_params
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ export RAS_PORTS RAS_TIMEOUT RAS_AUTH
+ check_cluster_process rphost 37a38f89-b3e1-4022-b433-b9aeec728544
++ echo rphost
++ sed 's/rmngr/manager/; s/rphost/process/'
+ RAC_PARAM=process
++ awk -v 'FS= +: *' -v filter=process '( $0 ~ "^("filter"|host|)( |$)" ) { print $2}'
+++ awk -F# -v cluster=37a38f89-b3e1-4022-b433-b9aeec728544 '$0 ~ cluster { print $1 }' /tmp/1c_clusters_cache_1545
++ awk -v RS= -v OFS=: '$1=$1'
++ awk -F: -v hostname=1c-01-win '( $0 ~ ":"hostname ) { print $1 }'
++ timeout -s HUP 1.5 rac process list --cluster 37a38f89-b3e1-4022-b433-b9aeec728544 1c-01-win:1545
+ PROCESS_UUID='975245e9-6c09-490b-9492-fe0b29c53b7c
f4bfc018-1ade-4779-b8fb-c5626f1f9a24'
+ [[ -z 975245e9-6c09-490b-9492-fe0b29c53b7c
f4bfc018-1ade-4779-b8fb-c5626f1f9a24 ]]
+ [[ -z 1 ]]
+ wmic path win32_process where 'caption like '\''rphost.exe'\''' get commandline /format:csv
+ awk '/975245e9-6c09-490b-9492-fe0b29c53b7c
f4bfc018-1ade-4779-b8fb-c5626f1f9a24|37a38f89-b3e1-4022-b433-b9aeec728544/ { count++ } END { print count?count:0 }'
awk: cmd. line:1: /975245e9-6c09-490b-9492-fe0b29c53b7c
awk: cmd. line:1: ^ unterminated regexp
awk: cmd. line:2: f4bfc018-1ade-4779-b8fb-c5626f1f9a24|37a38f89-b3e1-4022-b433-b9aeec728544/ { count++ } END { print count?count:0 }
awk: cmd. line:2: ^ syntax error
awk: cmd. line:2: f4bfc018-1ade-4779-b8fb-c5626f1f9a24|37a38f89-b3e1-4022-b433-b9aeec728544/ { count++ } END { print count?count:0 }
awk: cmd. line:2: ^ syntax error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment