wdjijerman Zabbix module

56 views
Skip to first unread message

Matthew Ceroni

unread,
Apr 14, 2016, 5:48:11 PM4/14/16
to Puppet Users
Wondering if anyone uses this module? I think it does a fantastic job but did have a few questions around some of the defined types.

For instance, if you set manage resources on agent it exports the following. 


@@zabbix_host { $hostname:
ipaddress => $ipaddress,
use_ip => $use_ip,
port => $port,
group => $group,
group_create => $group_create,
templates => $templates,
proxy => $proxy,
zabbix_url => '',
zabbix_user => '',
zabbix_pass => '',
apache_use_ssl => '',
}
As it doesn't specify the zabbix url, user, password etc I am wondering how it ends up generating defaults for these.

Similar goes for a call made in zabbix::proxy to userparameters type where all but one of the parameters is not supplied:

zabbix::userparameters { 'Zabbix_Proxy': template => 'Template App Zabbix Proxy', }


Thanks

Rob Nelson

unread,
Apr 14, 2016, 9:49:49 PM4/14/16
to puppet...@googlegroups.com
Matthew, we are using the module in a limited proof of concept. You can see where the defaults are set in https://github.com/dj-wasabi/puppet-zabbix/blob/master/manifests/params.pp. It's a little confusing after there. Where you're looking, those variables are not used. They are set in two places that I see:

https://github.com/dj-wasabi/puppet-zabbix/blob/master/manifests/web.pp#L276-L281 - The web node instantiates zabbix::resources::web using some parameters.
https://github.com/dj-wasabi/puppet-zabbix/blob/master/manifests/resources/web.pp#L38-L43 - All the collected zabbix_host exported resources are then modified to set those parameters.

You can override this in a few spots. Here is how we use it and the hiera overrides are near the bottom: https://gist.github.com/rnelson0/25cb7191c92fd59d1c7cc1095854e81b

To override the user and password, I think you'd use zabbix::web::zabbix_api_user and ::zabbix_api_pass, but we haven't gotten that far with our testing yet to say for certain. I'm definitely not sure why it's this seemingly complex, but I hope this helps :)

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/f7393f51-4273-420a-82de-a6fde3beb646%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages