-
Notifications
You must be signed in to change notification settings - Fork 3
/
zabbix_agentd.conf
19 lines (18 loc) · 2.69 KB
/
zabbix_agentd.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# UserParameter zabbix_agentd.conf
UserParameter=1c.discovery[*],powershell -NoProfile -NoLogo -ExecutionPolicy Bypass -File "C:\service\zbx_1c_server.ps1" $1 $2
UserParameter=1c.session[*],"C:\Program Files (x86)\1cv8\<working version>\bin\rac.exe" session --cluster="$1" list --infobase="$2" | find /c "1CV8"
UserParameter=1c.session-all[*],"C:\Program Files (x86)\1cv8\<working version>\bin\rac.exe" session --cluster="$1" list | find /c "1CV8"
UserParameter=1c.session-all-hibernate[*],"C:\Program Files (x86)\1cv8\<working version>\bin\rac.exe" session --cluster="$1" list | find /c ": yes"
UserParameter=1c.bgj[*],"C:\Program Files (x86)\1cv8\<working version>\bin\rac.exe" session --cluster="$1" list --infobase="$2" | find /c "BackgroundJob"
UserParameter=1c.web-session[*],"C:\Program Files (x86)\1cv8\<working version>\bin\rac.exe" session --cluster="$1" list --infobase="$2" | find /c "WebClient"
UserParameter=1c.designer-session[*],"C:\Program Files (x86)\1cv8\<working version>\bin\rac.exe" session --cluster="$1" list --infobase="$2" | find /c "Designer"
UserParameter=1c.working-process[*],"C:\Program Files (x86)\1cv8\<working version>\bin\rac.exe" process --cluster="$1" list | find /c "process"
# UserParameter zabbix_agentd.conf with username and password
UserParameter=1c.discovery[*],powershell -NoProfile -NoLogo -ExecutionPolicy Bypass -File "C:\service\zbx_1c_server.ps1" $1 $2
UserParameter=1c.session[*],"C:\Program Files (x86)\1cv8\<working version>\bin\rac.exe" session --cluster="$1" --cluster-user=<user> --cluster-pwd=<pass> list --infobase="$2" | find /c "1CV8"
UserParameter=1c.session-all[*],"C:\Program Files (x86)\1cv8\<working version>\bin\rac.exe" session --cluster="$1" --cluster-user=<user> --cluster-pwd=<pass> list | find /c "1CV8"
UserParameter=1c.session-all-hibernate[*],"C:\Program Files (x86)\1cv8\<working version>\bin\rac.exe" session --cluster="$1" --cluster-user=<user> --cluster-pwd=<pass> list | find /c ": yes"
UserParameter=1c.bgj[*],"C:\Program Files (x86)\1cv8\<working version>\bin\rac.exe" session --cluster="$1" --cluster-user=<user> --cluster-pwd=<pass> list --infobase="$2" | find /c "BackgroundJob"
UserParameter=1c.web-session[*],"C:\Program Files (x86)\1cv8\<working version>\bin\rac.exe" session --cluster="$1" --cluster-user=<user> --cluster-pwd=<pass> list --infobase="$2" | find /c "WebClient"
UserParameter=1c.designer-session[*],"C:\Program Files (x86)\1cv8\<working version>\bin\rac.exe" session --cluster="$1" --cluster-user=<user> --cluster-pwd=<pass> list --infobase="$2" | find /c "Designer"
UserParameter=1c.working-process[*],"C:\Program Files (x86)\1cv8\<working version>\bin\rac.exe" process --cluster="$1" --cluster-user=<user> --cluster-pwd=<pass> list | find /c "process"