Code Monkey home page Code Monkey logo

srv-1c-zabbix-template's Introduction

Мониторинг сервера приложений 1С:Предприятия с помощью Zabbix

В репозитории пример шаблона и конфигурационные файлы для zabbix-agent для windows и linux.

Мониторинг сервера приложений 1с в Linux

Мониторинг выполняется с помощью консольных утилит ras и rac через UserParameters (см. пример в onec-srv-lin.conf)

ras - должен быть запущен всегда

rac - обращается к ras за запрошенными данными

Запуск ras (на том сервере который нужно мониторить)

/opt/1C/v8.3/x86_64/ras --daemon cluster

Шаблон для импорта: srv-1c-linux-zabbix-temlate.xml

Реализовано пять параметров и один график

Примеры:

Запрос показывающий количество сеансов

/opt/1C/v8.3/x86_64/rac session --cluster=<uuid> list --infobase=<uuid> | grep app-id | wc -l

Получить <uuid> для параметра --cluster

/opt/1C/v8.3/x86_64/rac cluster list

Получить <uuid> для --infobase

/opt/1C/v8.3/x86_64/rac infobase --cluster=<uuid> summary list

Запрос показывающий количество тонких клиентов

/opt/1C/v8.3/x86_64/rac session --cluster=<uuid> list --infobase=<uuid> | grep 1CV8C | wc -l

Для windows

Установка службы

sc create "1C:Enterprise RAS" binpath= "C:\Program Files\1cv8\Х.Х.Х.ХХХХ\bin\ras.exe cluster --service" displayname= "1C:Enterprise RAS" start= auto 
net start "1C:Enterprise RAS"

Удаление службы

sc delete "1C:Enterprise RAS"

настройка zabbix agent

UserParameter=onec-session,"C:\Program Files\1cv8\8.3.9.1850\bin\rac.exe" session --cluster=<uuid> list --infobase=<uuid> |  find /c "1CV8C"
UserParameter=onec-bgj,"C:\Program Files\1cv8\8.3.9.1850\bin\rac.exe" session --cluster=<uuid> list --infobase=<uuid> | find /c "BackgroundJob"

Графики screen01

TODO

  1. Нужно правила обнаружения.
  2. Подобрать подходящие (время выполнения/нагрузка на сервер) интервалы опроса параметров.

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.