Skip to content

Commit

Permalink
Merge pull request #946 from trenta/master
Browse files Browse the repository at this point in the history
Allow allowkey and denykey on agent2
  • Loading branch information
Valantin authored May 3, 2024
2 parents afb6f3f + 432b192 commit 6059a37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/classes/agent_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@
it do
is_expected.not_to contain_file(config_path).with_content(
%r{^(LogRemoteCommands|StartAgents|MaxLinesPerSecond
|AllowRoot|User|LoadModulePath|AllowKey|DenyKey|
|AllowRoot|User|LoadModulePath|
EnableRemoteCommands|LogRemoteCommands)}
)
end
Expand Down
2 changes: 1 addition & 1 deletion templates/zabbix_agentd.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ DebugLevel=<%= @debuglevel %>
#
<% if @sourceip %>SourceIP=<%= @sourceip %><% end %>
<% unless @agent2 %>
<% if @zabbix_version.to_f >= 5.0 %>
### Option: AllowKey
# Allow execution of item keys matching pattern.
Expand All @@ -74,6 +73,7 @@ DebugLevel=<%= @debuglevel %>
# Default:
<% if @denykey %>DenyKey=<%= @denykey -%><% end %>
<% end %>
<% unless @agent2 %>

### Option: EnableRemoteCommands
# Whether remote commands from Zabbix server are allowed.
Expand Down

0 comments on commit 6059a37

Please sign in to comment.