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 zabbix-server smsdevices configuration #991

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Valantin
Copy link
Contributor

@Valantin Valantin commented Mar 5, 2025

Pull Request (PR) description

Add zabbix-server smsdevices configuration for zabbix_version >= 7.0

This Pull Request (PR) fixes the following issues

Duplicate #988
Fixes #985

@Valantin
Copy link
Contributor Author

Valantin commented Mar 5, 2025

@Ph0B1uS if is ok for you I've opened this with you as author and me as committer, it pass all test

@@ -367,6 +367,20 @@
it { is_expected.to contain_file('/etc/zabbix/zabbix_server.conf').without_content %r{^StartODBCPollers=1} }
end

context 'with zabbix_server.conf and version 7.0' do
next if facts[:os]['name'] == 'Debian' && facts[:os]['release']['major'].to_i <= 11
Copy link
Member

Choose a reason for hiding this comment

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

shouldn't the check be in the template iteself? If the parameter is set for an older zabbix version, the tests will pass but it will fail in production? templates/zabbix_server.conf.erb line 968 also has a version check.

Copy link

Choose a reason for hiding this comment

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

I'll remove the OS check from the file above. As for the template, if zabbix_version < 7.0 then the block won't print because of line 914 which reads:

<% if @zabbix_version.to_f >= 7.0 %>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SMSDevices required in zabbix_server.conf
3 participants