From fe2724925cad841734ce717ef00cbb968ab4e1a5 Mon Sep 17 00:00:00 2001 From: trick77 Date: Mon, 1 Jan 2024 17:01:43 +0100 Subject: [PATCH] Add monkey patch to fix Observium file import bug --- observium/Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/observium/Dockerfile b/observium/Dockerfile index 7ecbd44..f5032b5 100644 --- a/observium/Dockerfile +++ b/observium/Dockerfile @@ -18,7 +18,12 @@ WORKDIR /opt ADD ${OBSERVIUM_BINARY} ./ WORKDIR /opt/observium + +# Don't like the Apple icon ;-) RUN sed -i 's/icon-apple/icon-laptop/g' /opt/observium/html/includes/functions.inc.php || true +# Monkey patching a bug when using file import +RUN sed -i 's/\($snmp_v3_args\s*=\s*array_slice(\$argv, 4);\)/$snmp_v3_args = array_slice($add, 3);/' ./add_device.php || true + RUN ln -sf /dev/stdout ./logs/observium.log RUN chown -R www-data:www-data ./