centreon/centreon-archived

[22.04.2] CLAPI Service Add - Object not Found

kozfelipe opened this issue · 2 comments

Hi there,

I am not able to add a service using CLAPI in 22.04

centreon -u admin -p centreon -o service -a add -v "localhost;test;"                                                 
Object not found:

I can add hosts normally tho

Add:

centreon -u uuuu -p 'xxx' -o SERVICE -a add -v "Central;random_name;generic-active-service-custom" 

docs

https://docs.centreon.com/docs/api/clapi/#add-19

image

from your data

centreon -u admin -p centreon -o service -a add -v "localhost;test;"                                                 
Object not found:

1.localhost
2.test
3.?

🥳

continues @ https://thewatch.centreon.com/

Thank you @ponchoh
My analyst forgot the template. Sorry for the inconvenience