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
3aadf8c2
Commit
3aadf8c2
authored
Mar 18, 2016
by
Paschalis Korosoglou
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #60 from dpavlos/nagios_config
ARGO-354 Ansible installation actions for monitoring engine
parents
a862da01
aeab9886
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
7 deletions
+26
-7
group_vars/monitoring_engine
group_vars/monitoring_engine
+9
-0
monitoring_engine.yml
monitoring_engine.yml
+5
-5
roles/monitoring_engine/tasks/main.yml
roles/monitoring_engine/tasks/main.yml
+12
-2
No files found.
group_vars/monitoring_engine
View file @
3aadf8c2
...
...
@@ -6,3 +6,12 @@ iptables_rules:
input:
- { dport: "80", proto: "tcp", policy: "accept"}
- { dport: "443", proto: "tcp", policy: "accept"}
nagios_plugins:
- { name: nagios-plugins-tcp , repo: "" }
- { name: nagios-plugins-disk , repo: "" }
- { name: nagios-plugins-http , repo: "" }
- { name: nagios-plugins , repo: "" }
- { name: nagios-plugins-dummy , repo: "" }
- { name: nagios-plugins-procs , repo: "" }
- { name: nagios-plugins-ping , repo: "" }
\ No newline at end of file
monitoring_engine.yml
View file @
3aadf8c2
---
-
hosts
:
monitoring_engine
user
:
root
sudo
:
true
roles
:
-
{
role
:
firewall
,
tags
:
firewall
}
-
{
role
:
repos
,
tags
:
repos
}
...
...
roles/monitoring_engine/tasks/main.yml
View file @
3aadf8c2
...
...
@@ -3,10 +3,17 @@
-
name
:
Install Nagios
yum
:
name=nagios state=latest enablerepo=nagios
-
name
:
Install Apache
yum
:
name=httpd state=latest
-
name
:
Install NCG and MSG conponents
yum
:
name={{ item.name }} state=latest enablerepo={{ item.repo }}
with_items
:
nagios_components
-
name
:
Install Nagios plugins
yum
:
name={{ item.name }} state=latest enablerepo={{ item.repo }}
with_items
:
nagios_plugins
-
name
:
Copy nagios.cfg file
template
:
src=nagios.cfg.j2
dest=/etc/nagios/nagios.cfg
...
...
@@ -22,6 +29,9 @@
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
-
name
:
Enable nagios and httpd on boot and start service
service
:
name={{ item }} state=started enabled=yes
with_items
:
-
nagios
-
httpd
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