You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Doing an ack on multiple services generates the following error. The ack for the first services is executed correclty (via ssh), but the ack for the second service gets executed on the local machine, instead via ssh on the remote.
Regards,
Achim
Server error: Can't send external Icinga command "[1426765776] ACKNOWLEDGE_SVC_PROBLEM_EXPIRE;host;service;2;1;0;1426769375;aledermueller;fsadfsa" to the local command file "/var/run/icinga2/cmd/icinga2.cmd": exception 'RuntimeException' with message 'SplFileObject::__construct(/var/run/icinga2/cmd/icinga2.cmd): failed to open stream: No such file or directory' in /usr/share/icingaweb2/library/Icinga/Util/File.php:39
Can't send external Icinga command "[1426765776] ACKNOWLEDGE_SVC_PROBLEM_EXPIRE;host;service;2;1;0;1426769375;aledermueller;fsadfsa" to the local command file "/var/run/icinga2/cmd/icinga2.cmd": exception 'RuntimeException' with message 'SplFileObject::__construct(/var/run/icinga2/cmd/icinga2.cmd): failed to open stream: No such file or directory' in /usr/share/icingaweb2/library/Icinga/Util/File.php:39
Stack trace:
#0 /usr/share/icingaweb2/library/Icinga/Util/File.php(39): SplFileObject->__construct('/var/run/icinga...', 'wn', false)
#1 /usr/share/icingaweb2/modules/monitoring/library/Monitoring/Command/Transport/LocalCommandFile.php(122): Icinga\Util\File->__construct('/var/run/icinga...', 'wn')
#2 /usr/share/icingaweb2/modules/monitoring/application/forms/Command/Object/AcknowledgeProblemCommandForm.php(154): Icinga\Module\Monitoring\Command\Transport\LocalCommandFile->send(Object(Icinga\Module\Monitoring\Command\Object\AcknowledgeProblemCommand))
#3 /usr/share/icingaweb2/library/Icinga/Web/Form.php(844): Icinga\Module\Monitoring\Forms\Command\Object\AcknowledgeProblemCommandForm->onSuccess()
#4 /usr/share/icingaweb2/modules/monitoring/application/controllers/ServicesController.php(50): Icinga\Web\Form->handleRequest()
#5 /usr/share/icingaweb2/modules/monitoring/application/controllers/ServicesController.php(234): Monitoring_ServicesController->handleCommandForm(Object(Icinga\Module\Monitoring\Forms\Command\Object\AcknowledgeProblemCommandForm))
#6 /usr/share/icingaweb2/library/vendor/Zend/Controller/Action.php(507): Monitoring_ServicesController->acknowledgeProblemAction()
#7 /usr/share/icingaweb2/library/vendor/Zend/Controller/Dispatcher/Standard.php(303): Zend_Controller_Action->dispatch('acknowledgeProb...')
#8 /usr/share/icingaweb2/library/vendor/Zend/Controller/Front.php(937): Zend_Controller_Dispatcher_Standard->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response))
#9 /usr/share/icingaweb2/library/Icinga/Application/Web.php(154): Zend_Controller_Front->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response))
#10 /usr/share/icingaweb2/library/Icinga/Application/webrouter.php(111): Icinga\Application\Web->dispatch()
#11 /usr/share/icingaweb2/public/index.php(4): require_once('/usr/share/icin...')
#12 {main}
#0 /usr/share/icingaweb2/modules/monitoring/application/forms/Command/Object/AcknowledgeProblemCommandForm.php(154): Icinga\Module\Monitoring\Command\Transport\LocalCommandFile->send(Object(Icinga\Module\Monitoring\Command\Object\AcknowledgeProblemCommand))
#1 /usr/share/icingaweb2/library/Icinga/Web/Form.php(844): Icinga\Module\Monitoring\Forms\Command\Object\AcknowledgeProblemCommandForm->onSuccess()
#2 /usr/share/icingaweb2/modules/monitoring/application/controllers/ServicesController.php(50): Icinga\Web\Form->handleRequest()
#3 /usr/share/icingaweb2/modules/monitoring/application/controllers/ServicesController.php(234): Monitoring_ServicesController->handleCommandForm(Object(Icinga\Module\Monitoring\Forms\Command\Object\AcknowledgeProblemCommandForm))
#4 /usr/share/icingaweb2/library/vendor/Zend/Controller/Action.php(507): Monitoring_ServicesController->acknowledgeProblemAction()
#5 /usr/share/icingaweb2/library/vendor/Zend/Controller/Dispatcher/Standard.php(303): Zend_Controller_Action->dispatch('acknowledgeProb...')
#6 /usr/share/icingaweb2/library/vendor/Zend/Controller/Front.php(937): Zend_Controller_Dispatcher_Standard->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response))
#7 /usr/share/icingaweb2/library/Icinga/Application/Web.php(154): Zend_Controller_Front->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response))
#8 /usr/share/icingaweb2/library/Icinga/Application/webrouter.php(111): Icinga\Application\Web->dispatch()
#9 /usr/share/icingaweb2/public/index.php(4): require_once('/usr/share/icin...')
#10 {main}
Fix that sending multiple commands over SSH failed
The config object has to cloned before unsetting the transport because else the
transport is removed for all subsequent calls to CommandTransport::fromConfig().
fixes #8815
Updated by elippmann on 2015-04-01 09:33:20 +00:00
Subject changed from Action on multiple services generates an error Fixes to work with SLES 11 #2 to Only the first external command is sent over SSH when submitting commands for multiple selected hosts or services
This issue has been migrated from Redmine: https://dev.icinga.com/issues/8815
Created by aledermueller on 2015-03-19 11:55:40 +00:00
Assignee: elippmann
Status: Resolved (closed on 2015-04-01 11:59:17 +00:00)
Target Version: 2.0.0-rc1
Last Update: 2015-04-01 11:59:17 +00:00 (in Redmine)
Git resvision: 004301a
Hi,
Doing an ack on multiple services generates the following error. The ack for the first services is executed correclty (via ssh), but the ack for the second service gets executed on the local machine, instead via ssh on the remote.
Regards,
Achim
Changesets
2015-04-01 11:53:44 +00:00 by elippmann 06d9e41
Relations:
The text was updated successfully, but these errors were encountered: