Skip to main content
Question

Problem addind services

  • February 16, 2026
  • 5 replies
  • 44 views

Forum|alt.badge.img+2

Hi

When i want to add services on hosts, i have this message in centreon-error.log :

 

PHP Fatal error:  Uncaught InvalidArgumentException: The command ID does not exist. in /usr/share/centreon/www/include/configuration/configObject/service/DB-Func.php:2123
Stack trace:
#0 /usr/share/centreon/www/include/configuration/configObject/service/DB-Func.php(1863): insertServiceForOnPremise()
#1 /usr/share/centreon/www/include/configuration/configObject/service/DB-Func.php(1826): insertServiceInDBForOnPremise()
#2 /usr/share/centreon/www/include/configuration/configObject/service/formService.php(1159): insertServiceInDB()
#3 /usr/share/centreon/www/include/configuration/configObject/service/serviceByHost.php(108): require_once('...')
#4 /usr/share/centreon/www/main.get.php(277): include_once('...')
#5 {main}
  thrown in /usr/share/centreon/www/include/configuration/configObject/service/DB-Func.php on line 2123

 

I use centreon 25.10.6, this case is not for all services. In that case, is when i want to add linux-storage-ssh-custom service on a linux server. All others services from linux-ssh-custom is ok

 

 

Do you have any idea ?

 

Thanks a lot

5 replies

Forum|alt.badge.img+11

It seems that there is a command entry that got deleted or wrongly assigned to either a service or a service template.

Can you check the connectors you have installed and try to reinstall them (especially the one for witch you have issues with the services).

Else you can begin to look in the database for that entry of command ID that is non existing (maybe send in a HTTP request or something)


Forum|alt.badge.img+2
  • Author
  • Steward *
  • February 18, 2026

I checked the database for ID and for customs commands for linux ssh connector, there isn’t any ID.

But it’s the same for all customs commands.

There is an update on this connector, i’ll try today


Forum|alt.badge.img+2
  • Author
  • Steward *
  • February 18, 2026

Same problem, when i try to use any custom commands from linux ssh connector, i have blanck page and on the centreon-error.log the same message.


Forum|alt.badge.img+11

I’m clueless then, it seems there is something deeply broken in your centreon. Did that happend after an upgrade maybe ?


Forum|alt.badge.img+2
  • Author
  • Steward *
  • February 18, 2026

yes after 25.10.6 upgrade, i just tried with other connectors with customs commands and same problem. I can’t add any services on any hosts...