What I do not understand ist the following part in the docs:
You may possibly need to configure the agent/extend script as well.
The config file’s path defaults to the same path as the script, but with .config appended. So if the script is located at /etc/snmp/bind, the config file will be /etc/snmp/bind.config. Alternatively you can also specify a config via
I Need to create the bind.config which contains the values for the variables that are already stored in the bind script itself?
OK, I´am not a coder, but a normal sysadmin - so I created the file with the following content:
That output doesn’t look right. Did you by chance download the bind script in /librenms-agent/agent-local to run as a check_mk agent? Because that’s outdated. I opened an issue a while back because github wouldn’t let me do a PR that just deleted a single file for some reason at the time.
If you want to use the agent, download the bind script in /librenms-agent/snmp and change the variable for agent. Otherwise just use the snmp extend method. No need to do both.
Well, I’m not sure either but here are a couple ideas for you…
If you’re using the snmpd.conf that came with your distro, you might try moving it somewhere else and replacing it with the very basic example file from librenms (/opt/librenms/snmpd.conf.example). See if you can get snmpd to run with that first, then add the bind extend and see if that works. If you still get the same error maybe try running… snmpd -f -Le -Dread_config
…with sudo or as root.
One of the first couple lines should be read_config:path: and that should tell you where all snmpd is looking for conf files. After that it should show your line-by-line what config snmpd is loading from each of those files. Look through the output and see if you can spot any extends or OID’s that might conflict.
Or since you seem to have the check_mk agent running anyway you could just go that route. Don’t do the snmpd extend, remove that old bind script from /usr/lib/check_mk_agent/local/, move the new bind script and the bind.config file from /etc/snmp to /usr/lib/check_mk_agent/local/, and edit the config settings to agent = 1
I have almost same issue. I don’t have any log with dupplicate table or whatever, snmpd launch correctly but I’m not able to graph anything in LibreNMS rather than I have some statistics in /var/run/named/stats.