Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
GitHubHistory
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Anastasios Lisgaras
GitHubHistory
Commits
48018cd2
Commit
48018cd2
authored
Mar 17, 2016
by
Pavlos Daoglou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARGO-354 Added ncg and nagios configs. Added default vars
parent
a04bdd7d
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1367 additions
and
3 deletions
+1367
-3
roles/monitoring_engine/defaults/main.yml
roles/monitoring_engine/defaults/main.yml
+5
-1
roles/monitoring_engine/tasks/main.yml
roles/monitoring_engine/tasks/main.yml
+21
-2
roles/monitoring_engine/templates/broker-list.j2
roles/monitoring_engine/templates/broker-list.j2
+3
-0
roles/monitoring_engine/templates/nagios.cfg.j2
roles/monitoring_engine/templates/nagios.cfg.j2
+1337
-0
roles/monitoring_engine/templates/ncg.conf.j2
roles/monitoring_engine/templates/ncg.conf.j2
+1
-0
No files found.
roles/monitoring_engine/defaults/main.yml
View file @
48018cd2
...
@@ -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 @
48018cd2
---
---
-
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 @
48018cd2
{% 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 @
48018cd2
This diff is collapsed.
Click to expand it.
roles/monitoring_engine/templates/ncg.conf.j2
View file @
48018cd2
...
@@ -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