Skip to content

SNMP V2 Causes Error #33

@bigwave

Description

@bigwave

Adding a new target as public:10.90.2.68 causes the following error for each network interface:

2025-04-11 09:06:15: ERROR: Target[10.90.2.68_eth0][_IN_] ' $target->[11]{$mode} c' (warn): Bareword found where operator expected (Missing operator before "c"?) at (eval 35) line 1, near "} c"

As far as I can tell the funtion get_snmp_version() in files/mrtg.sh is not required.

Removing the c in the generated config file and restarting docker solves this.
Target[10.90.2.68_eth0]: \eth0:public@10.90.2.68:161::::2c
Target[10.90.2.68_eth0]: \eth0:public@10.90.2.68:161::::2

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions