Skip to content

Commit

Permalink
Add monkey patch to fix Observium file import bug
Browse files Browse the repository at this point in the history
  • Loading branch information
trick77 committed Jan 1, 2024
1 parent 938b599 commit fe27249
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions observium/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./

Expand Down

0 comments on commit fe27249

Please sign in to comment.