Skip to main content

Hello, 

After struggling with my installation on Almalinux 9.x, I switched to Debain 12. It looks to work at least for permission error. However, looks like we have new issue now.

Few information before I go into error details. 
Host OS == Debian 12 
Installation Method == Using Packages 
License = IT 100 
Using “Central Poller”. (I do not have a need for multi poller setup YET). 
Monitoring server is on public internet. (Basic firewalled using Docs) 
 Configuration  >  Connectors  >  Monitoring Connectors  “Automatic installation of plugins” is ON

Enabled following Connectors 
 

 

Issue # 1= It looked like, even when the Installation of the plugins is ON, it never actually installed any plugin. After all the above connector were installed, updated /usr/lib/centreon/plugins/ just had there files

centreon_centreon_database.pl
centreon_linux_snmp.pl
centreon_mysql.pl

Issue # 2 =  (Not sure if it’s an issue or I am missing something) 

 Configuration  >  Commands  >  Checks  is Empty. Nothing there 

Issue # 3 = (Serious problem) 
Tried to add my 1st host. Under “Check Command” option, I selected “Base Centreon Ping” but it never worked. Then I click on the Info icon next to the command and it gives me 

 


The php-fpm logs show this error 

h2025-05-26T08:11:47+0500] rWARNING] Warning: Undefined variable $path {"exception":"Wobject] (ErrorException(code: 0): Warning: Undefined variable $path at /usr/share/centreon/www/include/configuration/configObject/command/minHelpCommandFunctions.php:46)"}

n2025-05-26T08:11:47+0500] pCRITICAL] Uncaught Error: strlen(): Argument #1 ($string) must be of type string, null given {"exception":"uobject] (TypeError(code: 0): strlen(): Argument #1 ($string) must be of type string, null given at /usr/share/centreon/www/include/configuration/configObject/command/minHelpCommandFunctions.php:46)"}

And for the life of me, going thorough all the docs and forum for past few hours, I can not figure out what’s the reason for this. 

So, again asking for help. Can someone please tell me why it’s giving me above error. 
Is “ Configuration  >  Commands  >  Checks” supposed to be empty ?? 

In the “Check Command” section while adding host, I see many commands/templates. None of them is working. Everyone single one of them gives me above 500 Internal Server error. 
 

Can someone please help me here or point me in the right direction. 

have you exported your configuration? https://docs.centreon.com/docs/getting-started/first-supervision/#deploying-a-configuration

That triggers plugin installations.


Hello :)

Issue #1
Did you deploy the configuration before checking whether the plugins were installed?

Issue #2
Have you checked the read-only box in this menu  Configuration  >  Commands  >  Checks?

Issue #3
You must use service and host templates, not commands directly.

Kind regards.


have you exported your configuration? https://docs.centreon.com/docs/getting-started/first-supervision/#deploying-a-configuration

That triggers plugin installations.


Yes, multiple times. That works without any issue. Still it never installed any plugin. (
I have manually installed following plugins that I think are needed for my small use case. 
 

root@monitoring:/usr/lib/centreon/plugins# ls -al
total 10168
drwxr-xr-x 2 root root 4096 May 26 07:32 .
drwxr-xr-x 3 root root 4096 May 22 14:28 ..
-rwxrwxr-x 1 root root 410147 May 12 19:18 centreon_apache_serverstatus.pl
-rwxrwxr-x 1 root root 482354 May 12 19:17 centreon_centreon_central.pl
-rwxrwxr-x 1 root root 603648 May 12 19:17 centreon_centreon_database.pl
-rwxrwxr-x 1 root root 469434 May 12 19:17 centreon_centreon_poller.pl
-rwxrwxr-x 1 root root 511193 May 12 19:18 centreon_database_db2.pl
-rwxrwxr-x 1 root root 454635 May 12 19:17 centreon_database_redis.pl
-rwxrwxr-x 1 root root 420432 May 12 19:17 centreon_docker_restapi.pl
-rwxrwxr-x 1 root root 417843 May 12 19:17 centreon_docker_ssh.pl
-rwxrwxr-x 1 root root 411060 May 12 19:17 centreon_elasticsearch.pl
-rwxrwxr-x 1 root root 610780 May 12 19:17 centreon_generic_snmp.pl
-rwxrwxr-x 1 root root 753839 May 12 19:17 centreon_linux_snmp.pl
-rwxrwxr-x 1 root root 732995 May 12 19:18 centreon_linux_ssh.pl
-rwxrwxr-x 1 root root 420628 May 12 19:17 centreon_mongodb.pl
-rwxrwxr-x 1 root root 442513 May 12 19:17 centreon_monitoring_netdata_restapi.pl
-rwxrwxr-x 1 root root 402111 May 12 19:17 centreon_monitoring_speedtest.pl
-rwxrwxr-x 1 root root 574544 May 12 19:17 centreon_mysql.pl
-rwxrwxr-x 1 root root 384393 May 12 19:17 centreon_nginx_serverstatus.pl
-rwxrwxr-x 1 root root 373418 May 12 19:18 centreon_php_fpm_web.pl
-rwxrwxr-x 1 root root 541686 May 12 19:17 centreon_postgresql.pl
-rwxrwxr-x 1 root root 515135 May 12 19:17 centreon_protocol_http.pl
-rwxrwxr-x 1 root root 425610 May 12 19:17 centreon_sendmail_snmp.pl

 


​​​​

Hello :)

Issue #1
Did you deploy the configuration before checking whether the plugins were installed?

Issue #2
Have you checked the read-only box in this menu  Configuration  >  Commands  >  Checks?

Issue #3
You must use service and host templates, not commands directly.

