wizballesy/librenms-oxidized-history
Composer 安装命令:
composer require wizballesy/librenms-oxidized-history
包简介
LibreNMS package for viewing historical Oxidized configuration history through an external Oxidized History API service.
README 文档
README
LibreNMS package for viewing historical Oxidized configuration history through an external Oxidized History API service.
This package adds a Historical Config device tab in LibreNMS. It is intended for environments where Oxidized stores configuration history in Git repositories, and LibreNMS should be able to view older saved configurations without modifying LibreNMS core or Oxidized itself.
Status
Alpha release.
Current package release:
v0.1.0-alpha.4
The companion History API service is installed separately. The LibreNMS package does not run or install the API service automatically.
What it does
- Adds a LibreNMS device tab named
Historical Config - Reads historical config versions from an external History API
- Shows available config versions for the selected device
- Shows selected historical config content
- Shows diff output where available
- Shows History API status and version
- Shows installed plugin/package version
- Uses LibreNMS Oxidized group mapping where available
- Does not modify LibreNMS core
- Does not modify Oxidized
Components
This project has two parts:
-
wizballesy/librenms-oxidized-history
The LibreNMS Composer package / plugin UI. -
oxidized-history-api
A separate service that reads Oxidized Git repositories and exposes a local HTTP API.
The API service should normally listen locally, for example:
http://127.0.0.1:8899
Requirements
- LibreNMS with Composer package support
- PHP 8.2 or newer
- Oxidized configuration history stored in Git repositories
- The separate
oxidized-history-apiservice installed and reachable from LibreNMS - Bearer token authentication recommended for the API service
Configuration
The package reads configuration from config/oxidized-history.php.
Default API URL:
http://127.0.0.1:8899
Default token file:
/etc/oxidized-history-api/token
The token file should be readable by the LibreNMS user and should not be committed to Git.
Example environment overrides:
OXIDIZED_HISTORY_API_URL=http://127.0.0.1:8899 OXIDIZED_HISTORY_API_TOKEN_FILE=/etc/oxidized-history-api/token
Installation
This plugin is installed as a Composer package.
Manual copy-based installation is not the recommended installation method.
The companion oxidized-history-api service must be installed and configured separately. This LibreNMS package only provides the LibreNMS UI/integration.
Install from Packagist
Recommended installation method:
cd /opt/librenms
sudo -u librenms ./lnms plugin:add wizballesy/librenms-oxidized-history v0.1.0-alpha.4
sudo -u librenms php artisan optimize:clear
sudo -u librenms php artisan view:clear
This uses LibreNMS' plugin package installer and installs the package from Packagist.
After installation, open a LibreNMS device and select the Historical Config tab.
LibreNMS validate note
Installing LibreNMS plugin packages modifies:
composer.json
composer.lock
LibreNMS validate may warn that these files are locally modified after installing or updating third-party plugin packages. This is expected because the plugin is installed as a Composer dependency inside the LibreNMS application directory.
Do not run ./scripts/github-remove unless you intentionally want to remove local Composer changes.
Updating
To update to a specific release:
cd /opt/librenms
sudo -u librenms ./lnms plugin:add wizballesy/librenms-oxidized-history v0.1.0-alpha.4
sudo -u librenms php artisan optimize:clear
sudo -u librenms php artisan view:clear
Replace v0.1.0-alpha.4 with the version you want to install.
Security notes
- Do not expose the History API publicly.
- Keep the API bound to localhost or a trusted internal interface.
- Use bearer token authentication.
- Protect the token file with restrictive permissions.
- Do not commit real tokens, device secrets, SNMP communities, private keys, or organization-specific configuration data.
License
GPL-3.0-or-later
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2026-06-20