Ensure that $this->ellipsis only is called with a string parameter as the function requires. Or put a safety hook inside, as the strlen() exception is not that informative and not logged to the frontend either.
Steps to Reproduce (for bugs)
Icinga Web 2 & Elasticsearch module
Icinga 2 ElasticsearchWriter enabled
View specific host events for icinga2-* index
/etc/icingaweb2/modules/elasticsearch/instances.ini
[elasticsearch]
uri = "http://localhost:9200"
/etc/icingaweb2/modules/elasticsearch/eventtypes.ini
[icinga2]
instance = "elasticsearch"
index = "icinga2-*"
filter = "host={host.name}"
fields = "*"
To better catch the exception, let Icinga 2 run for a while. Modify the source code to catch the exception and dump the $column.
Expected Behavior
ellipsis() should be able to handle Array type, but yet better the view script should decide upon Array values how to deal with such.
Current Behavior
check_result.command has an array as value.
This causes a 500 error.
Possible Solution
Ensure that
$this->ellipsis
only is called with a string parameter as the function requires. Or put a safety hook inside, as the strlen() exception is not that informative and not logged to the frontend either.Steps to Reproduce (for bugs)
To better catch the exception, let Icinga 2 run for a while. Modify the source code to catch the exception and dump the
$column
.Context
This causes internal server error views, which requires you to watch /var/log/icingaweb2/icingaweb2.log
Your Environment
icinga2 --version
): icinga2-2.8.0.45.g1f52e39-0.2017.11.28+2.el7.icinga.x86_64