Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Anastasios Lisgaras
GitHubHistory
Commits
a862da01
Commit
a862da01
authored
Mar 17, 2016
by
Paschalis Korosoglou
Browse files
Merge pull request #59 from dpavlos/nagios
ARGO-354 Added ncg and nagios configs.
parents
37d4669f
48018cd2
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
roles/monitoring_engine/defaults/main.yml
View file @
a862da01
...
@@ -18,4 +18,8 @@ check_hosts: "0"
...
@@ -18,4 +18,8 @@ check_hosts: "0"
tenant
:
TENANT_A
tenant
:
TENANT_A
poem_root_url
:
http://localhost/poem
poem_root_url
:
http://localhost/poem
include_proxy_checks
:
"
0"
include_proxy_checks
:
"
0"
include_msg_checks_recv
:
"
0"
include_msg_checks_recv
:
"
0"
\ No newline at end of file
ocsp_command
:
handle_service_check
obsess_over_services
:
"
1"
enable_environment_macros
:
"
1"
backup_instance
:
"
false"
roles/monitoring_engine/tasks/main.yml
View file @
a862da01
---
---
-
name
:
Install Nagios
-
name
:
Install Nagios
yum
:
name=nagios
-4.0.8-1.el6.srce.x86_64.rpm
state=
presen
t enablerepo=nagios
yum
:
name=nagios state=
lates
t enablerepo=nagios
-
name
:
Install NCG and MSG conponents
-
name
:
Install NCG and MSG conponents
yum
:
name={{ item.name }} state=latest enablerepo={{ item.repo }}
yum
:
name={{ item.name }} state=latest enablerepo={{ item.repo }}
with_items
:
nagios_components
with_items
:
nagios_components
\ No newline at end of file
-
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
roles/monitoring_engine/templates/broker-list.j2
0 → 100644
View file @
a862da01
{% if broker_host is defined %}
stomp://{{ broker_host }}:6163
{% endif %}
\ No newline at end of file
roles/monitoring_engine/templates/nagios.cfg.j2
0 → 100644
View file @
a862da01
This diff is collapsed.
Click to expand it.
roles/monitoring_engine/templates/ncg.conf.j2
View file @
a862da01
...
@@ -14,6 +14,7 @@ NAGIOS_ADMIN = {{ nagios_admin_email }}
...
@@ -14,6 +14,7 @@ NAGIOS_ADMIN = {{ nagios_admin_email }}
VO = {{ vo }}
VO = {{ vo }}
ENABLE_UNICORE_PROBES= {{ enable_unicore_probes }}
ENABLE_UNICORE_PROBES= {{ enable_unicore_probes }}
METRIC_CONFIG_FILE = {{ metric_config_file }}
METRIC_CONFIG_FILE = {{ metric_config_file }}
BACKUP_INSTANCE = {{ backup_instance }}
<NCG::SiteSet>
<NCG::SiteSet>
<GOCDB>
<GOCDB>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment