slothfk / 1c_zabbix_template_ce

Шаблон Zabbix для мониторинга кластера серверов 1С Предприятия 8.3
MIT License
155 stars 54 forks source link

Ошибка при опросе сервера лицензирования #52

Closed andy-1983 closed 3 years ago

andy-1983 commented 3 years ago

Добрый день.

На выделенном сервере лицензирования возникает следующее сообщение

sed: -e expression #1, char 28: unterminated `s' command
Произошло отключение от кластера (сервер, имя):
Enterprise - Локальный кластер

Помогите разобраться.

slothfk commented 3 years ago

А подробности? Сервер на Вин или Лин? В состав скольких кластеров включен?

andy-1983 commented 3 years ago

Данный сервер на Linux, обслуживает 2 рабочих сервера, и один был от этого сервера лицензирования "отлучен", и работает с другим.

Получается что сообщение правильное по сути, но в возвращаемом сообщении содержится ошибка, как бы это подкрутить самому, или может быть выработать решение на уровне кода скриптов?

чт, 7 янв. 2021 г. в 17:02, Alexey Y. Fedotov notifications@github.com:

А подробности? Сервер на Вин или Лин? В состав скольких кластеров включен?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/slothfk/1c_zabbix_template_ce/issues/52#issuecomment-756133974, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADXBX3PRDL7ZQ75DIFHTKXDSYW5GHANCNFSM4VXN37DQ .

--

С уважением, Андрей Нурулин. тел. +7-982-570-0940

slothfk commented 3 years ago

Сделайте rac cluster list для сервера, который отключился, и пришлите вывод

andy-1983 commented 3 years ago
# /opt/1C/v8.3/x86_64/rac cluster list
# ps -ax | grep ras
32589 ?        Ssl    0:00 /opt/1C/v8.3/x86_64/ras cluster --port=1545

rac cluster list получается ничего не возвращает

чт, 7 янв. 2021 г. в 22:29, Alexey Y. Fedotov notifications@github.com:

Сделайте rac cluster list для сервера, который отключился, и пришлите вывод

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/slothfk/1c_zabbix_template_ce/issues/52#issuecomment-756330742, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADXBX3J35MWEN7QIEQJZF2DSYYDSJANCNFSM4VXN37DQ .

--

С уважением, Андрей Нурулин. тел. +7-982-570-0940

slothfk commented 3 years ago

rac cluster list получается ничего не возвращает

Вы это делаете на сервере лицензирования? Тогда надо после list имя центрального сервера кластера, от которого отключился сервер лицензирования, добавить ...

andy-1983 commented 3 years ago
root@Lic1C:/home/maintainer# /opt/1C/v8.3/x86_64/rac cluster list enterprise
cluster                       : 1f15bbe4-8916-11e9-4087-005056af0306
host                          : Enterprise
port                          : 1541
name                          : "Локальный кластер"
expiration-timeout            : 60
lifetime-limit                : 86400
max-memory-size               : 0
max-memory-time-limit         : 0
security-level                : 0
session-fault-tolerance-level : 0
load-balancing-mode           : performance
errors-count-threshold        : 0
kill-problem-processes        : 1
kill-by-memory-with-dump      : 0

root@Lic1C:/home/maintainer# /opt/1C/v8.3/x86_64/rac cluster list webkamin2
Error connecting to server cluster
Сервис не поддерживается
Ошибка установки соединения с кластером серверов
Различаются версии клиента и сервера (8.3.16.1224 - 8.3.16.1814),
клиентское приложение: Сервер администрирования

root@Lic1C:/home/maintainer# /opt/1C/v8.3/x86_64/rac cluster list
dsenterprise
cluster                       : 34ddd84e-f30b-11e9-a08a-005056af2f24
host                          : DSEnterprise
port                          : 1541
name                          : "Локальный кластер"
expiration-timeout            : 60
lifetime-limit                : 86400
max-memory-size               : 0
max-memory-time-limit         : 0
security-level                : 0
session-fault-tolerance-level : 0
load-balancing-mode           : performance
errors-count-threshold        : 0
kill-problem-processes        : 1
kill-by-memory-with-dump      : 0

пт, 8 янв. 2021 г. в 09:36, Alexey Y. Fedotov notifications@github.com:

rac cluster list получается ничего не возвращает

Вы это делаете на сервере лицензирования? Тогда надо после list имя центрального сервера кластера, от которого отключился сервер лицензирования, добавить ...

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/slothfk/1c_zabbix_template_ce/issues/52#issuecomment-756578835, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADXBX3PWGJFBHTBZNHTLZALSY2RWTANCNFSM4VXN37DQ .

--

С уважением, Андрей Нурулин. тел. +7-982-570-0940

