Обновил всё, перезапустил сервер, включаю мониторинг через меню bitrixvm получаю ошибку, в журнале задач.
TaskID | Started at | Status | Last Step ------------------------------------------------------------------------------------ monitor_0314214530 | 01/03/2019 05:29 | error | play|complete monitor_2772714824 | 01/03/2019 05:22 | error | play|complete update_4023313171 | 01/03/2019 04:22 | finished | play|complete update_4081030583 | 01/03/2019 04:17 | finished | play|complete common_1314851403 | 01/03/2019 04:15 | finished | play|complete
{"msg": {"changed": true, "cmd": "yum --version ; yum list installed | grep -e '(nagios|nrpe)'", "delta": "0:00:00.712470", "end": "2019-03-01 05:35:17.961138", "failed": true, "rc": 1, "start": "2019-03-01 05:35:17.248668", "stderr": "", "stdout": "3.4.3\n Installed: rpm-4.11.3-35.el7.x86_64 at 2019-03-01 00:52\n Built : CentOS BuildSystem at 2018-10-30 19:27\n Committed: Pavlina Moravcova Varekova at 2018-06-19\n\n Installed: yum-3.4.3-161.el7.centos.noarch at 2019-03-01 00:52\n Built : CentOS BuildSystem at 2018-11-05 01:54\n Committed: CentOS Sources at 2018-10-30\n\n Installed: yum-plugin-fastestmirror-1.1.31-50.el7.noarch at 2019-03-01 00:52\n Built : CentOS BuildSystem at 2018-10-30 22:58\n Committed: Michal Domonkos at 2018-08-24", "stdout_lines": [ "3.4.3", " Installed: rpm-4.11.3-35.el7.x86_64 at 2019-03-01 00:52", " Built : CentOS BuildSystem at 2018-10-30 19:27", " Committed: Pavlina Moravcova Varekova at 2018-06-19", "", " Installed: yum-3.4.3-161.el7.centos.noarch at 2019-03-01 00:52", " Built : CentOS BuildSystem at 2018-11-05 01:54", " Committed: CentOS Sources at 2018-10-30", "", " Installed: yum-plugin-fastestmirror-1.1.31-50.el7.noarch at 2019-03-01 00:52", " Built : CentOS BuildSystem at 2018-10-30 22:58", " Committed: Michal Domonkos at 2018-08-24" ], "warnings": ["Consider using yum module rather than running yum"]} } "Destination directory /etc/nagios/conf.d does not exist"} to retry, use: --limit @/etc/ansible/monitor.retry
В файле:
/etc/ansible/roles/monitor/tasks/install.yml
перед задачей - name: nagios - create commands and default tests definitions в строке 365 необходимо добавить:
- name: nagios - create /etc/nagios/conf.d directory file: path=/etc/nagios/conf.d state=directory owner={{ nagios_server_user }} group={{ nagios_server_group }} mode=0750 tags: configure_monitor_servers when: "'bitrix-mgmt' in group_names"
После внесения изменений, снова пробуем активировать мониторинг.