Librenms Oxidized git config

Hi Everybody

I have tried to integrate Oxidized into LIbrenms. It looks like works well.
But I have not enough experience in git. Where can I find config files ? How can I restore whitout web site ?
My Oxidized config part for git …

git:
single_repo: true
email: [email protected]
repo: /opt/oxidized/output/oxidized.git
user: Oxidized

ls -la /opt/oxidized/output/oxidized.git/
total 40
drwxr-xr-x 6 oxidized oxidized 4096 Jan 20 09:04 .
drwxr-xr-x 4 oxidized oxidized 4096 Jan 20 09:09 …
-rw-r–r-- 1 oxidized oxidized 120 Jan 20 09:02 config
-rw-r–r-- 1 oxidized oxidized 73 Jan 20 09:02 description
-rw-r–r-- 1 oxidized oxidized 23 Jan 20 09:02 HEAD
drwxr-xr-x 2 oxidized oxidized 4096 Jan 20 09:02 hooks
-rw-r–r-- 1 oxidized oxidized 495 Jan 20 09:04 index
drwxr-xr-x 2 oxidized oxidized 4096 Jan 20 09:02 info
drwxr-xr-x 28 oxidized oxidized 4096 Jan 20 09:04 objects
drwxr-xr-x 4 oxidized oxidized 4096 Jan 20 09:02 refs

Librenms web works… I see different config version.


Thanks

Hi,

I think the goal is to manage the node settings, through LibreNMS itself.
In the Oxidized settings you can define the directory that will be saved, I am using this configuration:

output:
  default: git
  git:
    user: 
    email: 
    repo: "/home/oxidized/.config/oxidized/oxidized.git"

The Oxidized documentation has an explanation of Git outputs.

root@librenms:/opt/oxidized/.config/git# git ls-files
10.88.33.103
10.88.33.104
10.88.33.11
root@librenms:/opt/oxidized/.config/git# git show HEAD:10.88.33.11 > ~/whatevernameyouwant.txt

HEAD will show you the latest config (commit). The > ~/ will send the output to a file in your home directory if you want to save it.

It would be nice if librenms had the ability to view and download the configuration. Configs with 30K + lines are a pain if you plan on copying directly from the browser.

1 Like

It’s a very good feature that LibreNMS lacks, on the oxidized web there is this option to download the configuration.

Thanks.
I have found an other command.
/opt/oxidized/output/oxidized.git# git ls-files -s
100644 16863ea94e36f6698a794764735d06c8df51adc3 0 cisco/r-pe1-10
git cat-file -p 16863ea94e36f6698a794764735d06c8df51adc3 > 1.txt