slothfk commented 3 years ago

А что такое webkamin2?

slothfk commented 3 years ago

Заглянул в код, увидел косяк, поправлю ...

andy-1983 commented 3 years ago

А что такое webkamin2?

Тоже сервер 1С, но на нем почему-то выдается это сообщение (от rac cluster list), хотя сам он мониторится и работает как надо, там я недавно платформу обновлял, и не пойму что оставил, вроде список пакетов идентичен тому что и на других серверах 1С.

пт, 8 янв. 2021 г. в 12:10, Alexey Y. Fedotov notifications@github.com:

Заглянул в код, увидел косяк, поправлю ...

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/slothfk/1c_zabbix_template_ce/issues/52#issuecomment-756641304, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADXBX3INDP2VDRQV7LJYN3DSY3DZNANCNFSM4VXN37DQ .

--

С уважением, Андрей Нурулин. тел. +7-982-570-0940

slothfk commented 3 years ago

... там я недавно платформу обновлял, и не пойму что оставил ...

Надо перезапустить сервис RAS

andy-1983 commented 3 years ago

Спасибо ))))

пт, 8 янв. 2021 г. в 15:18, Alexey Y. Fedotov notifications@github.com:

... там я недавно платформу обновлял, и не пойму что оставил ...

Надо перезапустить сервис RAS

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/slothfk/1c_zabbix_template_ce/issues/52#issuecomment-756726731, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADXBX3N3IIYSC26V32IMEILSY3ZZPANCNFSM4VXN37DQ .

--

С уважением, Андрей Нурулин. тел. +7-982-570-0940

slothfk commented 3 years ago

Заглянул в код, увидел косяк, поправлю ...

Предполагаемый косяк не подтвердился ... А данное сообщение в этой метрике возникло один раз или идет постоянно?

andy-1983 commented 3 years ago

повторяется при каждом опросе, сигнал об ошибке отключения кластера весит несколько дней, вообще оно и раньше всплывало, но проходило само

сб, 9 янв. 2021 г. в 23:22, Alexey Y. Fedotov notifications@github.com:

Заглянул в код, увидел косяк, поправлю ...

Предполагаемый косяк не подтвердился ... А данное сообщение в этой метрике возникло один раз или идет постоянно?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/slothfk/1c_zabbix_template_ce/issues/52#issuecomment-757361975, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADXBX3J6RITWJQ76Q7UQYCTSZC3I3ANCNFSM4VXN37DQ .

--

С уважением, Андрей Нурулин. тел. +7-982-570-0940

slothfk commented 3 years ago

В таком случае на сервере лицензирования сделайте ls -al /tmp/1c_* и пришлите вывод

andy-1983 commented 3 years ago
# ls -al /tmp/1c_*
-rw-rw-r-- 1 zabbix zabbix 271 Jan 10 11:38 /tmp/1c_clusters_cache
-rw-rw-r-- 1 zabbix zabbix  90 Jan  5 08:33 /tmp/1c_clusters_cache.2879
-rw-rw-r-- 1 zabbix zabbix  90 Jan  3 01:00 /tmp/1c_clusters_cache.6833

Видимо нужно какой то удалить?

вс, 10 янв. 2021 г. в 08:38, Alexey Y. Fedotov notifications@github.com:

В таком случае на сервере лицензирования сделайте ls -al /tmp/1c_* и пришлите вывод

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/slothfk/1c_zabbix_template_ce/issues/52#issuecomment-757421002, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADXBX3PY22KOWQZJAMAJ7GTSZE4MPANCNFSM4VXN37DQ .

--

С уважением, Андрей Нурулин. тел. +7-982-570-0940

slothfk commented 3 years ago

В данном случае прошу вывод cat /tmp/1c_clusters_cache и ещё pgrep -a rphost

andy-1983 commented 3 years ago
root@Lic1C:/home/maintainer# cat /tmp/1c_clusters_cache
WebKamin2:9d39be30-9453-4439-bb86-f5abf8558806,1541,"Локальный кластер";
Enterprise:1f15bbe4-8916-11e9-4087-005056af0306,1541,"Локальный кластер";
DSEnterprise:34ddd84e-f30b-11e9-a08a-005056af2f24,1541,"Локальный кластер";
root@Lic1C:/home/maintainer# pgrep -a rphost
14979 /opt/1C/v8.3/x86_64/rphost -range 1560:1591 -reghost WebKamin2
-regport 1541 -pid 9c10df38-278e-4ed8-9030-50f1904f4a4c
18981 /opt/1C/v8.3/x86_64/rphost -range 1560:1591 -reghost Enterprise
-regport 1541 -pid 64d042a8-e06f-4625-a4c1-af9dbc438ca9
30424 /opt/1C/v8.3/x86_64/rphost -range 1560:1591 -reghost DSEnterprise
-regport 1541 -pid 80a59f50-c54d-401f-8410-5b194b716621

