centreon / centreon-clapi

Centreon CLAPI Module
14 stars 14 forks source link

CLAPI : link contact/contactgroup to host/hosttemplate #331

Closed Xat59 closed 8 years ago

Xat59 commented 8 years ago

Hi guys,

I'm using CLAPI for industrialization needs. After creating a contact group with contact into, then a host template, I note we cannot link the contact group to a host template.

By the way, we also cannot link a simple contact to host/hostgroup.

I tried some param names but never found the good one. For instance, I tried : centreon -u admin -p 'pwd' -o HTPL -a setparam -v "HT_test_bla-astreinte;cg_name;CG_test_bla"

Really thanks guys !

Xat59 commented 8 years ago

I was looking for a "setparam" value but, in order to link contact/cg, we have to use something like this : centreon -u admin -p pwd -o HTPL -a addcontactgroup -v "HT_test_bla-astreinte;CG_test_bla"

By the way, that's fully documented .

So, my bad guys. I can close this false positive issue.

Thank for your job !