Skip to content

Commit

Permalink
feat(agent): add HostInterface and HostInterfaceItem to config
Browse files Browse the repository at this point in the history
  • Loading branch information
waynegemmell committed Oct 19, 2021
1 parent 247aeb5 commit e7fbb96
Showing 1 changed file with 29 additions and 2 deletions.
31 changes: 29 additions & 2 deletions zabbix/files/default/etc/zabbix/zabbix_agentd.conf.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,34 @@ HostMetadata={{ settings.get('hostmetadata', defaults.hostmetadata) }}
{% if settings.get('hostmetadataitem', defaults.get('hostmetadataitem', False)) -%}
HostMetadataItem={{ settings.get('hostmetadataitem', defaults.hostmetadataitem) }}
{% endif %}
{% if zabbix.version_repo|float >= 4.4 -%}
### Option: HostInterface
# Optional parameter that defines host interface.
# Host interface is used at host auto-registration process.
# An agent will issue an error and not start if the value is over limit of 255 characters.
# If not defined, value will be acquired from HostInterfaceItem.
#
# Mandatory: no
# Range: 0-255 characters
# Default:
# HostInterface=
{% if settings.get('hostinterface', defaults.get('hostinterface', False)) -%}
HostInterface={{ settings.get('hostinterface', defaults.hostinterface) }}
{% endif %}
### Option: HostInterfaceItem
# Optional parameter that defines an item used for getting host interface.
# Host interface is used at host auto-registration process.
# During an auto-registration request an agent will log a warning message if
# the value returned by specified item is over limit of 255 characters.
# This option is only used when HostInterface is not defined.
#
# Mandatory: no
# Default:
# HostInterfaceItem=
{% if settings.get('hostinterfaceitem', defaults.get('hostinterfaceitem', False)) -%}
HostInterfaceItem={{ settings.get('hostinterfaceitem', defaults.hostinterfaceitem) }}
{% endif %}
{% endif -%}
### Option: RefreshActiveChecks
# How often list of active checks is refreshed, in seconds.
#
Expand Down Expand Up @@ -340,7 +368,6 @@ User={{ settings.get('user', defaults.user) }}
{% for include in settings.get('includes', defaults.get('includes', [])) %}
Include={{ include }}
{%- endfor %}

####### USER-DEFINED MONITORED PARAMETERS #######

### Option: UnsafeUserParameters
Expand Down Expand Up @@ -497,4 +524,4 @@ TLSPSKIdentity={{ settings.get('tlspskidentity', defaults.tlspskidentity) }}
TLSPSKFile={{ settings.get('tlspskfile', defaults.tlspskfile) }}
{% endif %}
{% endif -%}
{{ settings.get('extra_conf','') }}
{{ settings.get('extra_conf','') }}

0 comments on commit e7fbb96

Please sign in to comment.