There are some differences on setting up RRDReST on CentOS 8, Almalinux 9 vs CentOS 7
If you are setting this up to use with LibreNMS and Grafana, check out the rest of the this article. https://www.incredigeek.com/home/setting-up-grafana-on-librenms/
Installing RRDReST
All the docker commands have been swapped out for podman.
- Install Docker
- Create a compose file
- Run compose file to create container
Install docker
Podman is default on CentOS 8 and later and is for the most part a drop in replacement for Docker.
sudo yum install -y podman podman-compose sudo systemctl enable podman
Create podman-compose file
Create docker compose file with the following options
vi podman-compose.yml
Change the TZ to your time zone. If you have issues with the graphs, most likely something is off with the time zone between this container and Grafana/LibreNMS server
version: "3.5" services: rrdrest: image: michaelwadman/rrdrest:latest container_name: rrdrest restart: always volumes: - "/opt/librenms/rrd:/opt/librenms/rrd:Z" environment: - TZ=America/Denver
Note that the :Z is needed for SELinux to allow RRDReST to access the sub folders. AKA. the rrd files.
Run RRDReST Container
Save the file and start and setup the container with
sudo podman-compose up -d
You will need your docker container IP address to setup the connection in Grafana
sudo docker exec -it rrdrest ip addr | grep eth0
Configure RRDRest to start on system boot with systemd
The “restart: always” option does not appear to work on systems with podman. We can create a systemd service instead.
Use the following command to automatically create a
podman generate systemd rrdrest
Copy the contents to a new file in
/etc/systemd/system/rrdrest.service
Enable the new service with
systemctl enable rrdrest
Congratulations. RRDReST is now setup and running.