Skip to main content

Hello, 

 

I migrate from 22.10 from 23.04 and when i want to show a command control, i have a blank page. 

 

I saw some topics but there is no solution for me… 

 

I share some screenshots

 

 

 

If you have any ideas, it will be very helpfull.

 

Best regards

In /var/log/apache2/error.log i can see this error : 

 

AH01071: Got error 'PHP message: PHP Warning:  opendir(/usr/lib64/nagios/plugins/): Failed to open directory: Aucun
fichier ou dossier de ce type in /usr/share/centreon/www/include/configuration/configObject/command/DB-Func.php on line 304PHP message: PHP Fatal error:  Uncaught TypeError: readdir(): Argument #1 ($dir_handle
) must be of type resource or null, bool given in /usr/share/centreon/www/include/configuration/configObject/command/DB-Func.php:305\nStack trace:\n#0 /usr/share/centreon/www/include/configuration/configObject
/command/DB-Func.php(305): readdir()\n#1 /usr/share/centreon/www/include/configuration/configObject/command/formCommand.php(59): return_plugin()\n#2 /usr/share/centreon/www/include/configuration/configObject/c
ommand/command.php(101): require_once('...')\n#3 /usr/share/centreon/www/main.get.php(299): include_once('...')\n#4 {main}\n  thrown in /usr/share/centreon/www/include/configuration/configObject/command/DB-Fun
c.php on line 305', referer: http://192.168.200.2/centreon/main.php?p=60801&o=c&command_id=93&type=2

 

But i can’t find where i need to modify opendir(/usr/lib64/nagios/plugins/) by opendir(/usr/lib/nagios/plugins/). 


Hello

I had a similar issue while upgrading from 22.10 to 23.04.06

I had to edit /etc/centreon/instCentWeb.conf and instCentPlugins, PLUGIN_DIR=/usr/lib64/nagios/plugins to PLUGIN_DIR=/usr/lib/nagios/plugins

Also on the web interace “Pollers->Ressources->”


Hi, 

 

Thank you for your response !

 

After modifying /etc/centreon/instCentWeb.conf and /etc/centreon/instCentPlugins.conf (PLUGIN_DIR=/usr/lib64/nagios/plugins to PLUGIN_DIR=/usr/lib/nagios/plugins)

 

and modifying 

 

all is good ! 

 

Best Regards, 

 

Florian


Reply