fboaventura / dckr-mrtg

:whale: Docker MRTG Instance that will configure monitoring from the environment variable.
https://hub.docker.com/r/fboaventura/dckr-mrtg/
MIT License
26 stars 17 forks source link

sh: date: not found #23

Closed Philippe-M closed 3 months ago

Philippe-M commented 3 months ago

Hello,

When I click on one of the charts on the index page, I get the following errors in the logs (without preventing functionality):

mrtg_1  | sh: date: not found
mrtg_1  | [Tue Aug 13 08:30:18 2024] 14all.cgi: sysread() on unopened filehandle GEN0 at /mrtg/cgi-bin/14all.cgi line 975.
mrtg_1  | [Tue Aug 13 08:30:18 2024] 14all.cgi: Use of uninitialized value in numeric ne (!=) at /mrtg/cgi-bin/14all.cgi line 975.
mrtg_1  | [Tue Aug 13 08:30:18 2024] 14all.cgi: close() on unopened filehandle GEN0 at /usr/lib/perl5/core_perl/IO/Handle.pm line 385.
mrtg_1  | [Tue Aug 13 08:30:18 2024] 14all.cgi: sysread() on unopened filehandle GEN1 at /mrtg/cgi-bin/14all.cgi line 975.
mrtg_1  | [Tue Aug 13 08:30:18 2024] 14all.cgi: Use of uninitialized value in numeric ne (!=) at /mrtg/cgi-bin/14all.cgi line 975.
mrtg_1  | [Tue Aug 13 08:30:18 2024] 14all.cgi: close() on unopened filehandle GEN1 at /usr/lib/perl5/core_perl/IO/Handle.pm line 385.
mrtg_1  | [Tue Aug 13 08:30:18 2024] 14all.cgi: sysread() on unopened filehandle GEN2 at /mrtg/cgi-bin/14all.cgi line 975.
mrtg_1  | [Tue Aug 13 08:30:18 2024] 14all.cgi: Use of uninitialized value in numeric ne (!=) at /mrtg/cgi-bin/14all.cgi line 975.
mrtg_1  | [Tue Aug 13 08:30:18 2024] 14all.cgi: close() on unopened filehandle GEN2 at /usr/lib/perl5/core_perl/IO/Handle.pm line 385.
mrtg_1  | [Tue Aug 13 08:30:18 2024] 14all.cgi: sysread() on unopened filehandle GEN3 at /mrtg/cgi-bin/14all.cgi line 975.
mrtg_1  | [Tue Aug 13 08:30:18 2024] 14all.cgi: Use of uninitialized value in numeric ne (!=) at /mrtg/cgi-bin/14all.cgi line 975.
mrtg_1  | [Tue Aug 13 08:30:18 2024] 14all.cgi: close() on unopened filehandle GEN3 at /usr/lib/perl5/core_perl/IO/Handle.pm line 385.
mrtg_1  | [Tue Aug 13 08:30:19 2024] 14all.cgi: Use of uninitialized value in concatenation (.) or string at /usr/lib/mrtg2/MRTG_lib.pm line 802.
mrtg_1  | [Tue Aug 13 08:30:19 2024] 14all.cgi: Use of uninitialized value in concatenation (.) or string at /usr/lib/mrtg2/MRTG_lib.pm line 802.
mrtg_1  | [Tue Aug 13 08:30:19 2024] 14all.cgi: Use of uninitialized value in concatenation (.) or string at /usr/lib/mrtg2/MRTG_lib.pm line 802.
mrtg_1  | [Tue Aug 13 08:30:19 2024] 14all.cgi: Use of uninitialized value in concatenation (.) or string at /usr/lib/mrtg2/MRTG_lib.pm line 802.
fboaventura commented 3 months ago

Hi @Philippe-M!

Thank you for your report. This is the same as #21. I was able to reduce the noise, fixing some of the warnings, but not all. I'll release a new version shortly. :)