Hello everybody !
A few weeks ago, we installed Centreon 21.04 and we started to use it in production.
Our Oracle DBA want to check the size of a file in an Oracle Enterprise Server 7 Server. For that need, we installed the linux NRPE3 plugin pack (https://docs.centreon.com/current/en/integrations/plugin-packs/procedures/operatingsystems-linux-nrpe3.html) and use the service template “OS-Linux-File-Size-Generic-NRPE3-custom”.
If we check the size of the file our dba want to, the state become UNKNOWN “ Command error: du: cannot access 'filepath': Permission denied“ (Filepath = the exact path of the file I don’t want to share here ^^).
We have the same result for any files or directories in the monitored server except one, “/etc/nrpe/centreon-nrpe3.cfg”. When we check this file, we have the size of this file as result so the check works for me.
On the monitored host, we tried to change the “nrpe_user” and “nrpe_group” options to “root” instead of “centreon-engine” in the file centreon-nrpe3.cfg : same result.
Also, we tried to change the “User” and “Group” options to root in the service section in the file /usr/lib/systemd/system/centreon-nrpe3.service” : same result.
Even if the file we want to check have his rights as 777, the check fail.
We opened a case to the support but, in the meantime, if someone else can help us it would be great :)
Thanks !
Sully