Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NetData
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
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
Ansible
Roles
NetData
Commits
30a4b5ac
Commit
30a4b5ac
authored
5 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Add sites with apache auth to http checks too
parent
16997bb4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/httpcheck.conf
+4
-4
4 additions, 4 deletions
templates/httpcheck.conf
with
4 additions
and
4 deletions
templates/httpcheck.conf
+
4
−
4
View file @
30a4b5ac
...
...
@@ -119,11 +119,11 @@ redirect: no
{%
endfor
%}
{%
for
drupal
in
drupal_settings
|
default
([]) %}
{%
for
site
in
drupal
.
domains
|
default
([]) %}
{%
if
site
.
uptime
is
defined
and
not
site
.
uptime
.
disabled
|
default
(
false
)
and
site
.
apache_auth
is
not
defined
%}
{%
if
site
.
uptime
is
defined
and
not
site
.
uptime
.
disabled
|
default
(
false
) %}
{{
site
.
uptime
.
name
|
to_uuid
}}:
name
: {{
site
.
uptime
.
name
}}
url
: {{
site
.
protocol
|
default
(
'https'
) }}://{%
if
site
.
apache_auth
is
defined
%}{{
site
.
apache_auth
.
user
}}:{{
site
.
apache_auth
.
password
}}@{%
endif
%}{{
site
.
domain
}}{%
if
site
.
uptime
.
path
is
defined
%}/{{
site
.
uptime
.
path
}}{%
endif
%}
url
: {{
site
.
protocol
|
default
(
'https'
) }}://{%
if
site
.
apache_auth
is
defined
and
site
.
apache_auth
.
user
is
defined
and
site
.
apache_auth
.
password
is
defined
%}{{
site
.
apache_auth
.
user
}}:{{
site
.
apache_auth
.
password
}}@{%
endif
%}{{
site
.
domain
}}{%
if
site
.
uptime
.
path
is
defined
%}/{{
site
.
uptime
.
path
}}{%
endif
%}
{%
if
site
.
uptime
.
pollerParams
|
default
(
false
)
and
site
.
uptime
.
pollerParams
.
body
|
default
(
false
) %}
regex
: {{
site
.
uptime
.
pollerParams
.
body
|
regex_escape
() }}
...
...
@@ -138,11 +138,11 @@ redirect: no
{%
endfor
%}
{%
endfor
%}
{%
for
site
in
nextcloud_settings
|
default
([]) %}
{%
if
site
.
uptime
is
defined
and
not
site
.
uptime
.
disabled
|
default
(
false
)
and
site
.
apache_auth
is
not
defined
%}
{%
if
site
.
uptime
is
defined
and
not
site
.
uptime
.
disabled
|
default
(
false
) %}
{{
site
.
uptime
.
name
|
to_uuid
}}:
name
: {{
site
.
uptime
.
name
}}
url
: {{
site
.
protocol
|
default
(
'https'
) }}://{%
if
site
.
apache_auth
is
defined
%}{{
site
.
apache_auth
.
user
}}:{{
site
.
apache_auth
.
password
}}@{%
endif
%}{{
site
.
domain
}}{%
if
site
.
uptime
.
path
is
defined
%}/{{
site
.
uptime
.
path
}}{%
endif
%}
url
: {{
site
.
protocol
|
default
(
'https'
) }}://{%
if
site
.
apache_auth
is
defined
and
site
.
apache_auth
.
user
is
defined
and
site
.
apache_auth
.
password
is
defined
%}{{
site
.
apache_auth
.
user
}}:{{
site
.
apache_auth
.
password
}}@{%
endif
%}{{
site
.
domain
}}{%
if
site
.
uptime
.
path
is
defined
%}/{{
site
.
uptime
.
path
}}{%
endif
%}
{%
if
site
.
uptime
.
pollerParams
|
default
(
false
)
and
site
.
uptime
.
pollerParams
.
body
|
default
(
false
) %}
regex
: {{
site
.
uptime
.
pollerParams
.
body
|
regex_escape
() }}
...
...
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