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
0737f6f5
Commit
0737f6f5
authored
Mar 22, 2016
by
Paschalis Korosoglou
Browse files
Merge pull request #64 from dpavlos/nagios_config
ARGO-389 Central nagios UMD plugins
parents
9b778861
cf6f5a00
Changes
2
Hide whitespace changes
Inline
Side-by-side
roles/monitoring_engine/tasks/main.yml
View file @
0737f6f5
...
@@ -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 @
0737f6f5
...
@@ -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