GithubHelp home page GithubHelp logo

Template 1C about zbx-1c-server HOT 23 CLOSED

nikimaxim avatar nikimaxim commented on June 10, 2024
Template 1C

from zbx-1c-server.

Comments (23)

nikimaxim avatar nikimaxim commented on June 10, 2024

In what item is happening?

Execute the command
powershell -NoProfile -NoLogo -ExecutionPolicy Bypass -File "C:\service\zbx_1c_server.ps1" lld db

from zbx-1c-server.

inkostin avatar inkostin commented on June 10, 2024

In what item is happening?

Execute the command
powershell -NoProfile -NoLogo -ExecutionPolicy Bypass -File "C:\service\zbx_1c_server.ps1" lld db

Work(Работает)

{"data":[{"{#CL.ID}":"ddf05646-2f70-4c6f-8979-582ca3cc0d60","{#CL.NAME}":"1C","{#CL.PORT}":1541,"{#CL.SERVER}":"1C","{#CLDB.ID}":"52cea105-13fb-439b-bcca-2cae703ba9a8","{#CLDB.DB}":"upp"},{"{#CL.ID}":"ddf05646-2f70-4c6f-8979-582ca3cc0d60","{#CL.NAME}":"1C","{#CL.PORT}":1541
.............

from zbx-1c-server.

inkostin avatar inkostin commented on June 10, 2024

UserParameter=1c.session[*],"C:\Program Files (x86)\1cv8<working version>\bin\rac.exe" session --cluster="$1" --cluster-user=DOMAIN\USER --cluster-pwd=PASSWORD list --infobase="$2" | find /c "1CV8"

Правильно синтаксис?

from zbx-1c-server.

nikimaxim avatar nikimaxim commented on June 10, 2024

Правильно синтаксис?
UserParameter=1c.session[*],"C:\Program Files (x86)\1cv8\bin\rac.exe" session --cluster="$1" --cluster-user=DOMAIN\USER --cluster-pwd=PASSWORD list --infobase="$2" | find /c "1CV8

What version 1C x64?
Path to bin 1C?
Login password is on the cluster?

from zbx-1c-server.

inkostin avatar inkostin commented on June 10, 2024

Правильно синтаксис?
UserParameter=1c.session[*],"C:\Program Files (x86)\1cv8\bin\rac.exe" session --cluster="$1" --cluster-user=DOMAIN\USER --cluster-pwd=PASSWORD list --infobase="$2" | find /c "1CV8

What version 1C x64?
Path to bin 1C?
Login password is on the cluster?

1c - 8.3.14.1630
Windows Server 2019
C:\Program Files\1Cv8\

Start Service 1c - Domain\User
Cluster - 1C, no user and password

from zbx-1c-server.

nikimaxim avatar nikimaxim commented on June 10, 2024

Add in zabbix agent UserParameter:

UserParameter=1c.discovery[*],powershell -NoProfile -NoLogo -ExecutionPolicy Bypass -File "C:\service\zbx_1c_server.ps1" $1 $2
UserParameter=1c.session[*],"C:\Program Files\1cv8\8.3.14.1630\bin\rac.exe" session --cluster="$1" list --infobase="$2" | find /c "1CV8"
UserParameter=1c.session-all[*],"C:\Program Files\1cv8\8.3.14.1630\bin\rac.exe" session --cluster="$1" list | find /c "1CV8"
UserParameter=1c.session-all-hibernate[*],"C:\Program Files\1cv8\8.3.14.1630\bin\rac.exe" session --cluster="$1" list | find /c ": yes"
UserParameter=1c.bgj[*],"C:\Program Files\1cv8\8.3.14.1630\bin\rac.exe" session --cluster="$1" list --infobase="$2" | find /c "BackgroundJob"
UserParameter=1c.web-session[*],"C:\Program Files\1cv8\8.3.14.1630\bin\rac.exe" session --cluster="$1" list --infobase="$2" | find /c "WebClient"
UserParameter=1c.designer-session[*],"C:\Program Files\1cv8\8.3.14.1630\bin\rac.exe" session --cluster="$1" list --infobase="$2" | find /c "Designer"
UserParameter=1c.working-process[*],"C:\Program Files\1cv8\8.3.14.1630\bin\rac.exe" process --cluster="$1" list | find /c "process"

from zbx-1c-server.

inkostin avatar inkostin commented on June 10, 2024

UserParameter=1c.discovery[], - [*], ???

Value """C:\Program Files\1cv8\8.3.14.1630\bin\rac.exe"" ?? ???? ????७??? ??? ???譥?
????????, ?ᯮ??塞?? ?ணࠬ??? ??? ?????? 䠩???." of type "string" is not suitable for value type "Numeric (unsigned)"

from zbx-1c-server.

nikimaxim avatar nikimaxim commented on June 10, 2024

UserParameter=1c.discovery[], - [*], ???
corrected the code above

C:\Program Files\1cv8\8.3.14.1630\bin\rac.exe
do it:
https://github.com/nikimaxim/zbx-1c-server#add-service-ras-for-monitor-1c-server-cmd

from zbx-1c-server.

inkostin avatar inkostin commented on June 10, 2024

UserParameter=1c.discovery[], - [*], ???
corrected the code above

C:\Program Files\1cv8\8.3.14.1630\bin\rac.exe
do it:
https://github.com/nikimaxim/zbx-1c-server#add-service-ras-for-monitor-1c-server-cmd

I did not understand you.

from zbx-1c-server.

nikimaxim avatar nikimaxim commented on June 10, 2024

UserParameter=1c.discovery[], - [*], ???
corrected the code above

C:\Program Files\1cv8\8.3.14.1630\bin\rac.exe
do it:
https://github.com/nikimaxim/zbx-1c-server#add-service-ras-for-monitor-1c-server-cmd

I did not understand you.

Use this:

UserParameter=1c.discovery[*],powershell -NoProfile -NoLogo -ExecutionPolicy Bypass -File "C:\service\zbx_1c_server.ps1" $1 $2
UserParameter=1c.session[*],"C:\Program Files\1cv8\8.3.14.1630\bin\rac.exe" session --cluster="$1" list --infobase="$2" | find /c "1CV8"
UserParameter=1c.session-all[*],"C:\Program Files\1cv8\8.3.14.1630\bin\rac.exe" session --cluster="$1" list | find /c "1CV8"
UserParameter=1c.session-all-hibernate[*],"C:\Program Files\1cv8\8.3.14.1630\bin\rac.exe" session --cluster="$1" list | find /c ": yes"
UserParameter=1c.bgj[*],"C:\Program Files\1cv8\8.3.14.1630\bin\rac.exe" session --cluster="$1" list --infobase="$2" | find /c "BackgroundJob"
UserParameter=1c.web-session[*],"C:\Program Files\1cv8\8.3.14.1630\bin\rac.exe" session --cluster="$1" list --infobase="$2" | find /c "WebClient"
UserParameter=1c.designer-session[*],"C:\Program Files\1cv8\8.3.14.1630\bin\rac.exe" session --cluster="$1" list --infobase="$2" | find /c "Designer"
UserParameter=1c.working-process[*],"C:\Program Files\1cv8\8.3.14.1630\bin\rac.exe" process --cluster="$1" list | find /c "process"

from zbx-1c-server.

inkostin avatar inkostin commented on June 10, 2024

(((
Invalid discovery rule value: cannot parse as a valid JSON object: invalid object format, expected opening character '{' or '[' at: '??㬥?? "C:\Program Files\Zabbix Agent\zbx_1c_server.ps1" ??? ??ࠬ??? -File ?? ???????. ?????? ???? ? ???????饬? 䠩?? ? ???७??? ".ps1" ? ????⢥ ?

from zbx-1c-server.

nikimaxim avatar nikimaxim commented on June 10, 2024

(((
Invalid discovery rule value: cannot parse as a valid JSON object: invalid object format, expected opening character '{' or '[' at: '??㬥?? "C:\Program Files\Zabbix Agent\zbx_1c_server.ps1" ??? ??ࠬ??? -File ?? ???????. ?????? ???? ? ???????饬? 䠩?? ? ???७??? ".ps1" ? ????⢥ ?

What will? PowerShell
powershell -NoProfile -NoLogo -ExecutionPolicy Bypass -File "C:\Program Files\Zabbix Agent\zbx_1c_server.ps1" lld db

from zbx-1c-server.

inkostin avatar inkostin commented on June 10, 2024

powershell -NoProfile -NoLogo -ExecutionPolicy Bypass -File "C:\Program Files\Zabbix Agent\zbx_1c_server.ps1" lld db

PS C:\Users\inkostin> powershell -NoProfile -NoLogo -ExecutionPolicy Bypass -File "C:\Program Files\Zabbix Agent\scripts\zbx_1c_server.ps1" lld db
{"data":[{"{#CL.ID}":"ddf05646-2f70-4c6f-8979-582ca3cc0d60","{#CL.NAME}":"1C","{#CL.PORT}":1541,"{#CL.SERVER}":"1C","{#CLDB.ID}":"52cea105-13fb-439b-bcca-2cae703ba9a8","{#CLDB.DB}":"upp"},{"{#CL.ID}":"ddf05646-2f70-4c6f-8979-582ca3cc0d60","{#CL.NAME}":"1C","{#CL.PORT}":15
.................

working...

from zbx-1c-server.

nikimaxim avatar nikimaxim commented on June 10, 2024

Zabbix Web > Monitoring > Latest Data > filter(Application: 1C server).
Send screenshot

from zbx-1c-server.

inkostin avatar inkostin commented on June 10, 2024

Zabbix Web > Monitoring > Latest Data > filter(Application: 1C server).
Send screenshot

https://radikal.ru][img]https://a.radikal.ru/a22/1910/45/f9af0be7c480.png

https://a.radikal.ru/a21/1910/69/1115ec57c80b.png

from zbx-1c-server.

nikimaxim avatar nikimaxim commented on June 10, 2024

Work?
C:\Program Files\Zabbix Agent\\zabbix_agentd.exe -c C:\Program Files\Zabbix Agent\\zabbix_agentd.conf -t 1c.discovery["lld, db"]

from zbx-1c-server.

inkostin avatar inkostin commented on June 10, 2024

Work?
C:\Program Files\Zabbix Agent\\zabbix_agentd.exe -c C:\Program Files\Zabbix Agent\\zabbix_agentd.conf -t 1c.discovery["lld, db"]

Work!

from zbx-1c-server.

nikimaxim avatar nikimaxim commented on June 10, 2024

Send screenshot discovery host.
Problem in zabbix server.!

from zbx-1c-server.

nikimaxim avatar nikimaxim commented on June 10, 2024

Did you manage to find a problem?

from zbx-1c-server.

inkostin avatar inkostin commented on June 10, 2024

Did you manage to find a problem?

No.

from zbx-1c-server.

inkostin avatar inkostin commented on June 10, 2024

Did you manage to find a problem?

https://a.radikal.ru/a01/1910/b8/c17631005197.png

from zbx-1c-server.

nikimaxim avatar nikimaxim commented on June 10, 2024

On detection at you everything fulfills.
Items added in Zabbix Web > Host > 1C > Items?
Name: 1C cluster DB discovery: *

from zbx-1c-server.

nikimaxim avatar nikimaxim commented on June 10, 2024

does it work?

from zbx-1c-server.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.