Install Instructions from here
For CentOS, RockyLinux, and Alma Linux.
sudo yum -y install make cmake which sqlite-devel openssl-devel libssh2-devel ruby gcc ruby-devel libicu-devel gcc-c++
Install Ruby Gems
If you run into issues with installing the oxidized-web gem because of a ruby version, try installing ruby 2.6.1 via rvm the docs say install 2.1.2, but was having issues with it. 2.6.1 seems fine.
Note: If you run into issues with oxidized not being able to ssh into devices, and showing “OpenSSL::PKey::PKeyError with msg “dh#set_pqg= is incompatible with OpenSSL 3.0″” in the log, try installing from git.
gem install oxidized gem install oxidized-script gem install oxidized-web
Run Oxidized twice to generate the config
If you have issues running oxidized due to an invalid or self signed ssl cert, you can either fix the cert or ignore it in the oxidized config. https://github.com/ytti/oxidized/pull/618/files
Modify the Oxidized config file in “/root/.config/oxidized/config” to look like this.
Modify the http portion of the config file to look like the following.
Put the config file in the users home directory.
Setup the config, Basic config below, edit as needed
prompt: !ruby/regexp /^([\w.@-]+[#>]\s?)$/
default: ssh, telnet
Setup as system service
Find the “oxidized.service” file, should be in
and copy it to
Edit it and change the user and try to launch it
systemctl start oxidized
If it fails, you may need to substitute the ExecStart= variable to the following more info
Change the ruby number if yours is different.
Enable the service on system boot up and start
systemctl enable --now oxidized
Check that oxidized is running
systemctl status oxidized
Add the following to your /opt/librenms/config.php config file.
# Oxidized configuration $config['oxidized']['enabled'] = TRUE; $config['oxidized']['url'] = 'http://127.0.0.1:8888'; $config['oxidized']['features']['versioning'] = true; $config['oxidized']['group_support'] = true; $config['oxidized']['default_group'] = 'default'; $config['oxidized']['reload_nodes'] = true; $config['oxidized']['ignore_os'] = array('linux','windows'); $config['oxidized']['ignore_types'] = array('server','power');
LibreNMS should now feed Oxidized the devices.
You can check in the LibreNMS interface to see if it is getting the configs. https://librenms/oxidized
Where librenms is your LibreNMS servers ip/hostname.