ncg.conf.j2 2.37 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Configuration uses Apache-like format
# as defined by Perl module Config::General.
# For further details see:
#   http://search.cpan.org/dist/Config-General/

# Global variables which can be used in module
# configuration (e.g. LDAP_ADDRESS=$BDII).
# Variables in curly brackets are environment
# variables.

NAGIOS_SERVER = {{ nagios_server }}
NAGIOS_ADMIN = {{ nagios_admin_email }}
VO = {{ vo }}
ENABLE_UNICORE_PROBES= {{ enable_unicore_probes }}
15
16
MYPROXY_SERVER = {{ myproxy_server }}

17
18
19
<NCG::SiteSet>
  <GOCDB>
    GOCDB_ROOT_URL={{ gocdb_root_url }}
20
    ENABLE_UNICORE_PROBES=$ENABLE_UNICORE_PROBES
21
  </GOCDB>
22
23
24
25
  <File>
    DB_FILE=/etc/argo-ncg/ncg.localdb
    DB_DIRECTORY=/etc/argo-ncg/ncg-localdb.d
  </File>
26
</NCG::SiteSet>
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<NCG::SiteContacts>
  <GOCDB>
    GOCDB_ROOT_URL={{ gocdb_root_url }}
  </GOCDB>
  <GOCDB>
    CONTACT_TYPE=alarm
    GOCDB_ROOT_URL={{ gocdb_root_url }}
  </GOCDB>
  <GOCDB>
    CONTACT_TYPE={{ contact_type }}
    GOCDB_ROOT_URL={{ gocdb_root_url }}
  </GOCDB>
  <File>
    DB_FILE=/etc/argo-ncg/ncg.localdb
    DB_DIRECTORY=/etc/argo-ncg/ncg-localdb.d
  </File>
</NCG::SiteContacts>

45
46
47
48
<NCG::SiteInfo>
  <GOCDB>
    GOCDB_ROOT_URL={{ gocdb_root_url }}
  </GOCDB>
49
50
51
52
  <File>
    DB_FILE=/etc/argo-ncg/ncg.localdb
    DB_DIRECTORY=/etc/argo-ncg/ncg-localdb.d
  </File>
53
54
</NCG::SiteInfo>

55
56
57
58
59
60
61
62
63
<NCG::LocalMetricsAttrs>
  <Active>
    GOCDB_ROOT_URL={{ gocdb_root_url }}
    ENABLE_UNICORE_PROBES=$ENABLE_UNICORE_PROBES
    BDII_HOST={{ bdii_host }}
    INCLUDE_PROXY_CHECKS = {{ include_proxy_checks }}
  </Active>
  <LDAP>
    LDAP_ADDRESS={{ bdii_host }}
64
    BDII_LEVEL={{ bdii_level }}
65
66
67
68
69
70
71
  </LDAP>
  <File>
    DB_FILE=/etc/argo-ncg/ncg.localdb
    DB_DIRECTORY=/etc/argo-ncg/ncg-localdb.d
  </File>
</NCG::LocalMetricsAttrs>

72
73
<NCG::ConfigGen>
  <Nagios>
74
    NAGIOS_ROLE = {{ nagios_role|lower }}
75
76
    INCLUDE_EMPTY_HOSTS = {{ include_empty_hosts }}
    ENABLE_NOTIFICATIONS = {{ enable_notifications }}
77
    SEND_TO_DASHBOARD = {{ send_to_dashboard }}
78
    CHECK_HOSTS = {{ check_hosts }}
79
    TENANT = {{ tenant_name|lower }}
80
81
82
83
  </Nagios>
</NCG::ConfigGen>

<NCG::LocalMetrics>
84
85
86
87
  <File>
    DB_FILE=/etc/argo-ncg/ncg.localdb
    DB_DIRECTORY=/etc/argo-ncg/ncg-localdb.d
  </File>
88
89
  <POEM>
    POEM_ROOT_URL = {{ poem_root_url }}
90
    POEM_PROFILES = {% for poem in poem_profiles %}{{ poem|upper }}{% if not loop.last %},{% endif %}{% endfor %}
91

92
93
94
95
  </POEM>
</NCG::LocalMetrics>

include ncg.conf.d/*.conf