https://docs.librenms.org/Installation/Install-LibreNMS/
LibreNMS is quite lengthy/time consuming to setup with a lot of steps (like 20 steps!).
This repository contains a Salt State for setting up the LibreNMS monitoring software. The state file includes tasks for installing the necessary packages, setting up user permissions, cloning the LibreNMS repository, installing PHP dependencies, and configuring MariaDB.
- Clone the repository:
git clone https://github.com/aden-webster/librenms.git
- Apply the Salt state
- Optionally, apply the Proxmox LibreNMS agent if you want LibreNMS integrated with your Proxmox Hypervisor.
- Installs necessary packages required by LibreNMS.
- Creates a system user 'librenms' with specified home directory and shell.
- Clones the LibreNMS repository from GitHub to /opt/librenms.
- Sets permissions for specific directories in /opt/librenms using setfacl.
- Runs a PHP Composer command to install PHP dependencies for LibreNMS.
- Ensures the 'librenms' database exists and creates a user with specified password and privileges.
- Make sure to replace {$MYSQLPASS} in the last function with an actual password.
- I would recommended reviewing the Salt state and customize it according to your environment before applying.