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

Passing the option `--zero-speed` is rendering an error #25

Closed fboaventura closed 2 months ago

fboaventura commented 3 months ago

The cfgmaker option --zero-speed passes a default value to be used when cfgmaker cannot find the interface speed.

Although it works well when issuing the command from inside the container, passing it through the CFGMAKEROPTIONS variable causes the command to fail with the message:

/usr/bin/cfgmaker --ifref=name --global WorkDir: /mrtg/html --global Options[_]: growright, bits --global EnableIPv6: no --global LogFormat: rrdtool --zero-speed=125000000 --show-op-down=1 --snmp-options=::::: --output=/etc/mrtg/conf.d/aji.cfg ffbdevro@192.168.18.252

[...]

ERROR: zero-speed specified with non-integer speed: 125000000 --show-op-down=1 at /usr/bin/cfgmaker line 622.

I tried the command with and without the = and will run other tests to identify the issue. As a last resource, I can make zero speed an option by itself.