leoncx / testmigrate

0 stars 0 forks source link

Activate/Deactivate a service with clapi #194

Closed leoncx closed 9 years ago

leoncx commented 11 years ago

Author Name: Anthony ROSSETTO (Anthony ROSSETTO) Original Redmine Issue: 4521, https://forge.centreon.com/issues/4521 Original Date: 2013-06-06 Original Assignee: Sylvestre Ho


Hi,

I didn't find any issue for activating and deactivating a service with clapi.

Could you help me please ?

Regards

leoncx commented 11 years ago

Original Redmine Comment Author Name: Anthony ROSSETTO (Anthony ROSSETTO) Original Date: 2013-06-06T10:09:53Z


Idem for servicegroup ?

leoncx commented 11 years ago

Original Redmine Comment Author Name: Romain Couturat (Romain Couturat) Original Date: 2013-06-06T11:38:28Z


Though it is not mentionned in the documentation, you can actually do :

Service groups : centreon -u $user -p $password -o SG -a setparam -v "$serviceGroup;activate;0"

Services : centreon -u $user -p $password -o service -a setparam -v "$host;$service;activate;0"

leoncx commented 11 years ago

Original Redmine Comment Author Name: Anthony ROSSETTO (Anthony ROSSETTO) Original Date: 2013-06-06T12:54:56Z


thx ;)

Why the documentation isn't up to date ?

leoncx commented 11 years ago

Original Redmine Comment Author Name: Sylvestre Ho (Sylvestre Ho) Original Date: 2013-06-13T11:15:28Z


Applied in changeset commit:edcf5f2593484e8a9a982820249acec8fccff817.