Commit a862da01 authored by Paschalis Korosoglou's avatar Paschalis Korosoglou

Merge pull request #59 from dpavlos/nagios

ARGO-354 Added ncg and nagios configs.
parents 37d4669f 48018cd2
......@@ -18,4 +18,8 @@ check_hosts: "0"
tenant: TENANT_A
poem_root_url: http://localhost/poem
include_proxy_checks: "0"
include_msg_checks_recv: "0"
\ No newline at end of file
include_msg_checks_recv: "0"
ocsp_command: handle_service_check
obsess_over_services: "1"
enable_environment_macros: "1"
backup_instance: "false"
---
- name: Install Nagios
yum: name=nagios-4.0.8-1.el6.srce.x86_64.rpm state=present enablerepo=nagios
yum: name=nagios state=latest enablerepo=nagios
- name: Install NCG and MSG conponents
yum: name={{ item.name }} state=latest enablerepo={{ item.repo }}
with_items: nagios_components
\ No newline at end of file
with_items: nagios_components
- name: Copy nagios.cfg file
template: src=nagios.cfg.j2
dest=/etc/nagios/nagios.cfg
owner=nagios group=nagios mode=0644
- name: Copy ncg.conf file
template: src=ncg.conf.j2
dest=/etc/ncg/ncg.conf
owner=root group=root
- name: Copy broker-list file
template: src=broker-list.j2
dest=/var/cache/msg/broker-cache-file/broker-list
owner=root group=root mode=0644
- name: Enable nagios on boot and start service
service: name=nagios state=started enabled=yes
{% if broker_host is defined %}
stomp://{{ broker_host }}:6163
{% endif %}
\ No newline at end of file
This diff is collapsed.
......@@ -14,6 +14,7 @@ NAGIOS_ADMIN = {{ nagios_admin_email }}
VO = {{ vo }}
ENABLE_UNICORE_PROBES= {{ enable_unicore_probes }}
METRIC_CONFIG_FILE = {{ metric_config_file }}
BACKUP_INSTANCE = {{ backup_instance }}
<NCG::SiteSet>
<GOCDB>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment