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
a04bdd7d
Commit
a04bdd7d
authored
Mar 16, 2016
by
Pavlos Daoglou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARGO-354 Ansible deployment scripts for monitoring engine
parent
1eeed091
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
127 additions
and
1 deletion
+127
-1
group_vars/monitoring_engine
group_vars/monitoring_engine
+8
-0
inventory
inventory
+4
-1
monitoring_engine.yml
monitoring_engine.yml
+9
-0
roles/monitoring_engine/defaults/main.yml
roles/monitoring_engine/defaults/main.yml
+21
-0
roles/monitoring_engine/tasks/main.yml
roles/monitoring_engine/tasks/main.yml
+8
-0
roles/monitoring_engine/templates/ncg.conf.j2
roles/monitoring_engine/templates/ncg.conf.j2
+65
-0
roles/repos/files/etc/yum.repos.d/nagios.repo
roles/repos/files/etc/yum.repos.d/nagios.repo
+5
-0
roles/repos/tasks/main.yml
roles/repos/tasks/main.yml
+7
-0
No files found.
group_vars/monitoring_engine
0 → 100644
View file @
a04bdd7d
---
cert_path: /etc/pki/tls/certs/localhost.crt
key_path: /etc/pki/tls/private/localhost.key
iptables_rules:
input:
- { dport: "80", proto: "tcp", policy: "accept"}
- { dport: "443", proto: "tcp", policy: "accept"}
inventory
View file @
a04bdd7d
...
...
@@ -9,4 +9,7 @@ standalone.node
poem.node
[webui]
webui.node
\ No newline at end of file
webui.node
[monitoring_engine]
monitoring_engine.node
\ No newline at end of file
monitoring_engine.yml
0 → 100644
View file @
a04bdd7d
---
-
hosts
:
monitoring_engine
user
:
root
roles
:
-
{
role
:
firewall
,
tags
:
firewall
}
-
{
role
:
repos
,
tags
:
repos
}
-
{
role
:
has_certificate
,
tags
:
certificate
}
-
{
role
:
monitoring_engine
,
tags
:
monitoring_engine
}
roles/monitoring_engine/defaults/main.yml
0 → 100644
View file @
a04bdd7d
nagios_components
:
-
{
name
:
argo-ncg
,
repo
:
argo-prod
}
-
{
name
:
argo-msg-nagios
,
repo
:
argo-prod
}
nagios_server
:
localhost
probes_type
:
local
nagios_admin_email
:
contact@nagiosadmin.localhost
vo
:
ops
enable_unicore_probes
:
"
0"
metric_config_file
:
/etc/ncg-metric-config.d/local.conf
gocdb_root_url
:
https://goc.egi.eu/gocdbpi
cert_status
:
Production
nagios_role
:
PROJECT
include_empty_hosts
:
"
0"
enable_notifications
:
"
0"
check_hosts
:
"
0"
tenant
:
TENANT_A
poem_root_url
:
http://localhost/poem
include_proxy_checks
:
"
0"
include_msg_checks_recv
:
"
0"
\ No newline at end of file
roles/monitoring_engine/tasks/main.yml
0 → 100644
View file @
a04bdd7d
---
-
name
:
Install Nagios
yum
:
name=nagios-4.0.8-1.el6.srce.x86_64.rpm state=present enablerepo=nagios
-
name
:
Install NCG and MSG conponents
yum
:
name={{ item.name }} state=latest enablerepo={{ item.repo }}
with_items
:
nagios_components
\ No newline at end of file
roles/monitoring_engine/templates/ncg.conf.j2
0 → 100644
View file @
a04bdd7d
# 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 }}
PROBES_TYPE= {{ probes_type }}
NAGIOS_ADMIN = {{ nagios_admin_email }}
VO = {{ vo }}
ENABLE_UNICORE_PROBES= {{ enable_unicore_probes }}
METRIC_CONFIG_FILE = {{ metric_config_file }}
<NCG::SiteSet>
<GOCDB>
GOCDB_ROOT_URL={{ gocdb_root_url }}
CERT_STATUS={{ cert_status }}
</GOCDB>
</NCG::SiteSet>
<NCG::SiteInfo>
<GOCDB>
GOCDB_ROOT_URL={{ gocdb_root_url }}
</GOCDB>
</NCG::SiteInfo>
<NCG::ConfigGen>
<Nagios>
TEMPLATES_DIR = /usr/share/grid-monitoring/config-gen/nagios
OUTPUT_DIR = /etc/nagios/wlcg.d
NRPE_OUTPUT_DIR = /etc/nagios/nrpe/
NAGIOS_ROLE = {{ nagios_role }}
INCLUDE_EMPTY_HOSTS = {{ include_empty_hosts }}
ENABLE_NOTIFICATIONS = {{ enable_notifications }}
CHECK_HOSTS = {{ check_hosts }}
TENANT = {{ tenant }}
</Nagios>
</NCG::ConfigGen>
<NCG::LocalMetrics>
<POEM>
POEM_ROOT_URL = {{ poem_root_url }}
</POEM>
<File>
DB_FILE=/etc/ncg/ncg.localdb
</File>
</NCG::LocalMetrics>
<NCG::LocalMetricsAttrs>
<Active>
GOCDB_ROOT_URL={{ gocdb_root_url }}
ENABLE_UNICORE_PROBES=$ENABLE_UNICORE_PROBES
INCLUDE_PROXY_CHECKS = {{ include_proxy_checks }}
INCLUDE_MSG_CHECKS_RECV = {{ include_msg_checks_recv }}
</Active>
<File>
DB_FILE=/etc/ncg/ncg.localdb
</File>
</NCG::LocalMetricsAttrs>
include ncg.conf.d/*.conf
roles/repos/files/etc/yum.repos.d/nagios.repo
0 → 100644
View file @
a04bdd7d
[nagios]
name=Nagios Repository
baseurl=http://ftp.srce.hr/srce-redhat/base/el6/$basearch
enabled=0
gpgcheck=0
\ No newline at end of file
roles/repos/tasks/main.yml
View file @
a04bdd7d
...
...
@@ -32,3 +32,10 @@
dest=/etc/yum.repos.d/cloudera-cdh5.repo backup=no
owner=root group=root mode=0644
when
:
inventory_hostname in groups.standalone
-
name
:
Install Nagios repo
tags
:
monitoring_engine_repo
copy
:
src=etc/yum.repos.d/nagios.repo
dest=/etc/yum.repos.d/nagios.repo backup=no
owner=root group=root mode=0644
when
:
inventory_hostname in groups.monitoring_engine
\ No newline at end of file
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