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 #11201] Host Import #111

Closed
icinga-migration opened this issue Feb 22, 2016 · 3 comments
Closed

[dev.icinga.com #11201] Host Import #111

icinga-migration opened this issue Feb 22, 2016 · 3 comments
Labels
Milestone

Comments

@icinga-migration
Copy link

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

Created by mmittel2 on 2016-02-22 16:19:43 +00:00

Assignee: (none)
Status: Closed (closed on 2016-03-06 21:40:39 +00:00)
Target Version: 1.0.0
Last Update: 2016-03-22 22:51:57 +00:00 (in Redmine)


I tried to add an Import Source with Source Type: CoreAPI Object Type: Host
on Preview I get this message:

`#0 /usr/share/icingaweb2/modules/director/library/Director/Core/RestApiResponse.php(79): Icinga\Application{closure}(8, 'Undefined prope...', '/usr/share/icin...', 79, Array)

#1 /usr/share/icingaweb2/modules/director/library/Director/Core/RestApiResponse.php(20): Icinga\Module\Director\Core\RestApiResponse->parseJsonResult('{"error":400.0,...')
#2 /usr/share/icingaweb2/modules/director/library/Director/Core/RestApiClient.php(176): Icinga\Module\Director\Core\RestApiResponse::fromJsonResult('{"error":400.0,...')
#3 /usr/share/icingaweb2/modules/director/library/Director/Core/RestApiClient.php(62): Icinga\Module\Director\Core\RestApiClient->curlRequest('get', 'objects/hosts', Object(stdClass), false, false)
#4 /usr/share/icingaweb2/modules/director/library/Director/Core/RestApiClient.php(182): Icinga\Module\Director\Core\RestApiClient->request('get', 'objects/hosts', Object(stdClass))
#5 /usr/share/icingaweb2/modules/director/library/Director/Core/CoreApi.php(45): Icinga\Module\Director\Core\RestApiClient->get('objects/hosts', Object(stdClass))
#6 /usr/share/icingaweb2/modules/director/library/Director/Core/CoreApi.php(161): Icinga\Module\Director\Core\CoreApi->getObjects('Host', 'hosts', Array, 'director')
#7 /usr/share/icingaweb2/modules/director/library/Director/Core/CoreApi.php(263): Icinga\Module\Director\Core\CoreApi->getDirectorObjects('Host', 'Host', 'hosts', Array)
#8 /usr/share/icingaweb2/modules/director/library/Director/Import/ImportSourceCoreApi.php(22): Icinga\Module\Director\Core\CoreApi->getHostObjects()
#9 /usr/share/icingaweb2/modules/director/application/tables/ImportsourceHookTable.php(114): Icinga\Module\Director\Import\ImportSourceCoreApi->fetchData()
#10 /usr/share/icingaweb2/modules/director/application/tables/ImportsourceHookTable.php(64): Icinga\Module\Director\Tables\ImportsourceHookTable->getBaseQuery()
#11 /usr/share/icingaweb2/modules/director/library/Director/Web/Table/QuickTable.php(242): Icinga\Module\Director\Tables\ImportsourceHookTable->fetchData()
#12 zend.view:///usr/share/icingaweb2/modules/director/application/views/scripts/list/table.phtml(13): Icinga\Module\Director\Web\Table\QuickTable->render()
#13 /usr/share/php/Icinga/Web/View.php(204): include('zend.view:///us...')
#14 /usr/share/php/Zend/View/Abstract.php(888): Icinga\Web\View->_run('/usr/share/icin...')
#15 /usr/share/php/Zend/Controller/Action/Helper/ViewRenderer.php(912): Zend_View_Abstract->render('list/table.phtm...')
#16 /usr/share/php/Zend/Controller/Action/Helper/ViewRenderer.php(933): Zend_Controller_Action_Helper_ViewRenderer->renderScript('list/table.phtm...', NULL)
#17 /usr/share/php/Zend/Controller/Action.php(212): Zend_Controller_Action_Helper_ViewRenderer->render('list/table', NULL, true)
#18 /usr/share/icingaweb2/modules/director/application/controllers/ImportsourceController.php(60): Zend_Controller_Action->render('list/table', NULL, true)
#19 /usr/share/php/Zend/Controller/Action.php(516): Icinga\Module\Director\Controllers\ImportsourceController->previewAction()
#20 /usr/share/php/Icinga/Web/Controller/Dispatcher.php(76): Zend_Controller_Action->dispatch('previewAction')
#21 /usr/share/php/Zend/Controller/Front.php(954): Icinga\Web\Controller\Dispatcher->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response))
#22 /usr/share/php/Icinga/Application/Web.php(390): Zend_Controller_Front->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response))
#23 /usr/share/php/Icinga/Application/webrouter.php(109): Icinga\Application\Web->dispatch()
#24 /usr/share/icingaweb2/public/index.php(4): require_once('/usr/share/php/...')
#25 {main}`


Relations:

@icinga-migration
Copy link
Author

Updated by tgelf on 2016-03-05 15:47:45 +00:00

  • Relates set to 11300

@icinga-migration
Copy link
Author

Updated by tgelf on 2016-03-06 21:40:40 +00:00

  • Status changed from New to Closed

This concrete issue should be fixed in current master. However, I guess importing existing hosts from your Icinga2 installation is not going to work like you might expect. I guess I have to write some dedicated documentation ;)

@icinga-migration
Copy link
Author

Updated by tgelf on 2016-03-22 22:51:57 +00:00

  • Target Version set to 1.0.0

@icinga-migration icinga-migration added this to the 1.0.0 milestone Jan 17, 2017
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

1 participant