Skip to content
This repository has been archived by the owner on Mar 10, 2021. It is now read-only.

Commit

Permalink
#7 добавил в параметры поиск web клиентов, конфигуратора
Browse files Browse the repository at this point in the history
  • Loading branch information
bessonovevgen committed May 28, 2018
1 parent 69a5922 commit b355ff7
Show file tree
Hide file tree
Showing 4 changed files with 188 additions and 24 deletions.
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,19 @@

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

Мониторинг выполняется с помощью консольных утилит ras и rac через UserParameters

UserParameter=onec-session,/opt/1C/v8.3/x86_64/rac session --cluster=<uuid> list --infobase=<uuid> | grep 1CV8C | wc -l
UserParameter=onec-bgj,/opt/1C/v8.3/x86_64/rac session --cluster=<uuid> list --infobase=<uuid> | grep BackgroundJob | wc -l
Мониторинг выполняется с помощью консольных утилит 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
Шаблон для импорта: srv-1c-linux-zabbix-temlate.xml

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

Примеры:

Expand Down
5 changes: 5 additions & 0 deletions onec-srv-lin.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
UserParameter=onec-session,/opt/1C/v8.3/x86_64/rac session --cluster=<uuid> list --infobase=<uuid> | grep 1CV8C | wc -l
UserParameter=onec-bgj,/opt/1C/v8.3/x86_64/rac session --cluster=<uuid> list --infobase=<uuid> | grep BackgroundJob | wc -l
UserParameter=web-session,/opt/1C/v8.3/x86_64/rac session session --cluster=<uuid> list --infobase=<uuid> | grep WebClient | wc -l
# UserParameter=fat-session,/opt/1C/v8.3/x86_64/rac session session --cluster=<uuid> list --infobase=<uuid> | grep 1CV8 | wc -l
UserParameter=designer-session,/opt/1C/v8.3/x86_64/rac session session --cluster=<uuid> list --infobase=<uuid> | grep Designer | wc -l
5 changes: 5 additions & 0 deletions onec-srv-win.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
UserParameter=onec-session,"C:\Program Files\1cv8\X.X.X.XXX\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"
UserParameter=web-session,"C:\Program Files\1cv8\8.3.11.3034\bin\rac.exe" session --cluster=<uuid> list --infobase=<uuid> | find /c "WebClient"
# UserParameter=fat-session,"C:\Program Files\1cv8\8.3.11.3034\bin\rac.exe" session --cluster=<uuid> list --infobase=<uuid> | find /c "1CV8"
UserParameter=designer-session,"C:\Program Files\1cv8\8.3.11.3034\bin\rac.exe" session --cluster=<uuid> list --infobase=<uuid> | find /c "Designer"
192 changes: 174 additions & 18 deletions srv-1c-zabbix-temlate.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>3.0</version>
<date>2016-09-02T13:26:35Z</date>
<version>3.4</version>
<date>2018-05-28T13:37:19Z</date>
<groups>
<group>
<name>Templates</name>
Expand All @@ -23,33 +23,110 @@
</application>
</applications>
<items>
<item>
<name>Конфигуратор</name>
<type>0</type>
<snmp_community/>
<snmp_oid/>
<key>designer-session</key>
<delay>60</delay>
<history>90d</history>
<trends>365d</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units/>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<params/>
<ipmi_sensor/>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>onec-server</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
<preprocessing/>
<jmx_endpoint/>
<master_item/>
</item>
<item>
<name>Толстые клиенты</name>
<type>0</type>
<snmp_community/>
<snmp_oid/>
<key>fat-session</key>
<delay>60</delay>
<history>90d</history>
<trends>365d</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units/>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<params/>
<ipmi_sensor/>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>onec-server</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
<preprocessing/>
<jmx_endpoint/>
<master_item/>
</item>
<item>
<name>Фоновые задания</name>
<type>0</type>
<snmp_community/>
<multiplier>0</multiplier>
<snmp_oid/>
<key>onec-bgj</key>
<delay>60</delay>
<history>90</history>
<trends>365</trends>
<history>90d</history>
<trends>365d</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
Expand All @@ -65,34 +142,32 @@
</applications>
<valuemap/>
<logtimefmt/>
<preprocessing/>
<jmx_endpoint/>
<master_item/>
</item>
<item>
<name>Сеансы пользователей</name>
<name>Тонкие клиенты</name>
<type>0</type>
<snmp_community/>
<multiplier>0</multiplier>
<snmp_oid/>
<key>onec-session</key>
<delay>60</delay>
<history>90</history>
<trends>365</trends>
<history>90d</history>
<trends>365d</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
Expand All @@ -108,9 +183,54 @@
</applications>
<valuemap/>
<logtimefmt/>
<preprocessing/>
<jmx_endpoint/>
<master_item/>
</item>
<item>
<name>Web клиенты</name>
<type>0</type>
<snmp_community/>
<snmp_oid/>
<key>web-session</key>
<delay>60</delay>
<history>90d</history>
<trends>365d</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units/>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<params/>
<ipmi_sensor/>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>onec-server</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
<preprocessing/>
<jmx_endpoint/>
<master_item/>
</item>
</items>
<discovery_rules/>
<httptests/>
<macros/>
<templates/>
<screens/>
Expand Down Expand Up @@ -144,7 +264,7 @@
<type>0</type>
<item>
<host>onec-session</host>
<key>onec-bgj</key>
<key>designer-session</key>
</item>
</graph_item>
<graph_item>
Expand All @@ -159,6 +279,42 @@
<key>onec-session</key>
</item>
</graph_item>
<graph_item>
<sortorder>2</sortorder>
<drawtype>0</drawtype>
<color>2774A4</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>onec-session</host>
<key>web-session</key>
</item>
</graph_item>
<graph_item>
<sortorder>3</sortorder>
<drawtype>0</drawtype>
<color>FC6EA3</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>onec-session</host>
<key>fat-session</key>
</item>
</graph_item>
<graph_item>
<sortorder>4</sortorder>
<drawtype>0</drawtype>
<color>AC8C14</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>onec-session</host>
<key>onec-bgj</key>
</item>
</graph_item>
</graph_items>
</graph>
</graphs>
Expand Down

0 comments on commit b355ff7

Please sign in to comment.