Enable_ha not available in graphite feature

Hello everyone,

according to the documentation https://icinga.com/docs/icinga2/latest/doc/09-object-types/#graphitewriter (And also according to PR https://github.com/Icinga/icinga2/pull/6725) there should be available enable_ha config in graphite feature, but I cannot run Icinga2 with this line of config. Is there any problem on my side?

Config:

Managed by Puppet
# any manual changes will be OVERWRITTEN
#
/**
 * The GraphiteWriter type writes check result metrics and
 * performance data to a graphite tcp socket.
 */

object GraphiteWriter "graphite-grafana" {
  host = "10.5.16.28"
  port = 2003

  enable_send_metadata = true
  enable_send_thresholds = false
  enable_ha = true
}

Error message:

10:02 # icinga2 daemon -C
[2019-06-19 10:04:17 +0200] information/cli: Icinga application loader (version: r2.10.5-1)
[2019-06-19 10:04:17 +0200] information/cli: Loading configuration file(s).
[2019-06-19 10:04:17 +0200] information/ConfigItem: Committing config item(s).
[2019-06-19 10:04:17 +0200] information/ApiListener: My API identity: icinga-master1.it4i.cz
[2019-06-19 10:04:17 +0200] critical/config: Error: Attribute 'enable_ha' does not exist.
Location: in /etc/icinga2/features-enabled/graphite.conf: 16:3-16:18
/etc/icinga2/features-enabled/graphite.conf(14):   enable_send_metadata = true
/etc/icinga2/features-enabled/graphite.conf(15):   enable_send_thresholds = false
/etc/icinga2/features-enabled/graphite.conf(16):   enable_ha = true
                                                   ^^^^^^^^^^^^^^^^
/etc/icinga2/features-enabled/graphite.conf(17): }
/etc/icinga2/features-enabled/graphite.conf(18):

[2019-06-19 10:04:17 +0200] critical/config: 1 error

Current GraphiteWriter object:

09:56 # icinga2 object list --type=GraphiteWriter
Object 'graphite-grafana' of type 'GraphiteWriter':
  % declared in '/etc/icinga2/features-enabled/graphite.conf', lines 10:1-10:40
  * __name = "graphite-grafana"
  * enable_send_metadata = true
    % = modified in '/etc/icinga2/features-enabled/graphite.conf', lines 14:3-14:29
  * enable_send_thresholds = false
    % = modified in '/etc/icinga2/features-enabled/graphite.conf', lines 15:3-15:32
  * host = "10.5.16.28"
    % = modified in '/etc/icinga2/features-enabled/graphite.conf', lines 11:3-11:21
  * host_name_template = "icinga2.$host.name$.host.$host.check_command$"
  * name = "graphite-grafana"
  * package = "_etc"
  * port = "2003"
    % = modified in '/etc/icinga2/features-enabled/graphite.conf', lines 12:3-12:13
  * service_name_template = "icinga2.$host.name$.services.$service.name$.$service.check_command$"
  * source_location
    * first_column = 1
    * first_line = 10
    * last_column = 40
    * last_line = 10
    * path = "/etc/icinga2/features-enabled/graphite.conf"
  * templates = [ "graphite-grafana" ]
    % = modified in '/etc/icinga2/features-enabled/graphite.conf', lines 10:1-10:40
  * type = "GraphiteWriter"
  * zone = ""

Icinga version:

09:59 # icinga2 -V
icinga2 - The Icinga 2 network monitoring daemon (version: r2.10.5-1)

Copyright (c) 2012-2019 Icinga GmbH (https://icinga.com/)
License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl2.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

System information:
  Platform: CentOS Linux
  Platform version: 7 (Core)
  Kernel: Linux
  Kernel version: 3.10.0-957.21.2.el7.x86_64
  Architecture: x86_64

Build information:
  Compiler: GNU 4.8.5
  Build host: afcad697467e

Application information:

General paths:
  Config directory: /etc/icinga2
  Data directory: /var/lib/icinga2
  Log directory: /var/log/icinga2
  Cache directory: /var/cache/icinga2
  Spool directory: /var/spool/icinga2
  Run directory: /run/icinga2

Old paths (deprecated):
  Installation root: /usr
  Sysconf directory: /etc
  Run directory (base): /run
  Local state directory: /var

Internal paths:
  Package data directory: /usr/share/icinga2
  State path: /var/lib/icinga2/icinga2.state
  Modified attributes path: /var/lib/icinga2/modified-attributes.conf
  Objects path: /var/cache/icinga2/icinga2.debug
  Vars path: /var/cache/icinga2/icinga2.vars
  PID path: /run/icinga2/icinga2.pid

Thank you in advance for any help.
Lukas

Hi,

thanks for the finding, this shouldn’t have been backported to 2.10. This feature is solely available and implemented with the coming 2.11 release.

Fixed the docs.

Cheers,
Michael

OK, well than documentation refers to something which is not yet available. Shouldn’t it be hidden for time being?

When is 2.11 coming to production anyway?

Regards,
Lukas

I’ve already fixed it and re-run the online docs generator.

2.11 has some issues left open being worked on. Once there is an estimate, a date will be scheduled. Highly likely there will be a release candidate first due to the network stack changes.

You can follow the progress here.

Cheers,
Michael

1 Like