forked from Narcissus/docker-multi-platform-probe
Compare commits
16 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9ab86d9e89 | ||
|
|
923b65c1e4 | ||
|
|
77016209c1 | ||
| e64f6724ab | |||
| 46fc633d88 | |||
| 573c54f5e2 | |||
| 8abf3edfcd | |||
| 16a7bea45c | |||
|
|
baa179a41c | ||
|
|
91a2187ec1 | ||
|
|
b54bc94716 | ||
|
|
44749872c3 | ||
|
|
b04fc33694 | ||
|
|
198cc27854 | ||
|
|
94519a402f | ||
|
|
546ee7af5e |
85
.github/workflows/docker-build.yml
vendored
Normal file
85
.github/workflows/docker-build.yml
vendored
Normal file
@@ -0,0 +1,85 @@
|
|||||||
|
# See https://docs.github.com/en/actions/publishing-packages/publishing-docker-images
|
||||||
|
|
||||||
|
name: Build and push # to docker registries
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- "main"
|
||||||
|
tags:
|
||||||
|
- "*"
|
||||||
|
release:
|
||||||
|
types: [published]
|
||||||
|
|
||||||
|
env:
|
||||||
|
IMAGE_NAME: prtgprobe/multi-platform-probe
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
docker_build:
|
||||||
|
name: Build and push
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
packages: write
|
||||||
|
contents: read
|
||||||
|
attestations: write
|
||||||
|
id-token: write
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
variant:
|
||||||
|
- name: systemec_piraeus
|
||||||
|
registry: "piraeus.systemec.nl"
|
||||||
|
steps:
|
||||||
|
- name: Set image for Docker
|
||||||
|
id: set-image
|
||||||
|
run: |
|
||||||
|
if [ "${{ matrix.variant.name }}" == "systemec_piraeus" ]; then
|
||||||
|
echo "IMAGE_TO_USE=${IMAGE_NAME}" >> $GITHUB_ENV
|
||||||
|
else
|
||||||
|
echo "Failing to resolve."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Check out the repository
|
||||||
|
uses: actions/checkout@v5
|
||||||
|
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v3
|
||||||
|
with:
|
||||||
|
platforms: |
|
||||||
|
- linux/amd64
|
||||||
|
- linux/arm64
|
||||||
|
- linux/arm/v7
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
- name: Log in to Systemec Piraeus
|
||||||
|
if: matrix.variant.name == 'systemec_piraeus'
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKER_PUSH_TOKEN }}
|
||||||
|
registry: ${{ matrix.variant.registry }}
|
||||||
|
|
||||||
|
- name: Extract metadata (tags, labels) for Docker
|
||||||
|
id: meta
|
||||||
|
uses: docker/metadata-action@v5
|
||||||
|
with:
|
||||||
|
images: ${{ matrix.variant.registry }}/${{ env.IMAGE_TO_USE }}
|
||||||
|
tags: |
|
||||||
|
type=ref,event=branch
|
||||||
|
type=ref,event=tag
|
||||||
|
type=sha,format=short,prefix=
|
||||||
|
|
||||||
|
- name: Build and push Docker image
|
||||||
|
id: push
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: ./Dockerfile
|
||||||
|
push: true
|
||||||
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||||
30
.github/workflows/dockerhub-description.yml
vendored
30
.github/workflows/dockerhub-description.yml
vendored
@@ -1,30 +0,0 @@
|
|||||||
# https://github.com/peter-evans/dockerhub-description
|
|
||||||
|
|
||||||
name: Update Docker Hub Description
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
paths:
|
|
||||||
- README.md
|
|
||||||
- .github/workflows/dockerhub-description.yml
|
|
||||||
|
|
||||||
env:
|
|
||||||
IMAGE_NAME: paessler/multi-platform-probe
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
update-description:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Check out the repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Docker Hub Description
|
|
||||||
uses: peter-evans/dockerhub-description@v4
|
|
||||||
with:
|
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
|
||||||
password: ${{ secrets.DOCKER_PUSH_TOKEN }}
|
|
||||||
repository: ${{ env.IMAGE_NAME }}
|
|
||||||
short-description: ${{ github.event.repository.description }}
|
|
||||||
enable-url-completion: true
|
|
||||||
4
.github/workflows/dockerhub.yml
vendored
4
.github/workflows/dockerhub.yml
vendored
@@ -3,8 +3,8 @@
|
|||||||
name: Push to Docker Hub
|
name: Push to Docker Hub
|
||||||
|
|
||||||
on:
|
on:
|
||||||
release:
|
# release:
|
||||||
types: [published]
|
# types: [published]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
IMAGE_NAME: paessler/multi-platform-probe
|
IMAGE_NAME: paessler/multi-platform-probe
|
||||||
|
|||||||
6
.github/workflows/github.yml
vendored
6
.github/workflows/github.yml
vendored
@@ -3,9 +3,9 @@
|
|||||||
name: Push to GitHub
|
name: Push to GitHub
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
# push:
|
||||||
branches: ["main"]
|
# branches: ["main"]
|
||||||
tags: ["*"]
|
# tags: ["*"]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: ghcr.io
|
REGISTRY: ghcr.io
|
||||||
|
|||||||
20
Dockerfile
20
Dockerfile
@@ -1,10 +1,11 @@
|
|||||||
FROM debian:11-slim
|
FROM debian:13-slim
|
||||||
|
|
||||||
LABEL org.opencontainers.image.authors="info@paessler.com"
|
LABEL org.opencontainers.image.authors="info@paessler.com"
|
||||||
LABEL org.opencontainers.image.vendor="Paessler GmbH"
|
LABEL org.opencontainers.image.vendor="Paessler GmbH"
|
||||||
LABEL org.opencontainers.image.licenses="MIT"
|
LABEL org.opencontainers.image.licenses="MIT"
|
||||||
|
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
ARG DEBIAN_FB_RELEASE=bookworm
|
||||||
|
|
||||||
# enforce image to be up to date
|
# enforce image to be up to date
|
||||||
RUN \
|
RUN \
|
||||||
@@ -21,7 +22,7 @@ RUN \
|
|||||||
# - libcap2-bin (for setcap command)
|
# - libcap2-bin (for setcap command)
|
||||||
#
|
#
|
||||||
RUN \
|
RUN \
|
||||||
apt-get update \
|
apt-get update && apt-get full-upgrade \
|
||||||
&& apt-get -y install --no-install-recommends --no-install-suggests \
|
&& apt-get -y install --no-install-recommends --no-install-suggests \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
python3-minimal \
|
python3-minimal \
|
||||||
@@ -29,13 +30,15 @@ RUN \
|
|||||||
libcap2-bin \
|
libcap2-bin \
|
||||||
&& apt-get clean
|
&& apt-get clean
|
||||||
|
|
||||||
# add paessler's official package repository
|
# Add Paessler's official package repository with current release specifications.
|
||||||
|
# If the current release is not present on Paessler's servers fallback to defined fallback release.
|
||||||
RUN \
|
RUN \
|
||||||
apt-get update \
|
apt-get -qq update \
|
||||||
&& apt-get -y install --no-install-recommends --no-install-suggests \
|
&& apt-get -y install --no-install-recommends --no-install-suggests \
|
||||||
curl \
|
curl \
|
||||||
&& curl --fail --silent https://packages.paessler.com/keys/paessler.asc > /usr/share/keyrings/paessler-archive-keyring.asc \
|
&& curl --fail https://packages.paessler.com/keys/paessler.asc > /usr/share/keyrings/paessler-archive-keyring.asc \
|
||||||
&& curl --fail --silent https://packages.paessler.com/docs/apt-sources/$(. /etc/os-release && echo $VERSION_CODENAME).sources > /etc/apt/sources.list.d/paessler.sources \
|
&& curl --fail https://packages.paessler.com/docs/apt-sources/$(. /etc/os-release && $VERSION_CODENAME).sources \
|
||||||
|
|| curl --fail https://packages.paessler.com/docs/apt-sources/${DEBIAN_FB_RELEASE}.sources > /etc/apt/sources.list.d/paessler.sources \
|
||||||
&& apt-get -y remove --purge curl \
|
&& apt-get -y remove --purge curl \
|
||||||
&& apt-get clean
|
&& apt-get clean
|
||||||
|
|
||||||
@@ -44,10 +47,11 @@ RUN \
|
|||||||
apt-get update \
|
apt-get update \
|
||||||
&& apt-get -y install --no-install-recommends --no-install-suggests \
|
&& apt-get -y install --no-install-recommends --no-install-suggests \
|
||||||
prtgmpprobe \
|
prtgmpprobe \
|
||||||
|
&& apt-get autoremove -y \
|
||||||
&& apt-get clean
|
&& apt-get clean
|
||||||
|
|
||||||
# add entrypoint script
|
# add entrypoint script
|
||||||
COPY --chown=root:root --chmod=0555 run-prtgmpprobe.sh /run-prtgmpprobe.sh
|
COPY --chown=root:root --chmod=0555 run-prtgmpprobe.sh /entrypoint.sh
|
||||||
|
|
||||||
# specify volumes:
|
# specify volumes:
|
||||||
# - /config : configuration directory for the prtgmpprobe, put your config.yml here.
|
# - /config : configuration directory for the prtgmpprobe, put your config.yml here.
|
||||||
@@ -57,5 +61,5 @@ VOLUME [ "/config", "/opt/paessler/share/scripts" ]
|
|||||||
# set WORKDIR to a sane default
|
# set WORKDIR to a sane default
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
|
|
||||||
ENTRYPOINT [ "/run-prtgmpprobe.sh" ]
|
ENTRYPOINT [ "/entrypoint.sh" ]
|
||||||
CMD [ "service-run" ]
|
CMD [ "service-run" ]
|
||||||
10
README.md
10
README.md
@@ -17,7 +17,7 @@ We recommend that you always update to the latest version of PRTG via the Auto-U
|
|||||||
Requires a [NATS server](#install-and-configure-a-nats-server) connection configured in PRTG.
|
Requires a [NATS server](#install-and-configure-a-nats-server) connection configured in PRTG.
|
||||||
|
|
||||||
[prtg-96]: https://www.paessler.com/prtg/history/stable#24.2.96.1315
|
[prtg-96]: https://www.paessler.com/prtg/history/stable#24.2.96.1315
|
||||||
[manual]: https://paessler.canto.global/direct/document/qvou34dmut1uh0gg6mqee3ip2k/K-e9xGiEiT58XzlH3s_Nf-B3lVk/original?content-type=application%2Fpdf&name=Multi-Platform+Probe+Manual.pdf
|
[manual]: https://manuals.paessler.com/multiplatformprobemanual.pdf
|
||||||
|
|
||||||
## How to use the multi-platform probe container
|
## How to use the multi-platform probe container
|
||||||
|
|
||||||
@@ -37,7 +37,7 @@ Paessler GmbH provides the **NATS Server for Paessler PRTG** Windows installer t
|
|||||||
* Configures the NATS server.
|
* Configures the NATS server.
|
||||||
* Installs and starts the NATS server service in the background.
|
* Installs and starts the NATS server service in the background.
|
||||||
|
|
||||||
For the installer and step-by-step instructions on how to set up a NATS server on Windows, see section **Step 1: Install a NATS server** in the [Multi-Platform Probe for PRTG (PDF)][manual] manual.
|
For the installer and step-by-step instructions on how to set up a NATS server on Windows, see section **Step 1: Install a NATS server** in the [Multi-Platform Probe for PRTG][manual] manual.
|
||||||
|
|
||||||
ℹ️ If you want to deploy your NATS server on a non-Windows system, see the NATS documentation on their website.
|
ℹ️ If you want to deploy your NATS server on a non-Windows system, see the NATS documentation on their website.
|
||||||
|
|
||||||
@@ -46,7 +46,7 @@ For the installer and step-by-step instructions on how to set up a NATS server o
|
|||||||
Once you set up your NATS server, you must configure PRTG to accept connections to the NATS server.
|
Once you set up your NATS server, you must configure PRTG to accept connections to the NATS server.
|
||||||
This is done from the PRTG web interface via **Setup** | **Cores & Probes** | **[Multi-Platform Probe Connection Settings][prtg-manual:cores]**.
|
This is done from the PRTG web interface via **Setup** | **Cores & Probes** | **[Multi-Platform Probe Connection Settings][prtg-manual:cores]**.
|
||||||
|
|
||||||
For step-by-step instructions on how to configure PRTG, see section **Step 2: Configure connection in PRTG** in the [Multi-Platform Probe for PRTG (PDF)][manual] manual.
|
For step-by-step instructions on how to configure PRTG, see section **Step 2: Configure connection in PRTG** in the [Multi-Platform Probe for PRTG][manual] manual.
|
||||||
|
|
||||||
[prtg-manual:cores]: https://www.paessler.com/manuals/prtg/core_and_probes#multi_platform_probe_connection
|
[prtg-manual:cores]: https://www.paessler.com/manuals/prtg/core_and_probes#multi_platform_probe_connection
|
||||||
|
|
||||||
@@ -91,8 +91,8 @@ You can also use the `/opt/paessler/share/scripts` volume for the scripts of the
|
|||||||
```sh
|
```sh
|
||||||
docker run -it \
|
docker run -it \
|
||||||
--network bridge \
|
--network bridge \
|
||||||
-v ./scripts:/opt/paessler/share/scripts:ro \
|
-v $(pwd)/scripts:/opt/paessler/share/scripts:ro \
|
||||||
-v ./config:/config \
|
-v $(pwd)/config:/config \
|
||||||
--cap-add NET_ADMIN \
|
--cap-add NET_ADMIN \
|
||||||
--cap-add NET_RAW \
|
--cap-add NET_RAW \
|
||||||
paessler/multi-platform-probe:latest
|
paessler/multi-platform-probe:latest
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ _passthrough=0
|
|||||||
for _arg in "$@"
|
for _arg in "$@"
|
||||||
do
|
do
|
||||||
case "$_arg" in
|
case "$_arg" in
|
||||||
--help|example-config)
|
-h|--help|example-config|-V|--version)
|
||||||
_passthrough=1
|
_passthrough=1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user