Skip to content
Snippets Groups Projects
Commit 290d513c authored by Christian Elberfeld's avatar Christian Elberfeld
Browse files

versionen fixieren

parent b6465227
No related branches found
No related tags found
No related merge requests found
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
...@@ -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$"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment