Skip to main content

Hello!

I’m facing an issue but google couldn’t help me this time

I’ve installed the centreon-nrpe3-plugin and created a new command that uses /usr/lib64/nagios/plugins/check_centreon_nrpe3

When I run this command from the shell, it works fine

When I run this command by centreon, the output is “ Command not allowed “. Of course, I checked the rights on the file and it has execution rights for everyone…

Can someone help me to figure it out ?

Thanks!

Vivien

Hello @vivpwb

I think centreon-engine (the service responsible to execute the check regulary) have a whitelist on what it can execute for security reason.

can you check theese folders for any whitelist ?

/etc/centreon-engine-whitelist

/usr/share/centreon-engine/whitelist.conf.d/*

/etc/centreon-engine/*

if you have anything, and if yes if the command you are trying to execute is correctly allowed ?

 


hello @evanadam 

Thanks for trying to help !

There is nothing as a whitelist in /etc/centreon-engine/  and the other folders do not exist.

I found out after my post that the checks actually work, it is only the help when you click on the “info” button in the service that does not work and return “Command not allowed” :

Any idea why ?

Thanks !

Vivien


Reply