Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
icinga
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
webarch
icinga
Commits
372af293
Commit
372af293
authored
2 years ago
by
Chris Croome
Browse files
Options
Downloads
Patches
Plain Diff
Don't fail when port 5665 is not open by default
parent
18466e99
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#23902
passed
2 years ago
Stage: lint
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
defaults/main.yml
+2
-0
2 additions, 0 deletions
defaults/main.yml
tasks/firewall.yml
+2
-1
2 additions, 1 deletion
tasks/firewall.yml
tasks/main.yml
+0
-7
0 additions, 7 deletions
tasks/main.yml
with
4 additions
and
8 deletions
defaults/main.yml
+
2
−
0
View file @
372af293
...
...
@@ -80,6 +80,8 @@ icinga_default_remote_check_commands:
icinga_mariadb_socket
:
/var/run/mysqld/mysqld.sock
# Set icinga_iptables_check_fail to true only after everything is working!
icinga_iptables_check_fail
:
false
# IPv4 rule for Icinga
icinga_iptables_ipv4_rule
:
"
-A
INPUT
-s
{{
icinga_master_node_ipv4
}}/32
-p
tcp
-m
state
--state
NEW
-m
tcp
--dport
5665
-j
ACCEPT"
# Insert the Icinga IPv4 rule before this one
...
...
This diff is collapsed.
Click to expand it.
tasks/firewall.yml
+
2
−
1
View file @
372af293
...
...
@@ -84,7 +84,6 @@
-
"
Please
set
the
`icinga_iptables_ipv4_insertbefore`
variable
to
one
of
the
lines
above
and
then
re-run
this
role."
-
"
The
line
to
be
added
is:"
-
"
{{
icinga_iptables_ipv4_rule
}}"
when
:
icinga_first_check | bool
-
name
:
Add IPv4 iptables rule for Icinga
ansible.builtin.lineinfile
:
...
...
@@ -174,6 +173,8 @@
You can check this manyally using the following command
nmap -oX /home/chris/nmap.xml -p 5665 {{ inventory_hostname }}
when
:
icinga_iptables_check_fail | bool
tags
:
-
icinga
...
This diff is collapsed.
Click to expand it.
tasks/main.yml
+
0
−
7
View file @
372af293
...
...
@@ -43,8 +43,6 @@
-
name
:
Check and open the firewall if needed
ansible.builtin.include_tasks
:
firewall.yml
vars
:
icinga_first_check
:
true
# TODO These checks work but don't list agent nodes that are not connected
# if they did then they would be worth including as then the cert_config.yml
...
...
@@ -59,11 +57,6 @@
-
name
:
Include tasks to validate and reload config
ansible.builtin.include_tasks
:
reload.yml
-
name
:
Check and open the firewall if needed
ansible.builtin.include_tasks
:
firewall.yml
vars
:
icinga_first_check
:
false
when
:
-
inventory_hostname != icinga_master_node
-
inventory_hostname not in groups['icinga_master_nodes']
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment