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

Using zabbix-server with theforeman #1

Closed
JvdW opened this issue May 5, 2014 · 3 comments
Closed

Using zabbix-server with theforeman #1

JvdW opened this issue May 5, 2014 · 3 comments

Comments

@JvdW
Copy link
Contributor

JvdW commented May 5, 2014

I'm trying out your module in combination with foreman and got a little problem which I can't seem to solve.
I followed the readme but had problems. Had to include postgresql::server and apache together with zabbix::server and set zabbix_url. In the end I got things working but if I now add a class to this kind of server I get the error that apache::mod::php requires apache::mod::prefork. Adding that leads to a duplicate definition :-(
Is there a way to debug this somewhat more then only looking at the messages from puppet?
As far as I can see everything should work but puppetwise it doesn't. The zabbix server does work.

Regards,

Joop

@dj-wasabi
Copy link

Hi Joop,

Thanks for making the time for creating this issue. I have had the same issue, but I've made an workaround to hardcode some stuff into the apachelabs module. But will take a look at it.

Regard,
Werner

@JvdW
Copy link
Contributor Author

JvdW commented Sep 16, 2014

Hi Werner,

I changed your server.pp a bit so that it works better together with Foreman.

Is set to true, it will create the apache vhost.

if $manage_vhost {
class { 'apache':
mpm_module => 'prefork',
keepalive => 'off',
keepalive_timeout => '4',
timeout => '45',
}
class { 'apache::mod::php':
}

include apache

apache::vhost { $zabbix_url: 

And also made the php config conditional just in case the install of mod_php fails:

  custom_fragment => "
<IfModule mod_php5.c>
  php_value max_execution_time 300
  php_value memory_limit 128M
  php_value post_max_size 16M
  php_value upload_max_filesize 2M
  php_value max_input_time 300
  # Set correct timezone.
  php_value date.timezone ${zabbix_timezone}
</IfModule>",
  rewrites        => [ { rewrite_rule => ['^$ /index.php [L]'] } ], 

With these two changes your module installs in one go :-)

@dj-wasabi
Copy link

Hi Joop,

Nice!

dj-wasabi pushed a commit that referenced this issue Feb 15, 2015
Fix listenip to be inline with proxy.pp
dj-wasabi pushed a commit that referenced this issue Feb 22, 2016
Merge pull request #173 from ericsysmin/master
root-expert pushed a commit that referenced this issue Aug 29, 2021
Added details to host network interface for SNMP

Added details to host network interface for SNMP

Added spec acceptance test for interfacetype and interfacedetails

Added context test3.example.com to acceptance test

Fix include in test3 context

Fix hash syntax in test3 context

Change template for snmp in acceptance test

Fix case for var template_snmp

Removed conflicts on templates used for snmp host test acceptance

Trying to fix interface details data types

Sub double quote with single quote in include

Trying to understand if interface details is nil

Fix trailing whitespace :-O!

Zabbix version 4.0 doesn't have the interface details hash, excluded from test

Wip (#1)

* Added details to result_hosts

* Add TODO file

* Run test specific to zabbix >= 4.0

* Add param documentation

* Fix spaces

* Remove TODO file

Fix suggested
spicyprogramming pushed a commit to spicyprogramming/puppet-zabbix that referenced this issue Sep 14, 2021
Added details to host network interface for SNMP

Added details to host network interface for SNMP

Added spec acceptance test for interfacetype and interfacedetails

Added context test3.example.com to acceptance test

Fix include in test3 context

Fix hash syntax in test3 context

Change template for snmp in acceptance test

Fix case for var template_snmp

Removed conflicts on templates used for snmp host test acceptance

Trying to fix interface details data types

Sub double quote with single quote in include

Trying to understand if interface details is nil

Fix trailing whitespace :-O!

Zabbix version 4.0 doesn't have the interface details hash, excluded from test

Wip (voxpupuli#1)

* Added details to result_hosts

* Add TODO file

* Run test specific to zabbix >= 4.0

* Add param documentation

* Fix spaces

* Remove TODO file

Fix suggested
smortex pushed a commit that referenced this issue Dec 7, 2022
rebase on current master
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

No branches or pull requests

2 participants