Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ansible-warpzone
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
Analyze
Value stream analytics
Contributor 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
infrastruktur
ansible-warpzone
Commits
290d513c
Commit
290d513c
authored
4 years ago
by
Christian Elberfeld
Browse files
Options
Downloads
Patches
Plain Diff
versionen fixieren
parent
b6465227
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
webserver/docker_icinga/templates/Dockerfile
+21
-12
21 additions, 12 deletions
webserver/docker_icinga/templates/Dockerfile
webserver/docker_icinga/templates/etc/icinga/conf.d/commands2.conf
+1
-1
1 addition, 1 deletion
.../docker_icinga/templates/etc/icinga/conf.d/commands2.conf
with
22 additions
and
13 deletions
webserver/docker_icinga/templates/Dockerfile
+
21
−
12
View file @
290d513c
FROM
jordan/icinga2:2.12.1
FROM
jordan/icinga2:2.12.1
# Install additional Packages
(Backports needed for Golang > 1.13)
# Install additional Packages
RUN
apt-get update
\
RUN
apt-get update
\
&&
apt-get
install
-y
-q
--no-install-recommends
-t
buster-backports
\
&&
apt-get
install
-y
-q
--no-install-recommends
\
curl
\
curl
\
dnsutils \
dnsutils \
git \
git \
golang \
jq \
jq \
libdata-validate-domain-perl \
libdata-validate-domain-perl \
libdata-validate-ip-perl \
libdata-validate-ip-perl \
...
@@ -27,16 +26,26 @@ COPY notify_by_pushover.sh /opt
...
@@ -27,16 +26,26 @@ COPY notify_by_pushover.sh /opt
RUN
chmod
+x /opt/
*
.sh
RUN
chmod
+x /opt/
*
.sh
# check_mqtt
# check_mqtt
RUN
cd
/opt/
&&
git clone https://github.com/jpmens/check-mqtt.git
RUN
cd
/opt/
\
&&
git clone https://github.com/jpmens/check-mqtt.git
\
&&
cd
/opt/check-mqtt/
\
&&
git checkout v3.0
# check_rbl
# check_rbl
RUN
cd
/opt/
&&
git clone https://github.com/matteocorti/check_rbl.git
RUN
cd
/opt/
\
&&
git clone https://github.com/matteocorti/check_rbl.git
\
&&
cd
/opt/check_rbl/
\
&&
git checkout v1.5.7
# check_json
# prom2json -- needed for check_metric_value
RUN
cd
/opt/
&&
git clone https://github.com/asymworks/check_json.git
RUN
cd
/opt/
\
&&
wget https://github.com/prometheus/prom2json/releases/download/v1.3.0/prom2json-1.3.0.linux-amd64.tar.gz
\
&&
tar
--strip-components
=
1
-xzvf
prom2json-1.3.0.linux-amd64.tar.gz
\
&&
chmod
ugo+x /opt/prom2json
# check_metric_value - commit from 16.12.2020
RUN
cd
/opt/
\
&&
git clone https://github.com/elberfeld/check_metric_value.git
\
&&
cd
/opt/check_metric_value/
\
&&
git checkout b94d3c3e78497a05e3b4520d33421f37e4d77985
# prom2json (go 1.13 min reqired)
RUN
cd
/opt/
&&
GOPATH
=
/opt/ go get github.com/prometheus/prom2json/cmd/prom2json
# check_metric_value
RUN
cd
/opt/
&&
git clone https://github.com/elberfeld/check_metric_value.git
This diff is collapsed.
Click to expand it.
webserver/docker_icinga/templates/etc/icinga/conf.d/commands2.conf
+
1
−
1
View file @
290d513c
...
@@ -52,7 +52,7 @@ object CheckCommand "check_metric_value" {
...
@@ -52,7 +52,7 @@ object CheckCommand "check_metric_value" {
command
= [
"/opt/check_metric_value/check_metric_value.py"
]
command
= [
"/opt/check_metric_value/check_metric_value.py"
]
arguments
= {
arguments
= {
"-P"
=
"/opt/
bin/
prom2json"
"-P"
=
"/opt/prom2json"
"-U"
=
"$metric_url$"
"-U"
=
"$metric_url$"
"-M"
=
"$metric_name$"
"-M"
=
"$metric_name$"
"-n"
=
"$metric_labelname$"
"-n"
=
"$metric_labelname$"
...
...
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