Skip to main content

Bonjour,

 

I want to add a dependace with the rest api.

It didn t work , i don t know why :

centreon -d -u admin -p 'PASSWORDXXX' -o DEP -a ADD -v "postgres_5022;postgres_5022;SERVICE;postgres_5022"

 

with “postgres_5022” an existing service.

Do you have an idea?

Thanks,

Mathias

 

 

Hello,

You need to precise the host name where the service is attached, like this

centreon -u admin -p 'passsword' -o DEP -a ADD -v "myDep;DepDescription;SERVICE;hostname,servicename"

Separate the hostname and the service name with a comma (,)

Hope it helps


That s it !

Thanks for your help

😄


Reply