I have different username/passwords for my devices based on geography.
I have my devices in groups in LibreNMS based on geography. (The groups are created by matching a string in the SNMP location.)
Everything in LibreNMS looks as it should.
In oxidized, I have a default username/password, that works for the devices with the default credentials.
In my oxidized config, I have a section under “models” where I give unique credentials for the devices of a specific model. This works.
In my oxidized config, I created a group, that matches the group name in LibreNMS, in here I put the credentials for this group, this does not work. Oxidized is still trying to log into these devices with the default credentials.
Any idea how I can resolve and/or troubleshoot this? Is there a way to validate that oxidized is getting passed the correct group?
First thing, check you have followed this doc and specified the groups in config.php:
Oxidized webui will tell you the group being used.
We use that same setup (minus having creds for models) and it works for us. Might be worth sharing your config.
According to the web, the only group in oxidized is “default”.
in my LibreNMS, I defined a group called “RemoteSwitches”.
I’ve tried adding the following to my LibreNMS config.php:
$config[‘oxidized’][‘group’][‘location’] = array(‘regex’ => ‘/rm/’, ‘group’ => ‘RemoteSwitches’);
This didn’t help.
I also have “enable return of groups to oxidized” set to yes.
Below is why oxidized config.
prompt: !ruby/regexp /^([\[email protected]]+[#>]\s?)$/
default: telnet, ssh
I’d say that either the devices location doesn’t contain
rm or your have some other config in config.php stopping it, pastebin your config.php with login details redacted.