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 #13223] Cannot delete service from CLI #605

Closed
icinga-migration opened this issue Nov 17, 2016 · 2 comments
Closed

[dev.icinga.com #13223] Cannot delete service from CLI #605

icinga-migration opened this issue Nov 17, 2016 · 2 comments
Labels

Comments

@icinga-migration
Copy link

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

Created by plarivee on 2016-11-17 13:17:29 +00:00

Assignee: (none)
Status: New
Target Version: (none)
Last Update: 2016-11-17 13:17:29 +00:00 (in Redmine)


director 1.1.0
icingacli 2.3.4+fix-1~ppa1404+1

After creating a service with the cli, I can show it, check if exists but cannot delete. Getting this error:

root@web:~# icingacli director service delete snmp_check_test
ERROR: Icinga\Exception\IcingaException in /usr/share/php/Icinga/Cli/Command.php:141 with message: Object name parameter is required

Using --verbose --debug doesn't give more info.

Deleting the service in the Director UI does work. Also getting same error with director 1.2.0

root@web:# icingacli director service set snmp_check_test --object_type template --check_command "snmp-storage" --auto-create
Service 'snmp_check_test' has been created
root@web:
# icingacli director service exists snmp_check_test
Service 'snmp_check_test' exists
root@web:~# icingacli director service show snmp_check_test
template Service "snmp_check_test" {
check_command = "snmp-storage"
}

@shakalandy
Copy link

@Thomas-Gelf would some G+T help overhere? or a package of bordeaux wines? ;-)

@Thomas-Gelf
Copy link
Contributor

user@web:~$ icingacli director service delete 'My Service' --host some.example.com
Service 'My Service' 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

3 participants