diff --git a/modules/monitoring/library/Monitoring/Command/Transport/RemoteCommandFile.php b/modules/monitoring/library/Monitoring/Command/Transport/RemoteCommandFile.php index fe1ae92c2..8092a00bd 100644 --- a/modules/monitoring/library/Monitoring/Command/Transport/RemoteCommandFile.php +++ b/modules/monitoring/library/Monitoring/Command/Transport/RemoteCommandFile.php @@ -153,6 +153,9 @@ class RemoteCommandFile implements CommandTransportInterface if (! isset($this->path)) { throw new LogicException; } + if (! isset($this->host)) { + throw new LogicException; + } Logger::debug( sprintf( mt('monitoring', 'Sending external Icinga command "%s" to the remote command file "%s:%u%s"'),