вс, 10 янв. 2021 г. в 17:40, Alexey Y. Fedotov notifications@github.com:

В данном случае прошу вывод cat /tmp/1c_clusters_cache и ещё pgrep -a rphost

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/slothfk/1c_zabbix_template_ce/issues/52#issuecomment-757487215, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADXBX3N6TUOPTPQ37WRNXKDSZG36BANCNFSM4VXN37DQ .

--

С уважением, Андрей Нурулин. тел. +7-982-570-0940

slothfk commented 3 years ago

И при этом метрика проверки отключения от кластера имеет значение из стартового сообщения, а не "ОК"?

andy-1983 commented 3 years ago

image

не совсем понимаю куда посмотреть

slothfk commented 3 years ago

Спасибо за предоставленные данные, помогли понять в чем причина!

slothfk commented 3 years ago

Видимо нужно какой то удалить?

Файлы с циферками в качестве расширения можно удалить!

slothfk commented 3 years ago

-rw-rw-r-- 1 zabbix zabbix 90 Jan 5 08:33 /tmp/1c_clusters_cache.2879 -rw-rw-r-- 1 zabbix zabbix 90 Jan 3 01:00 /tmp/1c_clusters_cache.6833

Гляньте, пожалуйста у себя, присутствуют ли похожие файлы в системе?

andy-1983 commented 3 years ago
root@Lic1C:/home/maintainer# find /tmp/1c_clusters*
/tmp/1c_clusters_cache
/tmp/1c_clusters_cache.28603
/tmp/1c_clusters_cache.2879
/tmp/1c_clusters_cache.5141
/tmp/1c_clusters_cache.6833

Что называется "в ассортименте"

пн, 18 янв. 2021 г. в 12:42, Alexey Y. Fedotov notifications@github.com:

-rw-rw-r-- 1 zabbix zabbix 90 Jan 5 08:33 /tmp/1c_clusters_cache.2879 -rw-rw-r-- 1 zabbix zabbix 90 Jan 3 01:00 /tmp/1c_clusters_cache.6833

Гляньте, пожалуйста у себя, присутствуют ли похожие файлы в системе?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/slothfk/1c_zabbix_template_ce/issues/52#issuecomment-762123010, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADXBX3NJK3LVN4DZQX54GGLS2P7BVANCNFSM4VXN37DQ .

--

С уважением, Андрей Нурулин. тел. +7-982-570-0940

andy-1983 commented 3 years ago
root@Lic1C:/home/maintainer# ls -l /tmp/1c_clusters*
-rw-rw-r-- 1 zabbix zabbix 271 Jan 11 14:54 /tmp/1c_clusters_cache
-rw-rw-r-- 1 zabbix zabbix  92 Jan 12 09:42 /tmp/1c_clusters_cache.28603
-rw-rw-r-- 1 zabbix zabbix  90 Jan  5 08:33 /tmp/1c_clusters_cache.2879
-rw-rw-r-- 1 zabbix zabbix   0 Jan 13 16:19 /tmp/1c_clusters_cache.5141
-rw-rw-r-- 1 zabbix zabbix  90 Jan  3 01:00 /tmp/1c_clusters_cache.6833

пн, 18 янв. 2021 г. в 18:05, Андрей Нурулин a.s.nurulin@gmail.com:

root@Lic1C:/home/maintainer# find /tmp/1c_clusters*
/tmp/1c_clusters_cache
/tmp/1c_clusters_cache.28603
/tmp/1c_clusters_cache.2879
/tmp/1c_clusters_cache.5141
/tmp/1c_clusters_cache.6833

Что называется "в ассортименте"

пн, 18 янв. 2021 г. в 12:42, Alexey Y. Fedotov notifications@github.com:

-rw-rw-r-- 1 zabbix zabbix 90 Jan 5 08:33 /tmp/1c_clusters_cache.2879 -rw-rw-r-- 1 zabbix zabbix 90 Jan 3 01:00 /tmp/1c_clusters_cache.6833

Гляньте, пожалуйста у себя, присутствуют ли похожие файлы в системе?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/slothfk/1c_zabbix_template_ce/issues/52#issuecomment-762123010, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADXBX3NJK3LVN4DZQX54GGLS2P7BVANCNFSM4VXN37DQ .

--

С уважением, Андрей Нурулин. тел. +7-982-570-0940

--

С уважением, Андрей Нурулин. тел. +7-982-570-0940

slothfk commented 3 years ago

Ок, спасибо! Поправил этот момент здесь #56