Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Remote Commands capabilities on Zabbix Proxy #575

Merged
merged 1 commit into from
Jan 16, 2019
Merged

Add Remote Commands capabilities on Zabbix Proxy #575

merged 1 commit into from
Jan 16, 2019

Conversation

Safranil
Copy link
Contributor

Pull Request (PR) description

Has documented in the Zabbix Wiki, the proxy have some options (since 3.4) for remote commands execution. So this PR add two boolean options: EnableRemoteCommands and LogRemoteCommands.

Source: https://www.zabbix.com/documentation/4.0/manual/appendix/config/zabbix_proxy

This Pull Request (PR) fixes the following issues

n/a

@Safranil
Copy link
Contributor Author

The CI builds failed seem to be related with the PR #576 (Fix rspec tests for Gentoo).

@bastelfreak
Copy link
Member

Hi @Safranil, can you please rebase after #574 got merged?

@@ -347,6 +353,8 @@
$hostname = $zabbix::params::proxy_hostname,
$listenport = $zabbix::params::proxy_listenport,
$sourceip = $zabbix::params::proxy_sourceip,
$enableremotecommands = $zabbix::params::proxy_enableremotecommands,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you please add datatypes for both values? I assume both varaibles can only take integers with 0 as lowest value? So this could work:

Suggested change
$enableremotecommands = $zabbix::params::proxy_enableremotecommands,
Integer[0] $enableremotecommands = $zabbix::params::proxy_enableremotecommands,

@@ -347,6 +353,8 @@
$hostname = $zabbix::params::proxy_hostname,
$listenport = $zabbix::params::proxy_listenport,
$sourceip = $zabbix::params::proxy_sourceip,
$enableremotecommands = $zabbix::params::proxy_enableremotecommands,
$logremotecommands = $zabbix::params::proxy_logremotecommands,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$logremotecommands = $zabbix::params::proxy_logremotecommands,
Integer[0] $logremotecommands = $zabbix::params::proxy_logremotecommands,

@bastelfreak bastelfreak added needs-rebase needs-work not ready to merge just yet labels Dec 21, 2018
@Safranil
Copy link
Contributor Author

Safranil commented Jan 8, 2019

Hi,

Sorry for the delay, I updated the PR to the latest commit.

The build 1138.1 give an error but I'm not sure that related to my changes.

Can you check if it's all correct ?

@bastelfreak bastelfreak added enhancement New feature or request and removed needs-work not ready to merge just yet needs-rebase labels Jan 16, 2019
@bastelfreak bastelfreak merged commit 641d942 into voxpupuli:master Jan 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants