Using Oxidized With Librenms

Hi All

Forgive me as i’m fairly inexperienced in the world of linux, coming from a windows background so this is my first foray into the open source as my experience prior has been limited.

Im using LibreNMS, i have devices that are in groups in Librenms, Like MyGroupName1 with a specific username and password, then MygroupName2 within a specific username and password.

Oxidized is running on a separate VM. The current state is oxidized is running, it retrieves backups and is using the default username and password at the beginning of the config below and the ios model and throwing everything into the default group that Librenms is returning “defaultgrp” which is what you see in the oxidized web gui listed as the group.

What i want to achieve is to direct oxidized to use my specific group usernames and passwords, which it is not doing. I’ve seen a video somewhere that suggests that i need to modify the config.php on librenms and direct devices to my groups i have created in my oxdized config but the only example i have seen is doing it by OS type on the basis that a specific os will user a specific username and password combo which i don’t want to do.

I want to send specific credentials to specific groups and ideally i don’t want to backup any devices that are not in groups i havent declared in the oxidized config file.

Most of the devices are cisco devices running various cisco os variations, and i was curious how the model map relates to the specific OS variants. ie below i have

cisco:ios

Is it as simple as just saying
cisco:asa
?
As i’ve been getting some partial OS configs in the backups and wonder whether this is to do with model mapping.

Is someone able to offer me advice / guidance on how i might achieve what i’ve outlined above?

Thanks in advance

---
username: someuser
password: someverycomplicatedpassword
model: ios
resolve_dns: true
interval: 3600
use_syslog: false
debug: false
threads: 30
use_max_threads: false
timeout: 20
retries: 3
prompt: !ruby/regexp /^([\w.@-]+[#>]\s?)$/
rest: xxx.xxx.xxx.xxx:8888
next_adds_job: false
groups:
  MyGroupName1:
    username: mygroupnamebackup
    password: mygroupnamepassword
  MyGroupName2:
    username: mygroupsnamebackup1
    password: mygroupnamebackup1password
group_map: {}
models: {}
pid: "/home/oxidized/.config/oxidized/pid"
crash:
  directory: "/home/oxidized/.config/oxidized/crashes"
  hostnames: false
stats:
  history_size: 10
input:
  default: ssh
  debug: true
  ssh:
    secure: false
output:
  default: file
  debug: true
  file:
    directory: "/home/oxidized/backups"
source:
  default: http
  debug: true
  http:
    url: https://librenms.mydomain.org.uk/api/v0/oxidized
    map:
      name: hostname
      model: os
      group: group
    headers:
      X-Auth-Token: myverylongcomplicatedtokenblhalbhalbh
model_map:
  cisco: ios
  mikrotik: routeros