Missing Metrics in hostalive4 Measurement After Upgrading InfluxDB to 2.7.11

Hi everyone,
Icinga Version: r2.14.3-1

I recently updated InfluxDB from version 1.8 to 2.7.11 and successfully migrated all the measurements.

Before the update, I had more metrics in the hostalive4 measurement, such as the state metric, which I was using for a Grafana chart.

However, after the update to the new InfluxDB version, I noticed that these metrics are no longer available.

Can anyone help me resolve this issue?

Thanks in advance!

Are you using the InfluxDbwriter or the InfluxDb2writer?
can you show us your config of the feature?

Hi @bberg
It is InfluxDb2writer. it is the same as influxdb.conf

object Influxdb2Writer “influxdb2” {
host = “localhost”
port = 8086
organization = “sigos”
bucket = “icinga2/XXXx”
auth_token = “XXXXXXXXXXXXXXXXXXXXX”
flush_threshold = 1024
flush_interval = 10s
host_template = {
measurement = “$host.check_command$”
tags = {
hostname = “$host.name$”
}
}
service_template = {
measurement = “$service.check_command$”
tags = {
hostname = “$host.name$”
service = “$service.name$”
}
}
}

Hi everyone,

I solved my issue here is the sollution if it can help someone.
added these
enable_send_thresholds = true
enable_send_metadata = true

in /etc/icinga2/features-available/influxdb2.conf

host_template = {
measurement = “$host.check_command$”
tags = {
hostname = “$host.name$”
}
}
service_template = {
measurement = “$service.check_command$”
tags = {
hostname = “$host.name$”
service = “$service.name$”
}
}
enable_send_thresholds = true
enable_send_metadata = true
}

1 Like