[Docker - Centos 7] Get stats from containers

Hello everyone,

My LibreNMS server is a Debian machine.
I’m starting to use docker on Centos 7, and I 'd like to have stats on Librenms.
I’ve follow the doc for installing the extend app (Applications - LibreNMS Docs).
But I have no graphs shown in librenms.
Logs gave this error :

> .1.3.6.1.4.1.8072.1.3.2.4.1.2.6.100.111.99.107.101.114.1 = STRING: {\"version\":\"1\",\"data\":[],\"error\":\"1\",\"errorString\":\"/etc/snmp/docker-stats.sh: ligne6: impossible de cr..er un fichier temporaire pour le .. here-document .. : Permission non accord..e\\nGot permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get \\\"h
> ttp://%2Fvar%2Frun%2Fdocker.sock/v1.24/version\\\": dial unix /var/run/docker.sock: connect: permission denied\"}

I don’t know how to fix it. As centos user, I have no Debian-snmp user; I moved permission of /var/run/docker.soch from 660 to 666 as I’v read on forum without success.
There is any port to open to firewalld ?

Could you help me with this ?

Regards,

Vincent

librenms@grafana:~$ ./validate.php
====================================
Component | Version
--------- | -------
LibreNMS  | 22.5.0-51-gc1a59e29e
DB Schema | 2022_05_30_084932_update-app-status-length (242)
PHP       | 7.4.25
Python    | 3.7.3
MySQL     | 10.5.12-MariaDB-1:10.5.12+maria~buster
RRDTool   | 1.7.1
SNMP      | 5.7.3
====================================

Ok.
I’m not familiar with rhel like distribution and I have to learn about selinux.
While I read documentation, I setup selinux as permissive et everything is working.

Regards,

Vincent

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.