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
cf6f5a00
Commit
cf6f5a00
authored
Mar 21, 2016
by
Pavlos Daoglou
Browse files
ARGO-389 Central nagios configs
parent
9b778861
Changes
2
Hide whitespace changes
Inline
Side-by-side
roles/monitoring_engine/tasks/main.yml
View file @
cf6f5a00
...
@@ -14,6 +14,11 @@
...
@@ -14,6 +14,11 @@
yum
:
name={{ item.name }} state=latest enablerepo={{ item.repo }}
yum
:
name={{ item.name }} state=latest enablerepo={{ item.repo }}
with_items
:
nagios_plugins
with_items
:
nagios_plugins
-
name
:
Install Nagios UMD plugins
yum
:
name={{ item.name }} state=latest
with_items
:
nagios_plugins_umd
when
:
nagios_plugins_umd is defined
-
name
:
Copy nagios.cfg file
-
name
:
Copy nagios.cfg file
template
:
src=nagios.cfg.j2
template
:
src=nagios.cfg.j2
dest=/etc/nagios/nagios.cfg
dest=/etc/nagios/nagios.cfg
...
...
roles/monitoring_engine/templates/ncg.conf.j2
View file @
cf6f5a00
...
@@ -37,7 +37,7 @@ BACKUP_INSTANCE = {{ backup_instance }}
...
@@ -37,7 +37,7 @@ BACKUP_INSTANCE = {{ backup_instance }}
INCLUDE_EMPTY_HOSTS = {{ include_empty_hosts }}
INCLUDE_EMPTY_HOSTS = {{ include_empty_hosts }}
ENABLE_NOTIFICATIONS = {{ enable_notifications }}
ENABLE_NOTIFICATIONS = {{ enable_notifications }}
CHECK_HOSTS = {{ check_hosts }}
CHECK_HOSTS = {{ check_hosts }}
TENANT = {{ tenant }}
TENANT = {{ tenant
_name
}}
</Nagios>
</Nagios>
</NCG::ConfigGen>
</NCG::ConfigGen>
...
...
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