Oxidized integration problem - not pulling versions

Hello,

i have problem with seeing version of config, i see only last configuration in librenms

I have browsed through this community, found several same issues, but in all there was error in ouput not being git - as per config, i got only output git

→ ./validate.php
====================================
Component | Version
--------- | -------
LibreNMS | 1.61-61-gfb7c578fd
DB Schema | 2020_02_10_223323_create_alert_location_map_table (159)
PHP | 7.2.28-4+0~20200224.38+debian9~1.gbp1ca010
MySQL | 10.1.44-MariaDB-0+deb9u1
RRDTool | 1.6.0
SNMP | NET-SNMP 5.7.3
====================================

Blockquote
[OK] Composer Version: 1.10.1
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[WARN] Your local git contains modified files, this could prevent automatic updates.
[FIX]:
You can fix this with ./scripts/github-remove
Modified Files:
bootstrap/cache/.gitignore
logs/.gitignore
rrd/.gitignore
storage/app/.gitignore
storage/app/public/.gitignore
storage/debugbar/.gitignore
storage/framework/cache/.gitignore
storage/framework/cache/data/.gitignore
storage/framework/sessions/.gitignore
storage/framework/testing/.gitignore
storage/framework/views/.gitignore
storage/logs/.gitignore
[FAIL] We have found some files that are owned by a different user than librenms, this will stop you updating automatically and / or rrd files being updated causing graphs to fail.
[FIX]:
sudo chown -R librenms:librenms /opt/librenms
sudo setfacl -d -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
sudo chmod -R ug=rwX /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
Files:
/opt/librenms/.git/index

i dont think issue is related to errors from validate, we got automated git which backups all servers, but please tell me if i am wrong :slight_smile:

my oxidized config:

librenms config regards oxidized:
$config[‘oxidized’][‘enabled’] = TRUE;
$config[‘oxidized’][‘url’] = ‘http://127.0.0.1:8888’;
$config[‘oxidized’][‘features’][‘versioning’] = true;
$config[‘oxidized’][‘reload_nodes’] = true;

Thanks for any help!

Same here. When I access the oxidized web gui I can see the versioning, but in librenms just a big blank spot.

Is the oxidized versioning turned on in your librenms settings? and you have GIT setup with Librenms integration on oxidized?

Hello,
yes for both.
My git setup with oxidized can be seen in https://pastebin.com/tA9Xz4tz
and in librenms config.php, i got
$config[‘oxidized’][‘features’][‘versioning’] = true;

also, versioning is enabled in librenms gui settings for oxidized

Yeah, I have oxidized versioning enabled in config.php:

$config[‘oxidized’][‘enabled’] = TRUE;
$config[‘oxidized’][‘url’] = ‘http://big-blue.eh.pweh.com:8888’;
$config[‘oxidized’][‘features’][‘versioning’] = true;
$config[‘oxidized’][‘reload_nodes’] = true;

It’s acting like the “$config[‘oxidized’][‘features’][‘versioning’] = true;” statement doesn’t exist. I inspected the config page in librenms and there are no errors, the javascript wasn’t generated.

the setting is available in the web gui under global settings oxidized tab i think , does it say its enabled there? and versioning works on oxidzed-web?

Yes and yes.

Just wanted to add that I’ve also encountered this. Used to work fine ~2 weeks ago but now I only see the last version.

Update, compiled master branch from oxidized and now I see versions again

oxidized --version
0.27.0-21-g17cdbc8

OK, it seems I may have been looking at this wrong. My install of Oxidized is new (meaning none of my switches configs had changed recently). I made a change in two of our Nexus 7010s and now am seeing the version window pop up in Librenms. I guess there needs to be a change diff for it to appear.

solved by https://github.com/ytti/oxidized/commit/d96a592be605149f8a4f8d45e8b35e1ed8f3049c

1 Like