Kind regards.

  1. Yes, I made that mistake. Then I had to find the correct plugin and install them manually. 
  1. There is no  “read-only box” on that page
  1. I am not using command directly. I know I need to use service and templates. But I should be able to see what that does. I always get “Internal Server Error” no matter which command info i want to check. 

    Configuration  >  Hosts  > Add New Host 
    Select “base_centreon_ping” (or anything) under
    Host check options → Check Command 
    Click on info Link
    It opens a new window with url “mydomain.com/centreon/main.php?p=60801&command_id=93&o=w&min=1” 
    And that gives 

    Oops! An Error Occurred
    The server returned a "500 Internal Server Error".

    Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused.


    Any help ???


That triggers plugin installations.


I have done that multiple times. It does not install any plugin.
I have no manually installed following plugins 
 

root@monitoring:/usr/lib/centreon/plugins# ls -al
total 10168
drwxr-xr-x 2 root root 4096 May 26 07:32 .
drwxr-xr-x 3 root root 4096 May 22 14:28 ..
-rwxrwxr-x 1 root root 410147 May 12 19:18 centreon_apache_serverstatus.pl
-rwxrwxr-x 1 root root 482354 May 12 19:17 centreon_centreon_central.pl
-rwxrwxr-x 1 root root 603648 May 12 19:17 centreon_centreon_database.pl
-rwxrwxr-x 1 root root 469434 May 12 19:17 centreon_centreon_poller.pl
-rwxrwxr-x 1 root root 511193 May 12 19:18 centreon_database_db2.pl
-rwxrwxr-x 1 root root 454635 May 12 19:17 centreon_database_redis.pl
-rwxrwxr-x 1 root root 420432 May 12 19:17 centreon_docker_restapi.pl
-rwxrwxr-x 1 root root 417843 May 12 19:17 centreon_docker_ssh.pl
-rwxrwxr-x 1 root root 411060 May 12 19:17 centreon_elasticsearch.pl
-rwxrwxr-x 1 root root 610780 May 12 19:17 centreon_generic_snmp.pl
-rwxrwxr-x 1 root root 753839 May 12 19:17 centreon_linux_snmp.pl
-rwxrwxr-x 1 root root 732995 May 12 19:18 centreon_linux_ssh.pl
-rwxrwxr-x 1 root root 420628 May 12 19:17 centreon_mongodb.pl
-rwxrwxr-x 1 root root 442513 May 12 19:17 centreon_monitoring_netdata_restapi.pl
-rwxrwxr-x 1 root root 402111 May 12 19:17 centreon_monitoring_speedtest.pl
-rwxrwxr-x 1 root root 574544 May 12 19:17 centreon_mysql.pl
-rwxrwxr-x 1 root root 384393 May 12 19:17 centreon_nginx_serverstatus.pl
-rwxrwxr-x 1 root root 373418 May 12 19:18 centreon_php_fpm_web.pl
-rwxrwxr-x 1 root root 541686 May 12 19:17 centreon_postgresql.pl
-rwxrwxr-x 1 root root 515135 May 12 19:17 centreon_protocol_http.pl
-rwxrwxr-x 1 root root 425610 May 12 19:17 centreon_sendmail_snmp.pl


I think they would be enough for my use case for the start. I can install all plugins if they need to be present for everything to work
(apt install centreon-plugin* )​​​​​


In your command page, what happens when you clieck “Locked elements”? This should show the commands configured for the connectors you installed.


In your command page, what happens when you clieck “Locked elements”? This should show the commands configured for the connectors you installed.

Okay, So I guess that clears one issue. 
When you click on “Locked elements”, nothing happens. 
When you click on “Locked elements” and then do “search”, it should all the check. 

Then you need to copy them if you want to customize them. (Ok. I didn’t see that clearly in docs, to probably my ignorance) 

Now can someone shed light on “The server returned a "500 Internal Server Error". part that I explained above? 


Ok, I managed to reproduce your 500 Internal Server Error. Let me escalate that.

Now, that being said, if you are using the embedded templates then you should not have to edit the command (which will be automatically set, all you need is to fill in the parameters in the “Custom Macros” section):

See an example here: https://docs.centreon.com/docs/getting-started/monitor-mysql-server/#set-up-the-host-and-deploy-the-configuration


🤩


Ok, I managed to reproduce your 500 Internal Server Error. Let me escalate that.

Now, that being said, if you are using the embedded templates then you should not have to edit the command (which will be automatically set, all you need is to fill in the parameters in the “Custom Macros” section):

See an example here: https://docs.centreon.com/docs/getting-started/monitor-mysql-server/#set-up-the-host-and-deploy-the-configuration


Hi ​@rchauvel  Thank you for looking into this and confirm the issue. At least I am doing something right :)

I understand I don’t have to check them to work with the embedded templates. But since I was not able to see them (when viewing the Info link) I wasn’t sue what they were doing. Not at least I can get the idea.

I am wonder if this error (more like the cause of this error) is also responsible for not installing any plugin when “Monitoring Connectors” are installed and “Automatic installation of plugins” is set to Yes.

Since that is not working for me on Debian 12, is there a way to manually install plugins required for any installed “Connector”. 

Don’t really need all the plugins as my use case is pretty small. (Just a few Linux VMs) 


Hello :)

We have a documentation page dedicated for each Monitoring connector. In this documentation you can find information such as how to install the plugin and the monitoring connector manually. You will also have the explanations about the templates and what they supposed to monitor.
 

For example for Linux SNMP

You can installl the plugin manually with this command line: 

apt install centreon-plugin-operatingsystems-linux-snmp

And for a host if you apply the OS-Linux-SNMP-custom template you can automatically deploy the following services templates:

 

Kind regards

 

Note: Some documentation pages have not yet been updated to the standard format (about 20%). Please let us know using the tools at the bottom of the page, so that we can prioritize their processing according to your needs.


Reply