In old kernels (~2.6.20) beats fail to start with a message like this:
FATAL: kernel too old
/bin/bash: line 1: 5496 Segmentation fault /usr/share/metricbeat/bin/metricbeat-god -r / -n -p /var/run/metricbeat.pid -- /usr/share/metricbeat/bin/metricbeat -c /etc/metricbeat/metricbeat.yml -path.home /usr/share/metricbeat -path.config /etc/metricbeat -path.data /var/lib/metricbeat -path.logs /var/log/metricbeat
[FAILED]
You can replace original /etc/init.d/metricbeat file with this script to run metricbeat in old Red Hat systems. After replacing the file run checkconfig --add metricbeat
so metricbeat starts automatically with every system start.
This was tested in:
Distribution | Kernel | Test result |
---|---|---|
Fedora 8 | 2.6.23.1-42.fc8 | Original metricbeat init.d script fails. This script works OK. |
Fedora 8 | 2.6.26.8-57.fc8 | Both original and this init.d scripts works OK. |
CentOS 5.2 | 2.6.18-92.1.22.el5 | Original metricbeat init.d script fails. This script works OK. |
Red Hat Enterprise Linux Server release 5.11 (Tikanga) | 2.6.18-409.el5 | Original metricbeat init.d script fails. This script is no tested, but should work OK. |
Red Hat Enterprise Linux Server release 5.11 (Tikanga) | 2.6.18-412.el5 | Original metricbeat init.d script fails. This script is no tested, but should work OK. |
Red Hat Enterprise Linux Server release 5.11 (Tikanga) | 2.6.18-416.el5 | Original metricbeat init.d script fails. This script is no tested, but should work OK. |