Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dev.icinga.com #14005] CLI Services #719

Closed
icinga-migration opened this issue Jan 13, 2017 · 1 comment
Closed

[dev.icinga.com #14005] CLI Services #719

icinga-migration opened this issue Jan 13, 2017 · 1 comment
Assignees
Labels
Milestone

Comments

@icinga-migration
Copy link

This issue has been migrated from Redmine: https://dev.icinga.com/issues/14005

Created by mmittel2 on 2017-01-13 14:39:26 +00:00

Assignee: (none)
Status: New
Target Version: (none)
Last Update: 2017-01-13 14:39:26 +00:00 (in Redmine)


It seems to be impossible to delete Service Objects with the CLI which are created directly to a host.
Plus the creation of a service to a host is quite annoying since I need the host_id attribute from the database.
For example:
icingacli director service create hi --host_id 2 --imports web_http

And last but not least I think a CLI command that returns all services applied to a host (even better if specified by e.g. import) would be quite handy.

Nevertheless thanks a lot for the work done.
Cheers Merlin

@Thomas-Gelf Thomas-Gelf self-assigned this Jun 8, 2018
@Thomas-Gelf Thomas-Gelf added this to the 1.5.0 milestone Jun 8, 2018
@Thomas-Gelf
Copy link
Contributor

user@web:~$  icingacli director service create hi --host app1 --imports "Dummy Service"
Service 'hi' has been created
user@web:~$  icingacli director service delete hi --host app1
Service 'hi' has been deleted
user@web:~$  icingacli director service create hi --host app1 --imports "Dummy Service"
Service 'hi' has been created
user@web:~$  icingacli director service create hi2 --host app1 --imports "Dummy Service"
Service 'hi2' has been created
user@web:~$  icingacli director service create hi3 --host app1 --imports "Dummy Service"
Service 'hi3' has been created
user@web1:~$  icingacli director service delete hi2 hi3 hi --host app1
Service 'hi2' has been deleted
Service 'hi3' has been deleted
Service 'hi' has been deleted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants